View source: R/dada_phyloseq.R View source: R/beta_div_test.R
taxa_only_in_one_level | R Documentation |
Given one modality name in sam_data and one level of the modality, return the taxa strictly specific of this level.
taxa_only_in_one_level(
physeq,
modality,
level,
min_nb_seq_taxa = 0,
min_nb_samples_taxa = 0
)
taxa_only_in_one_level(
physeq,
modality,
level,
min_nb_seq_taxa = 0,
min_nb_samples_taxa = 0
)
physeq |
(required): a |
modality |
(required) The name of a column present in the |
level |
(required) The level (must be present in modality) of interest |
min_nb_seq_taxa |
(default 0 = no filter) The minimum number of sequences per taxa |
min_nb_samples_taxa |
(default 0 = no filter) The minimum number of samples per taxa |
A vector of taxa names
A vector of taxa names
Adrien Taudière
ggvenn_pq()
and upset_pq()
data_fungi_mini_woNA4height <- subset_samples(
data_fungi_mini,
!is.na(data_fungi_mini@sam_data$Height)
)
taxa_only_in_one_level(data_fungi_mini_woNA4height, "Height", "High")
# Taxa present only in low height samples
suppressMessages(suppressWarnings(taxa_only_in_one_level(data_fungi, "Height", "Low")))
# Number of taxa present only in sample of time equal to 15
suppressMessages(suppressWarnings(length(taxa_only_in_one_level(data_fungi, "Time", "15"))))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.