Skip to content

Commit

Permalink
Fix metafeature subset
Browse files Browse the repository at this point in the history
  • Loading branch information
timoast committed Mar 28, 2024
1 parent b3642ae commit 84cd454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ MatchRegionStats <- function(
stop("Must supply at least one sequence characteristic to match")
}
# remove features that have NA for any of the features to match
meta.feature <- meta.feature[rowSums(is.na(meta.feature[, features.match])) == 0, ,]
meta.feature <- na.omit(object = meta.feature[, features.match, drop = FALSE])
if (nrow(x = meta.feature) < n) {
n <- nrow(x = meta.feature)
warning("Requested more features than present in supplied data.
Expand Down

0 comments on commit 84cd454

Please sign in to comment.