RMotifScanPair | R Documentation |
Search motif position in genome according thr given motif and peak information.
atacMotifScanPair( atacProc, peak1 = NULL, peak2 = NULL, background = NULL, genome = NULL, motifs = NULL, p.cutoff = 1e-04, scanO.dir = NULL, prefix = NULL, ... ) ## S4 method for signature 'ATACProc' atacMotifScanPair( atacProc, peak1 = NULL, peak2 = NULL, background = NULL, genome = NULL, motifs = NULL, p.cutoff = 1e-04, scanO.dir = NULL, prefix = NULL, ... ) motifscanpair( peak1 = NULL, peak2 = NULL, background = NULL, genome = NULL, motifs = NULL, p.cutoff = 1e-04, scanO.dir = NULL, prefix = NULL, ... )
atacProc |
|
peak1 |
peak file path. |
peak2 |
peak file path. |
background |
background peak file path. |
genome |
BSgenome object, Default: from |
motifs |
either |
p.cutoff |
p-value cutoff for returning motifs. |
scanO.dir |
|
prefix |
prefix for Output file. Order: peak1, peak2, backgroud. |
... |
Additional arguments, currently unused. |
This function scan motif position in a given genome regions.
An invisible ATACProc-class
object scalar for
downstream analysis.
Wei Zhang
atacPeakComp
## Not run: library(R.utils) library(BSgenome.Hsapiens.UCSC.hg19) p1bz <- system.file("extdata", "Example_peak1.bed.bz2", package="esATAC") p2bz <- system.file("extdata", "Example_peak2.bed.bz2", package="esATAC") peak1_path <- as.vector(bunzip2(filename = p1bz, destname = file.path(getwd(), "Example_peak1.bed"), ext="bz2", FUN=bzfile, overwrite=TRUE , remove = FALSE)) peak2_path <- as.vector(bunzip2(filename = p2bz, destname = file.path(getwd(), "Example_peak2.bed"), ext="bz2", FUN=bzfile, overwrite=TRUE, remove = FALSE)) peakcom.output <- peakcomp(bedInput1 = peak1_path, bedInput2 = peak2_path, olap.rate = 0.1) motif <- readRDS(system.file("extdata", "MotifPFM.rds", package="esATAC")) output <- atacMotifScanPair(atacProc = peakcom.output, genome = BSgenome.Hsapiens.UCSC.hg19, motifs = motif) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.