View source: R/numbered_ASVs.R
numbered.ASVs | R Documentation |
Replace ASV names (sequences) as output by dada2 with ASV numbers (e.g. ASV001, ASV002, ...). Returns a phyloseq object with the new names.
numbered.ASVs(ps, prefix = "ASV", save.dir = ".", save.file = "ASV_sequences")
ps |
a phyloseq object |
prefix |
The string you want to come before the id numbers. Defaults to "ASV". Cannot be "" or logical (TRUE/FALSE) as numbers can't be used as column names in data.frames. |
save.dir |
directory in which to save the original ASV sequences, for reference. Defaults to "." (current directory). |
save.file |
file name to save the original ASV sequences. Does NOT require an extension (saves as a .rds). Defaults to "ASV_sequences". |
taxa_names
, phyloseq
data(example_phyloseq) head(taxa_names(example_phyloseq)) new.phyloseq <- numbered.ASVs(example_phyloseq) head(taxa_names(new.phyloseq))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.