has_signif_negative_cluster | R Documentation |
Classify a well as having a significant negative cluster (eg. a mutant well)
or not using a binomial test.
We can call a well as mutant if it is statistically significantly more than
1
mutant drops, then the mutant frequency is 1.4
significantly more than 1
P(x >= 7)
= 1 - P(x <= 7) + P(x = 7)
= 1 - pbinom(7, 500, .01) + dbinom(7, 500, .01)
= 0.237
> 0.01
So not statistically significantly enough, so we say it's a wildtype well.
But if there are 5000 drops and 70 mutant drops (same 1.4
with higher absolute numbers), then
P(x >= 70) = 1 - pbinom(70, 5000, .01) + dbinom(70, 5000, .01) = 0.004
So this is indeed significant, and this well would be deemed mutant.
has_signif_negative_cluster(plate, neg, pos)
plate |
A ddPCR plate |
neg |
Number of negative (or mutant) drops |
pos |
Number of positive (or wildtype) drops |
TRUE
if the number of negative drops is statistically
significant, FALSE
otherwise.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.