Description Usage Arguments Details Value Examples
Generate taxa/OTU statistics to compare control samples with the remaining dataset
1 | ctrl_samples_stats(physeq, physeq_ctrl)
|
physeq |
|
physeq_ctrl |
|
The taxa/OTU prevalence is defined as the number of samples in which it occurs.
The prevalence is corrected by substracting the number of samples in the physeq_ctrl
object (usually 1).
A data.frame
with the following components
RA_In_Ctrl
Taxa/OTU relative abundance in Control sample
RA_In_All
Same Taxa/OTU relative abundance in all samples but Control samples
Ratio
Ratio of RA_In_Ctrl
/RA_In_All
Prevalence
Taxa/OTU Prevalence in all samples but Control samples.
Range from 0 to the number of samples in physeq
object
(obtained by ntaxa
)
1 2 3 4 5 6 7 | require(phyloseq)
data(soilrep)
# Subset a sample
soilrep.6CC<-subset_samples_no_zero(soilrep, Sample=="6CC")
# Check
ctrl_df<-ctrl_samples_stats(soilrep,soilrep.6CC)
head(ctrl_df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.