CutSitePre | R Documentation |
Extract cutting site from ATAC-seq fangment bed file
(from atacSamToBed
).
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
atacCutSiteCount
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.