Skip to content

Commit

Permalink
export score_all attribute to a new column in psm.tsv
Browse files Browse the repository at this point in the history
  • Loading branch information
AimeeD90 committed Jan 19, 2024
1 parent e0530d7 commit 2254fc9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ VERSION = $(shell date +%Y%m%d)
BUILD = $(shell date +%Y%m%d%H%M)

TAG = v5.1.1
RC = RC02
RC = RC03

LDFLAGS = -ldflags "-w -s -extldflags -static -X main.version=${TAG} -X main.build=${BUILD}"

Expand Down
4 changes: 3 additions & 1 deletion lib/id/pep.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ type MSFraggerLoc struct {
MSFraggerLocalizationScoreWithPTM string
MSFraggerLocalizationScoreWithoutPTM string
MSFraggerLocalizationScores string
MSFraggerScoreAll string
}

// PepIDList is a list of PeptideSpectrumMatch
Expand Down Expand Up @@ -493,7 +494,8 @@ func processSpectrumQuery(sq spc.SpectrumQuery, mods mod.Modifications, decoyTag
MSFragerLocalization: i.PTMResult.LocalizationPeptide,
MSFraggerLocalizationScoreWithPTM: i.PTMResult.BestScoreWithPTM,
MSFraggerLocalizationScoreWithoutPTM: i.PTMResult.ScoreWithoutPTM,
MSFraggerLocalizationScores: i.PTMResult.LocalizationScores}
MSFraggerLocalizationScores: i.PTMResult.LocalizationScores,
MSFraggerScoreAll: i.PTMResult.ScoreAll}
}

// to be able to accept multiple entries with the same spectrum name, we fuse the
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 Score without Delta Mass\tLocalization Scores"
header += "\tMSFragger Localization\tBest Score with Delta Mass\tBest Score without Delta Mass\tLocalization Scores\tScore All"
}

if hasIonMob {
Expand Down Expand Up @@ -618,12 +618,13 @@ 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",
line = fmt.Sprintf("%s\t%s\t%s\t%s\t%s\t%s",
line,
MSFraggerLoc.MSFragerLocalization,
MSFraggerLoc.MSFraggerLocalizationScoreWithPTM,
MSFraggerLoc.MSFraggerLocalizationScoreWithoutPTM,
MSFraggerLoc.MSFraggerLocalizationScores)
MSFraggerLoc.MSFraggerLocalizationScores,
MSFraggerLoc.MSFraggerScoreAll)
}

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 @@ -220,4 +220,5 @@ type PTMResult struct {
ScoreWithoutPTM string `xml:"score_without_ptm,attr"`
LocalizationPeptide string `xml:"localization_peptide,attr"`
LocalizationScores string `xml:"localization_scores,attr"`
ScoreAll string `xml:"scores_all,attr"`
}

0 comments on commit 2254fc9

Please sign in to comment.