Description Usage Arguments Value Author(s) Examples
shift the GAlignmentsLists by 5' ends. All reads aligning to the positive strand will be offset by +4bp, and all reads aligning to the negative strand will be offset -5bp by default.
1 | shiftGAlignmentsList(gal, positive = 4L, negative = 5L)
|
gal |
An object of GAlignmentsList. |
positive |
integer(1). the size to be shift for positive strand |
negative |
integer(1). the size to be shift for negative strand |
An object of GAlignments with 5' end shifted reads.
Jianhong Ou
1 2 3 4 5 6 7 | bamfile <- system.file("extdata", "GL1.bam", package="ATACseqQC")
tags <- c("AS", "XN", "XM", "XO", "XG", "NM", "MD", "YS", "YT")
library(BSgenome.Hsapiens.UCSC.hg19)
which <- as(seqinfo(Hsapiens)["chr1"], "GRanges")
gal <- readBamFile(bamfile, tag=tags, which=which, asMates=TRUE)
objs <- shiftGAlignmentsList(gal)
export(objs, "shift.bam")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.