exomePeak2 | R Documentation |
exomePeak2
conducts peak calling and differential methylation analysis using BAM files of aligned MeRIP-seq reads.
exomePeak2(
bam_ip = NULL,
bam_input = NULL,
bam_ip_treated = NULL,
bam_input_treated = NULL,
txdb = NULL,
genome = NULL,
gff = NULL,
strandness = c("unstrand", "1st_strand", "2nd_strand"),
fragment_length = 100,
bin_size = 25,
step_size = 25,
test_method = c("Poisson", "DESeq2"),
p_cutoff = 1e-10,
diff_p_cutoff = 0.01,
parallel = 1,
plot_gc = TRUE,
save_output = TRUE,
save_dir = getwd(),
experiment_name = "exomePeak2_output",
mode = c("exon", "full_transcript", "whole_genome"),
motif_based = FALSE,
motif_sequence = "DRACH",
absolute_diff = FALSE,
confounding_factor = NULL
)
bam_ip |
a |
bam_input |
a |
bam_ip_treated |
a |
bam_input_treated |
a The arguments of |
txdb |
a |
genome |
a The character should be the UCSC genome name which is acceptable by |
gff |
optional, a |
strandness |
a
|
fragment_length |
a positive integer number for the expected fragment length (in bp); default |
bin_size |
a positive integer number for the width of the sliding window; default |
step_size |
a positive integer number for the step size of the sliding window; default |
test_method |
a
Note that when using the test method of DESeq2, a larger p-value cut-off (e.g. 0.001) is often required. The cutoff can be set via the argument |
p_cutoff |
a |
diff_p_cutoff |
a |
parallel |
a |
plot_gc |
a |
save_output |
a |
save_dir |
a |
experiment_name |
a |
mode |
a
P.S. The full transcript mode and the whole genome mode demand big memory size (> 4GB) for large genomes. |
motif_based |
a |
motif_sequence |
a |
absolute_diff |
a |
confounding_factor |
A |
exomePeak2
call (differential) RNA modification peaks and calculate peak statistics from BAM files of a MeRIP-seq experiment.
The transcript annotation (from either the TxDb
object or the GFF file) should be provided to perform analysis on exons.
The genome name or BSgenome
object is required to perform the GC content bias correction. If the genome
argument is not provided (= NULL
), the analysis will proceed without GC correction.
If the BAM files in treated samples are provided at the arguments bam_ip_treated
and bam_input_treated
, the statistics of differential modification detection on peaks/sites will be reported.
Under the default setting, exomePeak2
will save the results of (differential) modification analysis under a folder named 'exomePeak2_output'
.
The results generated include a BED file, a RDS file, and a CSV table that stores the locations and statistics of the (differential) modified peaks/sites.
a GRangesList
object, the statistics and other annotations are saved in its metadata columns, which can be accessed through mcol()
.
If save_output = TRUE
, exomePeak2 will output results both as BED, CSV, and RDS files on disk.
## Specify File Directories
GENE_ANNO_GTF = system.file("extdata", "example.gtf", package="exomePeak2")
f1 = system.file("extdata", "IP1.bam", package="exomePeak2")
f2 = system.file("extdata", "IP2.bam", package="exomePeak2")
f3 = system.file("extdata", "IP3.bam", package="exomePeak2")
f4 = system.file("extdata", "IP4.bam", package="exomePeak2")
IP_BAM = c(f1,f2,f3,f4)
f1 = system.file("extdata", "Input1.bam", package="exomePeak2")
f2 = system.file("extdata", "Input2.bam", package="exomePeak2")
f3 = system.file("extdata", "Input3.bam", package="exomePeak2")
INPUT_BAM = c(f1,f2,f3)
## Peak Calling
res <- exomePeak2(bam_ip = IP_BAM,
bam_input = INPUT_BAM,
gff = GENE_ANNO_GTF,
genome = "hg19")
res ## Peak ranges
mcols(res) ## Peak statistics
## Differential Peak Detection (Comparison of Two Conditions)
f1 = system.file("extdata", "treated_IP1.bam", package="exomePeak2")
TREATED_IP_BAM = c(f1)
f1 = system.file("extdata", "treated_Input1.bam", package="exomePeak2")
TREATED_INPUT_BAM = c(f1)
res <- exomePeak2(bam_ip = IP_BAM,
bam_input = INPUT_BAM,
bam_ip_treated = TREATED_IP_BAM,
bam_input_treated = TREATED_INPUT_BAM,
gff = GENE_ANNO_GTF,
genome = "hg19")
res ## Peak ranges
mcols(res) ## Peak statistics
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.