Description Usage Arguments Details Value
View source: R/utils_enrichment.R
For a given gene, confidence intervals of enrichment (read count ratio) are calculated for each position.
1 2 3 4 5 6 7 8 9 10 11 12 | binom_ci_profile(
data,
gene,
sample1,
sample2,
exp,
rep,
bin,
window_size,
conf.level = 0.95,
ignore_genecol = FALSE
)
|
data |
A |
gene |
Name of the gene/ORF. |
sample1 |
Sample name to use in the numerator. |
sample2 |
Sample name to use in the denominator. |
exp |
Experiment name(s). If missing, all experiments will be used. |
rep |
Replicate name(s). If missing, all replicates will be used. |
bin |
Binning to use. If missing, will be automatically determined. |
window_size |
Neighborhood size in nucleotides. Will be automatically converted to codons if binning by codons. |
conf.level |
Confidence level. |
ignore_genecol |
If |
At each position within the gene, read counts within a window_size
-wide neighborhood are summed up
and used for CI calculation. A confidence interval for the ratio sample1/sample2
is calculated using binom_ci
.
A tibble with the following columns:
Experiment name.
Replicate name.
Center of the neighborhood for which the CI was calculated.
Raw counts of sample1 at position winmid
. Note that the actual column name
is the value of sample1
.
Raw counts of sample2 at position winmid
. Note that the actual column name
is the value of sample2
.
Total read counts of sample1 within the neighborhood centered at winmid
.
Note that the actual column name is the value of sample1
.
Total read counts of sample2 within the neighborhood centered at winmid
.
Note that the actual column name is the value of sample2
.
Estimated ratio \frac{sample1}{sample2}.
Lower confidence bound.
Upper confidence bound.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.