Description Usage Arguments Value Examples
Calling peaks from bam files
1 2 3 4 |
bamfile |
bam file name |
index |
index file name |
inputBam |
input bam file name |
inputIndex |
index file name for input |
txdb |
TxDb object |
genome |
BSgenome object |
upstream |
peak scan start position from upstream of gene |
downstream |
peak scan end position till downstream of gene |
ideaPeakWidth |
ideally peak width, eg, ATAC-seq: 200bp |
FDRfilter |
cut off value of FDR. |
direction |
over or less. In most case, default over is OK. In some cases, such as cohesion, less may be what you want to try. |
a GRanage object indicates the peaks.
1 2 3 4 5 6 7 8 9 10 11 12 | path <- system.file("extdata", package = "diffPeaks", mustWork = TRUE)
bamfiles <- dir(path, "bam$", full.names = TRUE)
bamfile <- bamfiles[1]
index <- bamfile
library(TxDb.Drerio.UCSC.danRer10.refGene)
txdb <- TxDb.Drerio.UCSC.danRer10.refGene
library(BSgenome.Drerio.UCSC.danRer10)
genome <- Drerio
upstream <- downstream <- 50000L
ideaPeakWidth <- 200
direction <- "over"
x <- callPeak(bamfile, txdb=txdb, genome=genome)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.