@@ -384,21 +384,13 @@ public static void MetaDraw_SearchTaskTest()
384
384
// test that the stationary sequence annotation was drawn
385
385
string modifiedBaseSeq = psm . BaseSeq . Substring ( MetaDrawSettings . FirstAAonScreenIndex , MetaDrawSettings . NumberOfAAOnScreen ) ;
386
386
string fullSequence = psm . BaseSeq ;
387
- Dictionary < int , List < string > > modDictionary = PsmFromTsv . ParseModifications ( psm . FullSequence ) ;
387
+ Dictionary < int , string > modDictionary = PsmFromTsv . ParseModifications ( psm . FullSequence ) ;
388
388
foreach ( var mod in modDictionary . OrderByDescending ( p => p . Key ) )
389
389
{
390
390
// if modification is within the visible region
391
391
if ( mod . Key >= MetaDrawSettings . FirstAAonScreenIndex && mod . Key < ( MetaDrawSettings . FirstAAonScreenIndex + MetaDrawSettings . NumberOfAAOnScreen ) )
392
392
{
393
- // account for multiple modifications on the same amino acid
394
- for ( int i = mod . Value . Count - 1 ; i > - 1 ; i -- )
395
- {
396
- fullSequence = fullSequence . Insert ( mod . Key - MetaDrawSettings . FirstAAonScreenIndex , "[" + mod . Value [ i ] + "]" ) ;
397
- if ( i >= 1 )
398
- {
399
- fullSequence = fullSequence . Insert ( mod . Key , "|" ) ;
400
- }
401
- }
393
+ fullSequence = fullSequence . Insert ( mod . Key - MetaDrawSettings . FirstAAonScreenIndex , "[" + mod . Value + "]" ) ;
402
394
}
403
395
}
404
396
List < MatchedFragmentIon > matchedIons = psm . MatchedIons . Where ( p => p . NeutralTheoreticalProduct . ResiduePosition > MetaDrawSettings . FirstAAonScreenIndex &&
@@ -432,15 +424,7 @@ public static void MetaDraw_SearchTaskTest()
432
424
// if modification is within the visible region
433
425
if ( mod . Key >= MetaDrawSettings . FirstAAonScreenIndex && mod . Key < ( MetaDrawSettings . FirstAAonScreenIndex + MetaDrawSettings . NumberOfAAOnScreen ) )
434
426
{
435
- // account for multiple modifications on the same amino acid
436
- for ( int i = mod . Value . Count - 1 ; i > - 1 ; i -- )
437
- {
438
- fullSequence = fullSequence . Insert ( mod . Key - MetaDrawSettings . FirstAAonScreenIndex , "[" + mod . Value [ i ] + "]" ) ;
439
- if ( i >= 1 )
440
- {
441
- fullSequence = fullSequence . Insert ( mod . Key , "|" ) ;
442
- }
443
- }
427
+ fullSequence = fullSequence . Insert ( mod . Key - MetaDrawSettings . FirstAAonScreenIndex , "[" + mod . Value + "]" ) ;
444
428
}
445
429
}
446
430
matchedIons = modPsm . MatchedIons . Where ( p => p . NeutralTheoreticalProduct . ResiduePosition > MetaDrawSettings . FirstAAonScreenIndex &&
0 commit comments