Skip to content

Commit

Permalink
Add "best score delta mass only" score.
Browse files Browse the repository at this point in the history
  • Loading branch information
fcyu committed Jan 28, 2024
1 parent 801a240 commit 2224d68
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions lib/id/pep.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ type MSFraggerLoc struct {
MSFraggerLocalizationScores string
MSFraggerScoreAll string
MSFraggerScoreOnlyShifted string
MSFraggerBestScoreOnlyShifted string
MSFraggerLocalizationScoreWithPTMIons string
MSFraggerLocalizationSecondScoreWithPTMIons string
MSFraggerLocalizationScoreWithoutPTMIons string
Expand Down Expand Up @@ -505,6 +506,7 @@ func processSpectrumQuery(sq spc.SpectrumQuery, mods mod.Modifications, decoyTag
MSFraggerLocalizationScores: i.PTMResult.LocalizationScores,
MSFraggerScoreAll: i.PTMResult.ScoreAll,
MSFraggerScoreOnlyShifted: i.PTMResult.ScoreOnlyShifted,
MSFraggerBestScoreOnlyShifted: i.PTMResult.BestScoreOnlyShifted,
MSFraggerLocalizationScoreWithPTMIons: i.PTMResult.BestScoreWithPTMIons,
MSFraggerLocalizationSecondScoreWithPTMIons: i.PTMResult.SecondBestScoreWithPTMIons,
MSFraggerLocalizationScoreWithoutPTMIons: i.PTMResult.ScoreWithoutPTMIons,
Expand Down
7 changes: 4 additions & 3 deletions lib/rep/psm.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ func (evi PSMEvidenceList) PSMReport(workspace, brand, decoyTag string, channels
}

if hasLoc {
header += "\tMSFragger Localization\tBest Score with Delta Mass\tBest Matched Ions with Delta Mass\tSecond Best Score with Delta Mass\tSecond Best Matched Ions with Delta Mass\tBest Score without Delta Mass\tMatched Ions without Delta mass\tLocalization Scores\tScore All\tMatched Ions All\tScore Delta Mass Only\tMatched Ions Delta Mass Only"
header += "\tMSFragger Localization\tBest Score with Delta Mass\tBest Matched Ions with Delta Mass\tSecond Best Score with Delta Mass\tSecond Best Matched Ions with Delta Mass\tBest Score without Delta Mass\tMatched Ions without Delta mass\tLocalization Scores\tScore All\tMatched Ions All\tScore Delta Mass Only\tMatched Ions Delta Mass Only\tBest Score Delta Mass Only"
}

if hasIonMob {
Expand Down Expand Up @@ -618,7 +618,7 @@ func (evi PSMEvidenceList) PSMReport(workspace, brand, decoyTag string, channels
if MSFraggerLoc == nil {
MSFraggerLoc = &id.MSFraggerLoc{}
}
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",
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",
line,
MSFraggerLoc.MSFragerLocalization,
MSFraggerLoc.MSFraggerLocalizationScoreWithPTM,
Expand All @@ -631,7 +631,8 @@ func (evi PSMEvidenceList) PSMReport(workspace, brand, decoyTag string, channels
MSFraggerLoc.MSFraggerScoreAll,
MSFraggerLoc.MSFraggerScoreAllIons,
MSFraggerLoc.MSFraggerScoreOnlyShifted,
MSFraggerLoc.MSFraggerScoreOnlyShiftedIons)
MSFraggerLoc.MSFraggerScoreOnlyShiftedIons,
MSFraggerLoc.MSFraggerBestScoreOnlyShifted)
}

if hasIonMob {
Expand Down
1 change: 1 addition & 0 deletions lib/spc/pepxml.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,5 @@ type PTMResult struct {
ScoreAllIons string `xml:"score_all_matched_ions,attr"`
ScoreOnlyShifted string `xml:"score_only_shifted,attr"`
ScoreOnlyShiftedIons string `xml:"score_only_shifted_matched_ions,attr"`
BestScoreOnlyShifted string `xml:"best_score_only_shifted,attr"`
}

0 comments on commit 2224d68

Please sign in to comment.