View source: R/alignment-utils.R
getProperAlignmentPairs | R Documentation |
Function used by rearrangement analysis to extract the sequence of properly paired reads from a bam file.
getProperAlignmentPairs(
bam.file,
param = properAlignmentParams(mapqFilter = 0),
build
)
bam.file |
a |
param |
a |
build |
the reference genome buld that reads were aligned to. Currently supported builds include "hg19" and "hg18". |
a GAlignmentPairs
object
See properAlignmentParams
for creating a
ScanBamParam
object with the appropriate flags for extracting
proper read pairs.
library(svbams)
path <- system.file("extdata", package="svbams")
bam.file <- file.path(path, "cgov10t.bam")
irp <- getProperAlignmentPairs(bam.file, build="hg19")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.