Skip to content

Commit 60d87cc

Browse files
committed
Propagate two shifted-ion-only-related scores to psm.tsv
1 parent 553caf7 commit 60d87cc

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

Diff for: lib/id/pep.go

+4
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ type MSFraggerLoc struct {
117117
IonsSecondBestPosition string
118118
IonsAllUnshifted string
119119
IonsShiftedAllPositioins string
120+
ShiftedOnlyScores string
121+
ShiftedOnlyIons string
120122
}
121123

122124
// PepIDList is a list of PeptideSpectrumMatch
@@ -510,6 +512,8 @@ func processSpectrumQuery(sq spc.SpectrumQuery, mods mod.Modifications, decoyTag
510512
IonsSecondBestPosition: i.PTMResult.IonsSecondBestPosition,
511513
IonsAllUnshifted: i.PTMResult.IonsAllUnshifted,
512514
IonsShiftedAllPositioins: i.PTMResult.IonsShiftedAllPositions,
515+
ShiftedOnlyScores: i.PTMResult.ShiftedOnlyScores,
516+
ShiftedOnlyIons: i.PTMResult.ShiftedOnlyIons,
513517
}
514518
}
515519

Diff for: lib/rep/psm.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ func (evi PSMEvidenceList) PSMReport(workspace, brand, decoyTag string, channels
238238
if hasLoc {
239239
header += "\tMSFragger Localization" +
240240
"\tPosition Scores" +
241+
"\tShifted Only Position Scores" +
242+
"\tShifted Only Position Ions" +
241243
"\tScore Best Position" +
242244
"\tIons Best Position" +
243245
"\tScore Second Best Position" +
@@ -629,10 +631,12 @@ func (evi PSMEvidenceList) PSMReport(workspace, brand, decoyTag string, channels
629631
if MSFraggerLoc == nil {
630632
MSFraggerLoc = &id.MSFraggerLoc{}
631633
}
632-
line = fmt.Sprintf("%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s",
634+
line = fmt.Sprintf("%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s",
633635
line,
634636
MSFraggerLoc.LocalizationPeptide,
635637
MSFraggerLoc.PositionScores,
638+
MSFraggerLoc.ShiftedOnlyScores,
639+
MSFraggerLoc.ShiftedOnlyIons,
636640
MSFraggerLoc.ScoreBestPosition,
637641
MSFraggerLoc.IonsBestPosition,
638642
MSFraggerLoc.ScoreSecondBestPosition,

Diff for: lib/spc/pepxml.go

+2
Original file line numberDiff line numberDiff line change
@@ -228,4 +228,6 @@ type PTMResult struct {
228228
IonsShiftedAllPositions string `xml:"ions_shifted_all_positions,attr"`
229229
ScoreShiftedBestPosition string `xml:"score_shifted_best_position,attr"`
230230
IonsShiftedBestPosition string `xml:"ions_shifted_best_position,attr"`
231+
ShiftedOnlyScores string `xml:"shifted_only_position_scores,attr"`
232+
ShiftedOnlyIons string `xml:"shifted_only_position_ions,attr"`
231233
}

0 commit comments

Comments
 (0)