readBam {ORFik} | R Documentation |
Safer version that handles the most important error done. In the future will use a faster .bam loader for big .bam files in R.
readBam(path, chrStyle = NULL)
path |
a character path to .bam file. If paired end bam files,
input must be a data.table with two columns (forward and reverse)
and one row: |
chrStyle |
a GRanges object, TxDb, FaFile,
or a |
a GAlignments
object of bam file
Other utils:
bedToGR()
,
convertToOneBasedRanges()
,
export.bed12()
,
export.wiggle()
,
fimport()
,
findFa()
,
fread.bed()
,
optimizeReads()
,
readWig()
bam_file <- system.file("extdata", "ribo-seq.bam", package = "ORFik") readBam(bam_file, "UCSC")