hivdb / chiro-frontend

Coronavirus frontend, CoV-Rx-DB,
0 stars 1 forks source link

inconsistent between titer and fold #40

Closed philiptzou closed 2 years ago

philiptzou commented 2 years ago

Quote from Bob:

For the Planas study I have found that several of the titers for vaccines are listed as "<". When this occurs the fold should be ">" but that is not the case. This should be changed. It is only logical that the change should be ">".

The issue: for Planas21c vaccine AZD1222 the cmp symbols for titer and fold are inconsistent.

Screen Shot 2021-12-21 at 1 01 21 PM

The issue is caused by the different calculation of aggregated titer and aggregated fold. The cmp symbol for aggregated titer is determined by compare geomean value with the largest titer threshold, plus the lower-than-threshold titers have been taken square-roots before they participating in geometric mean calculation. This method allows calling a "<" when a few number of experimental titers stay effective.

The cmp symbol for aggregated fold is determined by if all experimental titers are ineffective. This method doesn't call ">" when one or more of the experimental titers are effective.

Screen Shot 2021-12-21 at 1 06 03 PM
philiptzou commented 2 years ago

The fix: since the geomean titer and the median fold are calculated separately - the geomean titer is from individual titers while the median fold is from individual folds from the division of each individual control titer by the individual experimental titer, but not the division of the geomean control titer by the experimental titer, there's not way to determine the cmp symbol consistent to geomean experimental titer without re-calculating the geomean experimental titer for the fold.

philiptzou commented 2 years ago

This introduced a quirk implementation which has been documented at https://github.com/hivdb/covid-drdb-payload/wiki/Method:-Use-potency-to-calcualte-fold-change-for-plasma-titer-(draft) as Quirk 1.