preDA | R Documentation |
Pre-process the count table before running DAtest
functions
preDA(data, min.samples = 0, min.reads = 0, min.abundance = 0)
data |
Either a matrix with counts/abundances, OR a |
min.samples |
Minimum number of samples the features should be present in. Default 0 |
min.reads |
Minimum number of total reads the features should have. Default 0 |
min.abundance |
Minimum mean relative abundance features should have. Default 0 |
Similar to input, but with features not reaching the criteria given grouped as "Others"
# Creating random count_table with many low abundant set.seed(4) mat <- matrix(rnbinom(1000, size = 0.05, mu = 500), nrow = 100, ncol = 10) # Keep only those present in at least 3 samples res <- preDA(mat, min.samples = 3) # Last feature is now called 'Others' and is a sum of all features present in less than 3 samples rownames(res)[nrow(res)]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.