pileupRead: Read pileup file

Description Usage Arguments Value Note Author(s)

View source: R/pileupRead.R

Description

Reads a pileup format file created by samtools mpileup.

Usage

1
pileupRead(fname, all.columns = FALSE)

Arguments

fname

filename of pileup file

all.columns

If FALSE (default), only the first 6 columns are returned. If TRUE, all columns are returned, but only the six are informatively named.

Value

data frame representing the pileup file with the following columns:

chrom Chromosome name.
pos 1-based position on the chromosome.
ref Reference base at this position.
cov Number of reads covering this position.
bases Read bases.
quals Base qualities, encoded as ASCII characters.

Note

The input pileup file should be the result of a call to 'samtools mpileup' on a single BAM file.

Author(s)

Eric Archer eric.archer@noaa.gov


EricArcher/swfscGenetics documentation built on May 25, 2021, 3:46 a.m.