View source: R/alignment-utils.R
getImproperAlignmentPairs | R Documentation |
This function is a wrapper for readGAlignments. At the time this function was created, one could not create a GAlignmentPairs object of improperly paired reads using existing infrastructure in the GenomicAlignments package. This function may be deprecated in the future.
getImproperAlignmentPairs(bam.file, param = improperAlignmentParams(), build)
bam.file |
complete path to BAM file |
param |
a |
build |
the reference genome buld that reads were aligned to. Currently supported builds include "hg19" and "hg18". |
a GAlignmentPairs
object
See makeGAlignmentPairs
for details regarding use.mcols
argument. See
improperAlignmentParams
for creating a
ScanBamParam
object with the appropriate flags for
extracting improper read pairs.
library(svbams)
path <- system.file("extdata", package="svbams")
bam.file <- file.path(path, "cgov10t.bam")
irp <- getImproperAlignmentPairs(bam.file, build="hg19")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.