Differential abundance analysis
differential_abundance(
MAE,
tax_level,
input_da_condition = c(),
input_da_condition_covariate = NULL,
min_num_filter = 5,
input_da_padj_cutoff = 0.05,
method = "DESeq2"
)
A multi-assay experiment object
The taxon level used for organisms
Which condition is the target condition
Covariates added to linear function
Minimum number reads mapped to this microbe
adjusted pValue cutoff
choose between DESeq2 and limma
A output dataframe
data_dir <- system.file("extdata/MAE.rds", package = "animalcules")
toy_data <- readRDS(data_dir)
differential_abundance(toy_data,
tax_level = "phylum",
input_da_condition = c("DISEASE"),
min_num_filter = 2,
input_da_padj_cutoff = 0.5,
method = "DESeq2"
)
#> estimating size factors
#> estimating dispersions
#> gene-wise dispersion estimates
#> mean-dispersion relationship
#> final dispersion estimates
#> fitting model and testing
#> -- replacing outliers and refitting for 4 genes
#> -- DESeq argument 'minReplicatesForReplace' = 7
#> -- original counts are preserved in counts(dds)
#> estimating dispersions
#> fitting model and testing
#> [,1]
#> [1,] "No differentially abundant items found!"