Closed nawatts closed 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.
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.