@@ -300,16 +300,19 @@ public void ApplyProteinParsimony(out List<ProteinGroup> proteinGroups)
300
300
// grab indistinguishable proteins
301
301
foreach ( var proteinGroup in proteinGroups )
302
302
{
303
- foreach ( var kvp in newDict )
303
+ if ( ! proteinGroup . UniquePeptideList . Any ( ) )
304
304
{
305
- if ( ! parsimonyDict . ContainsKey ( kvp . Key ) )
305
+ foreach ( var kvp in newDict )
306
306
{
307
- if ( kvp . Value . Count == proteinGroup . PeptideList . Count )
307
+ if ( ! parsimonyDict . ContainsKey ( kvp . Key ) )
308
308
{
309
- if ( kvp . Value . SetEquals ( proteinGroup . PeptideList ) )
309
+ if ( kvp . Value . Count == proteinGroup . PeptideList . Count )
310
310
{
311
- proteinGroup . Proteins . Add ( kvp . Key ) ;
312
- parsimonyDict . Add ( kvp . Key , kvp . Value ) ;
311
+ if ( kvp . Value . SetEquals ( proteinGroup . PeptideList ) )
312
+ {
313
+ proteinGroup . Proteins . Add ( kvp . Key ) ;
314
+ parsimonyDict . Add ( kvp . Key , kvp . Value ) ;
315
+ }
313
316
}
314
317
}
315
318
}
@@ -414,8 +417,8 @@ public void ScoreProteinGroups(List<ProteinGroup> proteinGroups, List<NewPsmWith
414
417
415
418
if ( foundPsm )
416
419
{
417
- thisProteinGroupsPsmList . Add ( psm ) ;
418
- //thisProteinGroupsNewPeptideList .Add(peptide );
420
+ if ( psm . qValue <= 0.01 )
421
+ thisProteinGroupsPsmList . Add ( psm ) ;
419
422
}
420
423
}
421
424
proteinGroup . PsmList = thisProteinGroupsPsmList ;
@@ -430,7 +433,7 @@ public void ScoreProteinGroups(List<ProteinGroup> proteinGroups, List<NewPsmWith
430
433
newPeptideList . Add ( peptide ) ;
431
434
432
435
if ( proteinGroup . UniquePeptideList . Contains ( peptide ) )
433
- {
436
+ {
434
437
newUniquePeptideList . Add ( peptide ) ;
435
438
}
436
439
}
0 commit comments