rename_samples | R Documentation |
Useful for targets bioinformatic pipeline.
rename_samples(phyloseq_component, names_of_samples, taxa_are_rows = FALSE)
phyloseq_component |
(required) one of otu_table or sam_data slot of a phyloseq-class object |
names_of_samples |
(required) A vector of samples names |
taxa_are_rows |
(default to FALSE) see ?phyloseq for details |
The otu_table or the sam_data slot with new samples names
Adrien Taudière
otutab <- rename_samples(
data_fungi@otu_table,
paste0("data_f", sample_names(data_fungi))
)
otutab2 <- rename_samples(
clean_pq(data_fungi,
force_taxa_as_rows = TRUE
)@otu_table,
paste0("data_f", sample_names(data_fungi))
)
samda <- rename_samples(
data_fungi@sam_data,
paste0("data_f", sample_names(data_fungi))
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.