broadinstitute / genetic-prevalence-estimator

https://genie.broadinstitute.org/
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Fix math for prevalence #58

Closed nawatts closed 3 years ago

nawatts commented 3 years ago

Currently, q^2 is calculated for each variant and the results summed.

https://github.com/broadinstitute/aggregate-frequency-calculator/blob/6084fb709e9091ae5e172ee726dfd22f7e222869/frontend/src/components/VariantListPage/VariantListCalculations/calculations.ts#L24-L26

Instead, q should be the sum of all variants' AF and prevalence should be that sum squared.