PeakQC | R Documentation |
These functions are used to calculate the overlap ratio in specific quality control rigion. Blacklist and DHS region are provided. You can also set your own BED file as quality control rigion.
atacPeakQC( atacProc, bsgenome = NULL, reportOutput = NULL, qcbedInput = c("DHS", "blacklist", "path/to/bed"), bedInput = NULL, newStepType = "PeakQC", ... ) ## S4 method for signature 'ATACProc' atacPeakQC( atacProc, bsgenome = NULL, reportOutput = NULL, qcbedInput = c("DHS", "blacklist", "path/to/bed"), bedInput = NULL, newStepType = "PeakQC", ... ) peakQC( bedInput, bsgenome = NULL, reportOutput = NULL, qcbedInput = c("DHS", "blacklist", "path/to/bed"), newStepType = "PeakQC", ... )
atacProc |
|
bsgenome |
|
reportOutput |
|
qcbedInput |
|
bedInput |
|
newStepType |
|
... |
Additional arguments, currently unused. |
The parameter related to input and output file path
will be automatically
obtained from ATACProc-class
object 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 peakQC
instead.
An invisible ATACProc-class
object scalar for downstream analysis.
Zheng Wei
atacSamToBed
atacBedUtils
library(R.utils) library(magrittr) td <- tempdir() setTmpDir(td) bedbzfile <- system.file(package="esATAC", "extdata", "chr20.50000.bed.bz2") bedfile <- file.path(td,"chr20.50000.bed") bunzip2(bedbzfile,destname=bedfile,overwrite=TRUE,remove=FALSE) blacklistfile <- system.file(package="esATAC", "extdata", "hg19.blacklist.bed") library(BSgenome.Hsapiens.UCSC.hg19) bedUtils(bedInput = bedfile,maxFragLen = 100, chrFilterList = NULL) %>% atacPeakCalling %>% atacPeakQC(qcbedInput = blacklistfile, bsgenome = BSgenome.Hsapiens.UCSC.hg19) dir(td)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.