You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b8e59a0
Browse filesBrowse the repository at this point in the historyBrowse files
RESET: apply the decoy factor to --tdc-pep and --irls-pep PEPs
RESET keeps only the decoys that were not used for training, about half
of them, so each remaining decoy stands for two incorrect targets. The
q values account for this (nullTargetWinProb 2/3, decoy factor 2), and
so do the default PEPs, which are derived from the q values. The PEPs
from the target-decoy labels (--tdc-pep) used the decoy odds unscaled,
and the logistic regression of --irls-pep had no factor at all (the
TODO in Caller::run). Their PEPs were therefore half as large as they
should be; where nearly all targets are incorrect they stayed at about
0.5 instead of 1.
calcPep now multiplies the odds by nullTargetWinProb / (1 -
nullTargetWinProb), which is 1 without RESET, in the --tdc-pep branch,
and PosteriorEstimator::estimatePEP takes the factor as a new argument
(default 1) for --irls-pep.
Ground truth (500k concatenated PSMs, --shift-scale 0.6, and the easier
--shift-scale 1 set), RESET, mean PEP of the targets at q < 0.01 /
binned PEP error / Hosmer-Lemeshow chi2/df, before -> after; the
observed FDR is 0.0097 and 0.0087:
- med --tdc-pep: 0.0046 / 0.298 / 1038 -> 0.0093 / 0.0034 / 1.66
- med --irls-pep: 0.0050 / 0.305 / 1119 -> 0.0099 / 0.0063 / 0.67
- easy --tdc-pep: 0.0049 / 0.298 / 1105 -> 0.0097 / 0.0033 / 0.77
- easy --irls-pep: 0.0061 / 0.290 / 435 -> 0.0122 / 0.0056 / 5.54
The default PEPs (0.0095 / 0.0035 and 0.0098 / 0.0036) and all q
values are unchanged. A new unit test checks, on data with one decoy
per two incorrect targets, that the mean PEP of the targets below
q = 0.05 is within 0.7-1.4 times their fraction of incorrect targets
for all three methods (it fails for --tdc-pep and --irls-pep without
this change), and that the tdc and irls PEPs are twice those with
nullTargetWinProb 1/2.
Output files without RESET are byte-identical, as are RESET outputs
with the default PEPs.
Interface: PosteriorEstimator::estimatePEP has a new last argument
oddsFactor (default 1).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017yywhfE3wwkLwPUfoERjp6
0 commit comments