Description Usage Arguments Details Value Author(s) See Also Examples
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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | 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
1 2 3 4 5 6 7 8 9 10 | 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.