makeSegmentCountHistPlots: makeSegmentCountHistPlots

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Plot the histogram of the number of alignments per read.

Usage

1
2
3
  makeSegmentCountHistPlots(bamFiles,
                            pairedMode = c("paired", "first", "second"),
                            mc.cores = getThreads())

Arguments

bamFiles

The character() filenames of input bam files.

pairedMode

The pairedMode can be "paired", "first", "second". "paired" will load proper pairs; "first" will load all the first reads; "second" will load all mapped mate reads. This argument is ignored when it's single-end read.

mc.cores

The number of threads to use. By default, we use a internal function NGS:::getThreads to decide.

Details

When it's paired-end reads, the number of alignments is calculated for the whole pair (fragment).

Value

A ggplot object.

Author(s)

Ge Tan

See Also

makeFragLengthHistPlot

Examples

1
2
3
  bamfile <- system.file("extdata", "ex1.bam", package="Rsamtools",
                         mustWork=TRUE)
  makeSegmentCountHistPlots(bamfile, pairedMode="paired", mc.cores=1L)

ge11232002/NGS documentation built on May 17, 2019, 12:13 a.m.