Learn R Programming

CNVPanelizer (version 1.2.2)

ReadCountsFromBam: ReadCountsFromBam

Description

Returns a matrix with the read counts from a set of bam files.

Usage

ReadCountsFromBam(bamFilenames, sampleNames, gr, ampliconNames, removeDup = FALSE)

Arguments

bamFilenames
Vector of bamfile filepaths
sampleNames
Vector of sample names to be used as colums names instead of bam filepaths
gr
Genomic Range object as created by BedToGenomicRanges
ampliconNames
List of amplicon defining names
removeDup
Boolean value to remove duplicates. For reads with the same start site, end site and orientation only one is kept. For IonTorrent data this can be used to as an additional quality control. For Illumina data too many reads are being removed.

Value

A matrix with read counts where the rows represents the Amplicons and the columns represents the samples.

Examples

Run this code
    
    
    
        ReadCountsFromBam(bamFilenames,
                            sampleNames,
                            gr,
                            ampliconNames,
                            removeDup)
    

Run the code above in your browser using DataLab