BamToBed {esATAC} | R Documentation |
This function convert a bam file into a bed file. Note:bed file is 0-based.
atacBam2Bed(atacProc, bamInput = NULL, bedOutput = NULL, ...) ## S4 method for signature 'ATACProc' atacBam2Bed(atacProc, bamInput = NULL, bedOutput = NULL, ...) bam2bed(bamInput, bedOutput = NULL, ...)
atacProc |
|
bamInput |
|
bedOutput |
|
... |
Additional arguments, currently unused. |
The bam file wiil be automatically obtained from
object(atacProc
) or input by hand. Output can be ignored.
An invisible ATACProc-class
object scalar for
downstream analysis.
Wei Zhang
library(Rsamtools) ex1_file <- system.file("extdata", "ex1.bam", package="Rsamtools") bam2bed(bamInput = ex1_file)