View source: R/drop_sequences.R
drop_sequences | R Documentation |
drop_sequences()
removes sequences of a FASTA file by its names.
drop_sequences(dna, identifier, drop = TRUE)
dna |
a DNAbin list object. |
identifier |
a character vector containing sequence names. |
drop |
Logical. If |
drop_sequences()
relies on exact match between sequence names within
a fasta file and identifier
argument.
an object of class DNAbin.
Pedro S. Bittencourt
# Create a vector of sequence names to drop or keep.
identifier <- names(geophagus)[1:3]
# Remove sequences listed in identifier
drop_sequences(geophagus, identifier, drop = TRUE)
# Remove sequences not listed in identifier
drop_sequences(geophagus, identifier, drop = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.