BedUtils | R Documentation |
This function is used to merge interleave paired end reads in bed, downsample bed reads, shift bed reads, filter bed reads according to chromosome, filter bed reads according to fragment size, sort bed, remove duplicates reads in bed.
atacBedUtils( atacProc, bedInput = NULL, bedOutput = NULL, mergePair = FALSE, downSample = NULL, posOffset = 0L, negOffset = 0L, chrFilterList = c("chrM"), select = FALSE, sortBed = FALSE, uniqueBed = FALSE, minFragLen = 0, maxFragLen = 2e+09, newStepType = "BedUtils", ... ) ## S4 method for signature 'ATACProc' atacBedUtils( atacProc, bedInput = NULL, bedOutput = NULL, mergePair = FALSE, downSample = NULL, posOffset = 0L, negOffset = 0L, chrFilterList = c("chrM"), select = FALSE, sortBed = FALSE, uniqueBed = FALSE, minFragLen = 0, maxFragLen = 2e+09, newStepType = "BedUtils", ... ) bedUtils( bedInput, bedOutput = NULL, mergePair = FALSE, downSample = NULL, reportOutput = NULL, posOffset = 0L, negOffset = 0L, chrFilterList = c("chrM"), select = FALSE, sortBed = FALSE, uniqueBed = FALSE, minFragLen = 0, maxFragLen = 2e+09, newStepType = "BedUtils", ... )
atacProc |
|
bedInput |
|
bedOutput |
|
mergePair |
|
downSample |
|
posOffset |
|
negOffset |
|
chrFilterList |
|
select |
|
sortBed |
|
uniqueBed |
|
minFragLen |
|
maxFragLen |
|
newStepType |
|
... |
Additional arguments, currently unused. |
reportOutput |
|
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 bedUtils
instead.
An invisible ATACProc-class
object scalar for downstream analysis.
Zheng Wei
atacBam2Bed
bam2bed
atacSamToBed
samToBed
atacFragLenDistr
atacExtractCutSite
atacPeakCalling
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) atacproc<-samToBed(samInput = samfile) %>% atacBedUtils(maxFragLen = 100, chrFilterList = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.