Description Usage Arguments Details Value Author(s) See Also Examples
Extract cutting site from ATAC-seq fangment bed file
(from atacSamToBed
).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | atacExtractCutSite(
atacProc,
bedInput = NULL,
csOutput.dir = NULL,
prefix = NULL,
...
)
## S4 method for signature 'ATACProc'
atacExtractCutSite(
atacProc,
bedInput = NULL,
csOutput.dir = NULL,
prefix = NULL,
...
)
extractcutsite(bedInput, csOutput.dir = NULL, prefix = NULL, ...)
|
atacProc |
|
bedInput |
|
csOutput.dir |
|
prefix |
|
... |
Additional arguments, currently unused. |
In ATAC-seq data, every line in merged bed file
(from atacSamToBed
, the first 3 column is chr, start, end)
means a DNA fragment, the cutting site is start+1 and end, this function
extract and sort this information for the next step
(atacCutSiteCount
).
An invisible ATACProc-class
object scalar for downstream
analysis.
Wei Zhang
1 2 3 4 5 6 | library(R.utils)
fra_path <- system.file("extdata", "chr20.50000.bed.bz2", package="esATAC")
frag <- as.vector(bunzip2(filename = fra_path,
destname = file.path(getwd(), "chr20.50000.bed"),
ext="bz2", FUN=bzfile, overwrite=TRUE, remove = FALSE))
extractcutsite(bedInput = frag, prefix = "ATAC")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.