Description Usage Arguments Value Author(s) See Also
Estimates FDR for peaks in a ChIP sample by comparing it with a control data set.
controlFDR
consists of three steps:
(1) Compare ChIP reads with control reads within peaks using compareWithControl()
.
(2) Adjust p-values for multiple testing using p.adjust
.
(3) Print peaks and p-values to file.
1 2 | controlFDR(peaks, chip, control, outfile, winsize = 200,
minreads = 8, binom.sided = "two.sided", adj.method = "fdr")
|
peaks |
File containing peak locations. Must be in bedGraph format. |
chip |
Padded bedGraph file for the ChIP data being analyzed. |
control |
Padded bedGraph file for the control data being analyzed. |
outfile |
Output file. |
winsize |
Window size for obtaining peaks (default = 200). |
minreads |
Minimum reads within a peak (default = 8). This filtering is necessary for a more accurate estimation of FDR. |
binom.sided |
One-sided or two-sided binomial test, if control is not NA (default = "two.sided") |
adj.method |
Method for multiple testing adjustment. Can use any methods accepted by |
This function writes peaks to a file after FDR estimation in the presence of control. This file has with the following fields:
chromosome |
Chromosome name |
start |
Start position of peak (1-based indexing) |
end |
End position of peak |
ChIP.reads |
Number of ChIP reads in the peak (normalized to per million mapped reads) |
Control.reads |
Number of control reads in the peak (normalized to per million mapped reads) |
Fold.Change |
Fold-change calculated as |
p.value |
P-value for the peak |
adj.p.value |
P-values adjusted for multiple comparisons using |
Apratim mitra
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.