statisticalbiotechnology / triqler

The triqler (TRansparent Identification-Quantification-linked Error Rates)'s source and example code
Apache License 2.0
19 stars 10 forks source link

PEPs are constant one for certain inputs #28

Open ezander opened 1 month ago

ezander commented 1 month ago

For certain inputs of scores and targets the peps computed by getQvaluesFromScores are all one. This is due to the monotonization step at the end of the function (line 81, probs = monotonize(probs)).

I've created a fork at https://github.com/ezander/triqler and added two files (data.py and issue.py) in https://github.com/ezander/triqler/tree/issue/pep_constant_one/tests/issue that demonstrate the issue.

RalfG commented 1 month ago

We have also seen this happening when the highest scoring PSM is a decoy. As a workaround (but obviously not a fix), such decoy PSMs could be removed from the dataset.