View source: R/calcSemanticSimilarity.R
testReplicability | R Documentation |
Function that implements a statistical test for replicability of microbiome changes for experimental conditions in BugSigDB
testReplicability(
df,
onto = NULL,
multi.contrast = c("all", "first", "largest", "merge"),
min.studies = 2,
min.taxa = 5
)
df |
|
onto |
ontology. An object of class |
multi.contrast |
character. How to treat studies that report multiple contrasts for a study to avoid detection of duplication within studies as replication? Select one of
|
min.studies |
integer. Minimum number of studies for a condition to be tested. Defaults to 2, which will then only test a condition investigated by at least two studies. |
min.taxa |
integer. Minimum size for a signature to be included. Defaults to 5, which will then only include signatures containing at least 5 taxa. |
A data.frame reporting semantic similarity and re-sampling p-value for each condition under investigation. Results are stratified by direction of abundance change in the study group.
dat <- bugsigdbr::importBugSigDB(version = "10.5281/zenodo.5904281")
dat.feces <- subset(dat, `Body site` == "feces")
res <- testReplicability(dat.feces)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.