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
FragPipe PTM converter drops correctly localized peptides on rounding #135
While answering a Google Group question, I noticed that .removeCutoffSites keeps a row only when the number of sites above localization_cutoff exactly equals number_sites, which is the sum of the localization probabilities. FragPipe rounds those probabilities, so the sum is often 0.9999 or 1.0001, and the check fails even when exactly one site is above the cutoff.
On the package's own label-free fixture, tinytest/raw_data/Fragpipe/MSstats.csv, 8 of the 20 localized rows are dropped this way, 7 of them with exactly one site above 0.75. For example, MES(0.0145)QQLS(0.0162)QHS(0.9096)... sums to 0.9999 and is dropped. Rounding number_sites before the comparison would probably fix it.
A smaller one in the same converter. If mod_id_col matches no column, .getFullModID returns character(0), and the error only appears later as "subscript out of bounds". A clear error at that point would help anyone who passes the wrong modification name.
Activity