Last chance! 50% off unlimited learning
Sale ends in
pileupAsGRanges(bams, regions, DNABases=c("A", "C", "G", "T", "N"), ...)
which
arguments in
ApplyPileupsParam
.ApplyPileupsParam
.depth
for total
reads, bam
for file path.applyPileup
function in Rsamtools
package, more detailed control could be found under manual of
ApplyPileupsParam function in Rsamtools. pileupAsGRanges
function
return a GRanges object which including summary of nucleotides,
depth, bam file path. This object could be read directly into
pileupGRangesAsVariantTable
function for mismatch
summary.## Not run:
# library(Rsamtools)
# data(genesymbol)
# library(BSgenome.Hsapiens.UCSC.hg19)
# bamfile <- system.file("extdata", "SRR027894subRBM17.bam", package="biovizBase")
# test <- pileupAsGRanges(bamfile, region = genesymbol["RBM17"])
# test.match <- pileupGRangesAsVariantTable(test, Hsapiens)
# head(test[,-7])
# head(test.match[,-5])
# ## End(Not run)
Run the code above in your browser using DataLab