Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ococrook committed Apr 3, 2024
1 parent 94b9fc1 commit cb71e51
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/ReX-utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
##'
##' @export
prepareIndexes <- function(res) {
stopifnot("res must be a DataFrame" = is(HdxData, "DFrame"))
stopifnot("res must be a DataFrame" = is(res, "DFrame"))


index <- vector(mode = "list", length = length(unique(res$Sequence)))
Expand Down Expand Up @@ -42,7 +42,7 @@ prepareIndexes <- function(res) {
##'
##' @export
maxUptakes <- function(res) {
stopifnot("res must be a DataFrame" = is(HdxData, "DFrame"))
stopifnot("res must be a DataFrame" = is(res, "DFrame"))

.out <- vapply(seq_along(unique(res$Sequence)),
function(z) res$MaxUptake[res$Sequence == unique(res$Sequence)[z]][1],
Expand All @@ -67,7 +67,7 @@ maxUptakes <- function(res) {
##'
##' @export
coverageHeatmap <- function(res, plot = TRUE) {
stopifnot("res must be a DataFrame" = is(HdxData, "DFrame"))
stopifnot("res must be a DataFrame" = is(res, "DFrame"))

# Get the maximum residue number
R <- max(res$End)
Expand Down Expand Up @@ -119,7 +119,7 @@ coverageHeatmap <- function(res, plot = TRUE) {
##'
##'
cleanHDX <- function(res, clean = TRUE) {
stopifnot("res must be a DataFrame" = is(HdxData, "DFrame"))
stopifnot("res must be a DataFrame" = is(res, "DFrame"))

# define the needed columns
neccessaryColumns <- c("State", "Sequence", "Start", "End", "MaxUptake", "Exposure", "replicate", "Uptake")
Expand Down

0 comments on commit cb71e51

Please sign in to comment.