View source: R/alignment-utils.R
ga2gr | R Documentation |
Melts GAlignmentPairs
objects to GRanges
objects.
ga2gr(ga, is.improper = FALSE, use.mcols = FALSE)
ga |
a |
is.improper |
a length-one logical vector. |
use.mcols |
logical for whether to keep the metadata columns of the |
A GRanges
object with metadata columns containing read pair information.
library(svbams)
path <- system.file("extdata", package="svbams")
bam.file <- file.path(path, "cgov10t.bam")
irp <- getImproperAlignmentPairs(bam.file, build="hg19")
igr <- ga2gr(irp, is.improper=TRUE)
prp <- getProperAlignmentPairs(bam.file, build="hg19")
pgr <- ga2gr(prp, is.improper=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.