Description Usage Arguments Details Value
View source: R/utils_enrichment.R
Given total read counts in two samples, calculates library size-normalized confidence intervals for the ratio sample1/sample2.
1 | binom_ci(sample1, sample2, sample1_total, sample2_total, conf.level = 0.95)
|
sample1 |
Read counts in sample1. |
sample2 |
Read counts in sample2. |
sample1_total |
Total number of reads in sample1 (for library size normalization). |
sample2_total |
Total number of reads in sample2 (for library size normalization). |
conf.level |
Confidence level. |
Uses the Agresti-Coull approximation to calculate binomial confidence intervals of sample1/(sample1 + sample2). These values are then converted to CIs of sample1/sample2 and normalized for library size.
A tibble containing the observed proportions and the lower and upper bounds of the confidence interval.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.