| fread.bed {ORFik} | R Documentation |
Wraps around rtracklayer::import.bed and tries to speed up loading with the use of data.table. Supports gzip, gz, bgz and bed formats. Also safer chromosome naming with the argument chrStyle
fread.bed(filePath, chrStyle = NULL)
filePath |
The location of the bed file |
chrStyle |
a GRanges object, or a |
a GRanges object
Other utils:
bedToGR(),
convertToOneBasedRanges(),
fimport(),
findFa(),
optimizeReads(),
readBam(),
readWig()
# path to example CageSeq data from hg19 heart sample
cageData <- system.file("extdata", "cage-seq-heart.bed.bgz",
package = "ORFik")
fread.bed(cageData)