BamToBed | R Documentation |
This function is used to convert SAM file to BED file and merge interleave paired end reads, shift reads, filter reads according to chromosome, filter reads according to fragment size, sort, remove duplicates reads before generating BED file.
atacBam2Bed( atacProc, bamInput = NULL, bedOutput = NULL, reportOutput = NULL, bsgenome = NULL, mergePairIntoFrag = c("auto", "yes", "no"), posOffset = +4, negOffset = -5, chrFilterList = "chrM|_", sortBed = TRUE, rmMultiMap = TRUE, minFragLen = 0, maxFragLen = 2000, saveExtLen = FALSE, uniqueBed = c("auto", "yes", "no"), ... ) ## S4 method for signature 'ATACProc' atacBam2Bed( atacProc, bamInput = NULL, bedOutput = NULL, reportOutput = NULL, bsgenome = NULL, mergePairIntoFrag = c("auto", "yes", "no"), posOffset = +4, negOffset = -5, chrFilterList = "chrM|_", sortBed = TRUE, rmMultiMap = TRUE, minFragLen = 0, maxFragLen = 2000, saveExtLen = FALSE, uniqueBed = c("auto", "yes", "no"), ... ) bam2bed( bamInput, bedOutput = NULL, reportOutput = NULL, bsgenome = NULL, mergePairIntoFrag = c("auto", "yes", "no"), posOffset = +4, negOffset = -5, chrFilterList = "chrM|_", sortBed = TRUE, rmMultiMap = TRUE, minFragLen = 0, maxFragLen = 2000, saveExtLen = FALSE, uniqueBed = c("auto", "yes", "no"), ... )
atacProc |
|
bamInput |
|
bedOutput |
|
reportOutput |
|
bsgenome |
|
mergePairIntoFrag |
|
posOffset |
|
negOffset |
|
chrFilterList |
|
sortBed |
|
rmMultiMap |
|
minFragLen |
|
maxFragLen |
|
saveExtLen |
|
uniqueBed |
|
... |
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.
Zheng Wei, Wei Zhang
atacBamSort
atacSam2Bam
library(Rsamtools) # change dataset !! # ex1_file <- system.file("extdata", "ex1.bam", package="Rsamtools") # bam2bed(bamInput = ex1_file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.