ps_to_dnabin: ps_to_dnabin

ps_to_dnabinR Documentation

ps_to_dnabin

Description

ps_to_dnabin

Usage

ps_to_dnabin(ps, seqnames = "unique")

Arguments

ps

A phyloseq object that contains refseq. If there the refseq slot is not filled, this function will try pull the sequences from get_taxa

seqnames

(optional) A taxonomic rank from the tax_table which will be used to name the sequences. alternatively "unique" will uniquely name the sequences as ASV_#, "sequence" will name the sequences in the fasta exactly the same same as the sequence, usfull for LULU curation.

Examples

save_fasta(ps)
save_fasta(ps = ps, file = "sequences.fasta", rank = "Genus")

alexpiper/seqateurs documentation built on July 9, 2023, 7:21 a.m.