Repository navigation
Fix/fdr - #2953
Fix/fdr#2953
Conversation
|
The relation between peptides and proteins depends heavily on the settings like keep_unreferenced proteins etc. |
|
so currently I apply these functions if something has been filtered. The critical points are: which are enabled/disabled by flags in the IDFilter tool. |
|
Okay I see. Protein filtering will invalidate saved groups (ambiguity groups need to be completely rearranged, indistinguishable ones only lose members). I think it makes sense to remove unreferenced peptides afterwards although not necessary if they lose their references to proteins correctly. Peptide filtering will invalidate all grouping equally badly. I currently can't think of a case where peptide filtering makes sense after protein inference (except for maybe reporting, although there I would report all and filter them externally) |
|
Many of the test files changed. To put this in context: 1: default param, -PSM true -protein false |
|
1,2,3: correct All unreferenced proteins are removed. |
|
@jpfeuffer can you take a look at test 5 and 7. I uploaded the test files that make the test pass. No proteins are contained in both cases. Is this expected? |
| @@ -5,7586 +5,6 @@ | |||
| </SearchParameters> | |||
| <IdentificationRun date="2015-06-29T15:12:34" search_engine="Fido" search_engine_version="" search_parameters_ref="SP_0" > | |||
| <ProteinIdentification score_type="q-value" higher_score_better="false" significance_threshold="0" > | |||
There was a problem hiding this comment.
why does this remove all Protein ids? Is this intended?
There was a problem hiding this comment.
I think it is because in the input (FDR_output_1.idXML), all proteins have a score of 0. So the FDR for all will be #decoys / #all which is probably higher than the default cutoff. I think that was the reason for Timo's comment.
There was a problem hiding this comment.
does this make sense? I mean the q-value should be the minimal FDR so these should not be removed
There was a problem hiding this comment.
I think the FDR calculation does not care about the type of score that is in there. It uses what is in there and calculates the FDR anew.
There was a problem hiding this comment.
It is weird that a dataset with already annotated q-values is used for FDR calculation AT ALL. That is what we want to compute here.
|
I'm would be more comfortable if we had a mini test. With e.g. 10 proteins. Should be enough to test correct functionality. |
jpfeuffer
left a comment
There was a problem hiding this comment.
Create a meaningful test for protein FDRs.
|
I created the test files. Number 5 is from a normal search. Number 7 is manually created to check protein FDR filtering. |
|
Still wondering if we can get an idXML in, kind of a canonical state by applying: before storing the idXML file. |
|
@jpfeuffer windows and mac fails are unrelated |
|
Seems to work correctly. It would be nice though if you could test two more points:
|
|
@jpfeuffer regarding the second point. I think there should now be a target protein contained that has a lower score than a decoy protein (which is not reported). |
|
Hm at first glance I would say so, too. |
|
thanks for checking... my bad. Will fix |
2cdd641 to
c37df73
Compare
|
ok seems to work. strangely it keeps the decoy proteins in the filtered results. This is different for PSMs. Is this intended? |
|
Cool, looks much better now. |
|
ok I opened an issue: #3192 |
|
latest addition fixes #3192 |
|
failed tests unrelated... will merge |
fixes #2942
@jpfeuffer tests are currently failing because some references are filtered in the current settings. Can you give me a hint how this is done properly for both files with / without groups?