Skip to content

Commit

Permalink
Added na.rm to matrixfilter
Browse files Browse the repository at this point in the history
  • Loading branch information
WackerO committed Sep 25, 2023
1 parent 9ee90ee commit ecf482f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ if ((opt\$sample_file != '') && ( ! is.null(opt\$grouping_variable))){
# Generate a boolean vector specifying the features to retain

keep <- apply(abundance_matrix, 1, function(x){
sum(x > opt\$minimum_abundance) >= opt\$minimum_samples
sum(x > opt\$minimum_abundance, na.rm = TRUE) >= opt\$minimum_samples
})

# Write out the matrix retaining the specified rows and re-prepending the
Expand Down

0 comments on commit ecf482f

Please sign in to comment.