View source: R/helper_functions.R
ps_to_fasta | R Documentation |
This function outputs a FASTA-formatted text file from a phyloseq
object.
This code was modified from reltools
package https://github.com/DanielSprockett/reltools by Daniel Sprocket
ps_to_fasta(ps, out.file = NULL, seqnames = "unique", width = 1000, ...)
ps |
A |
seqnames |
(optional) A taxonomic rank from the |
width |
(Default 1000) The number of characters in each fasta line before wrapping occurs |
... |
(Optional) Any further paramaters to be passed to |
file |
(optional) A file name that ends in ".fasta" or ".fa". If a file name is not supplied, the file will be named after the phyloseq object. |
This function saves a FASTA-formatted text file from the input phyloseq
object.
save_fasta(ps)
save_fasta(ps = ps, file = "sequences.fasta", rank = "Genus")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.