Learn R Programming

primerTree (version 1.1.0)

seq_lengths: Get a summary of sequence lengths from a primerTree object

Description

Get a summary of sequence lengths from a primerTree object

Usage

seq_lengths(x, summarize = TRUE)

Value

a table of sequence length frequencies

Arguments

x

a primerTree object.

summarize

a logical indicating if a summary should be displayed

Examples

Run this code

# Show the counts for each length
seq_lengths(mammals_16S)

# Plot the distribution of lengths
seqLengths <- seq_lengths(mammals_16S)
barplot(seqLengths,
 main = "Frequency of sequence lengths for 16S mammal primers",
 xlab="Amplicon length (in bp)",
 ylab=("Frequency"))

Run the code above in your browser using DataLab