Learn R Programming

qrqc (version 1.26.0)

seqlenPlot-methods: Plot a Histogram of Sequence Lengths

Description

seqlenPlot plots a histogram of sequence lengths.

Usage

seqlenPlot(x)

Arguments

x
an S4 object that inherits from SequenceSummary from readSeqFile.

Methods

signature(x = "FASTQSummary")
seqlenPlot will plot a histogram of a single object that inherits from SequenceSummary.
signature(x = "list")
seqlenPlot will plot a histogram for each of the SequenceSummary items in the list and display them in a series of panels.

See Also

getSeqlen

Examples

Run this code
  ## Load a FASTQ file
  s.fastq <- readSeqFile(system.file('extdata', 'test.fastq', package='qrqc'))

  ## Plot sequence lengths
  seqlenPlot(s.fastq)

  ## Plot sequence legnths before and after trimming
  s.trimmed.fastq <- readSeqFile(system.file('extdata',
    'test-trimmed.fastq', package='qrqc'))
  seqlenPlot(list("not trimmed"=s.fastq, "trimmed"=s.trimmed.fastq))

Run the code above in your browser using DataLab