make_barcode_plot: Make DNA Barcode Plot

Description Usage Arguments Value

Description

Make DNA Barcode Plot

Usage

1
2
make_barcode_plot(sequences, species_sub, trim = FALSE,
  consensus = FALSE)

Arguments

sequences

DNAStringSet cnotaining sequences to be aligned and plotted. Should be loaded from a FASTA file with sequences <- Biostrings::readDNAStringSet('seqs.fasta')

species_sub

character vector, the names of the sequences to align and plot. Must match 'rownames(sequences)'

trim

logical, should leading or trailing gaps be trimmed? All sequences will be trimmed equally

consensus

logical, should a concensus sequence track be calculated and plotted?

Value

A ggplot containing a DNA barcode plot


divibisan/dna.barcode documentation built on Nov. 10, 2019, 8:27 p.m.