View source: R/fetchSequence.R
fetchSequence | R Documentation |
Retrieve Sequence from Phyloseq
fetchSequence(x, seq_id = NULL, as_DNAStringSet = TRUE)
x |
A phyloseq object |
seq_id |
A list of IDs matching taxa_names(phyloseq) that also have
sequence information stored in refseq slot of
|
as_DNAStringSet |
Logical (Default=TRUE). If FALSE sequences are returned as character strings. |
Retrieve sequences from refseq slot in phyloseq
phyloseq
object.
Sequences for user species IDs either as vector or DNAStringSet object
Sudarshan A. Shetty
library(biomeUtils)
data("SprockettTHData")
ps <- SprockettTHData
seq_id <- c("ASV_30_Lachnospiraceae", "ASV_451_UC5-1-2E3", "ASV_586_CAG-56")
myseqs <- fetchSequence(ps, seq_id = seq_id, as_DNAStringSet = TRUE)
myseqs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.