campanam / RatesTools

Pipeline to calculate de novo mutation rates from parent-offspring trios
Creative Commons Zero v1.0 Universal
5 stars 1 forks source link

[FEATURE REQUEST] Estimate non-normal bootstrap confidence interval #70

Open campanam opened 8 months ago

campanam commented 8 months ago

Current bootstrap confidence interval assumes a normal distribution of bootstrapped replicates. Instead, a better approximation would be to use the percentile interval.

campanam commented 8 months ago

The issue is that there is no way to average the C.I.s this way. Better to use a binomial confidence interval for an alternative.

campanam commented 8 months ago

Standard deviation (normal approximation) of bootstrapped interval gets negative values. We can simply weight the 95% C.I. critical values using the same weighting as the mean.