saveSequence | R Documentation |
Save Sequence
saveSequence(x, file = NULL)
x |
Either a phyloseq object with refseq information or a object of class DNAStringSet. |
file |
File name with extension ".fasta" or ".fa", e.g. 'myseqs.fasta' or file path where you wish to save the output fasta e.g. 'mypath/myseqs.fasta'. As a fail safe, default is NULL which returns an error. |
Saves sequences either from a DNAStringSet or refseq slot
phyloseq
object. If taxa_names is sequences, use
'add_refseq' function from microbiomeutilties
before
using this function.
A fasta file saved in user specified location
Sudarshan A. Shetty
# data("SprockettTHData")
# ps <- SprockettTHData
# seq_id <- c("ASV_30_Lachnospiraceae", "ASV_451_UC5-1-2E3", "ASV_586_CAG-56")
# saveSequence(ps,
# file="inst/extras/sequences.fasta")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.