SamToBed | 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.
atacSamToBed( atacProc, reportOutput = NULL, merge = c("auto", "yes", "no"), posOffset = +4, negOffset = -5, chrFilterList = "chrM", samInput = NULL, bedOutput = NULL, sortBed = TRUE, minFragLen = 0, maxFragLen = 100, saveExtLen = FALSE, uniqueBed = TRUE, ... ) ## S4 method for signature 'ATACProc' atacSamToBed( atacProc, reportOutput = NULL, merge = c("auto", "yes", "no"), posOffset = +4, negOffset = -5, chrFilterList = "chrM", samInput = NULL, bedOutput = NULL, sortBed = TRUE, minFragLen = 0, maxFragLen = 100, saveExtLen = FALSE, uniqueBed = TRUE, ... ) samToBed( samInput, reportOutput = NULL, merge = c("auto", "yes", "no"), posOffset = +4, negOffset = -5, chrFilterList = "chrM", bedOutput = NULL, sortBed = TRUE, minFragLen = 0, maxFragLen = 100, saveExtLen = FALSE, uniqueBed = TRUE, ... )
atacProc |
|
reportOutput |
|
merge |
|
posOffset |
|
negOffset |
|
chrFilterList |
|
samInput |
|
bedOutput |
|
sortBed |
|
minFragLen |
|
maxFragLen |
|
saveExtLen |
|
uniqueBed |
|
... |
Additional arguments, currently unused. |
The parameter related to input and output file path
will be automatically
obtained from ATACProc-class
object(atacProc
) or
generated based on known parameters
if their values are default(e.g. NULL
).
Otherwise, the generated values will be overwrited.
If you want to use this function independently,
you can use samToBed
instead.
An invisible ATACProc-class
object scalar for downstream analysis.
Zheng Wei
atacBowtie2Mapping
bowtie2Mapping
atacFragLenDistr
atacExtractCutSite
atacPeakCalling
atacBedUtils
atacTSSQC
atacBedToBigWig
library(R.utils) library(magrittr) td <- tempdir() setTmpDir(td) sambzfile <- system.file(package="esATAC", "extdata", "Example.sam.bz2") samfile <- file.path(td,"Example.sam") bunzip2(sambzfile,destname=samfile,overwrite=TRUE,remove=FALSE) samToBed(samInput = samfile)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.