Skip to content

Commit

Permalink
Remove a redundant "best position" column.
Browse files Browse the repository at this point in the history
  • Loading branch information
fcyu committed Feb 6, 2024
1 parent e78f774 commit 7ebf9a9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions lib/id/pep.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ type MSFraggerLoc struct {
IonsSecondBestPosition string
IonsAllUnshifted string
IonsShiftedAllPositioins string
BestPosition string
}

// PepIDList is a list of PeptideSpectrumMatch
Expand Down Expand Up @@ -511,7 +510,6 @@ func processSpectrumQuery(sq spc.SpectrumQuery, mods mod.Modifications, decoyTag
IonsSecondBestPosition: i.PTMResult.IonsSecondBestPosition,
IonsAllUnshifted: i.PTMResult.IonsAllUnshifted,
IonsShiftedAllPositioins: i.PTMResult.IonsShiftedAllPositions,
BestPosition: i.PTMResult.BestPosition,
}
}

Expand Down
4 changes: 1 addition & 3 deletions lib/rep/psm.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ func (evi PSMEvidenceList) PSMReport(workspace, brand, decoyTag string, channels
if hasLoc {
header += "\tMSFragger Localization" +
"\tPosition Scores" +
"\tBest Position" +
"\tScore Best Position" +
"\tIons Best Position" +
"\tScore Second Best Position" +
Expand Down Expand Up @@ -630,11 +629,10 @@ 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\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",
line,
MSFraggerLoc.LocalizationPeptide,
MSFraggerLoc.PositionScores,
MSFraggerLoc.BestPosition,
MSFraggerLoc.ScoreBestPosition,
MSFraggerLoc.IonsBestPosition,
MSFraggerLoc.ScoreSecondBestPosition,
Expand Down
1 change: 0 additions & 1 deletion lib/spc/pepxml.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,5 +228,4 @@ type PTMResult struct {
IonsShiftedAllPositions string `xml:"ions_shifted_all_positions,attr"`
ScoreShiftedBestPosition string `xml:"score_shifted_best_position,attr"`
IonsShiftedBestPosition string `xml:"ions_shifted_best_position,attr"`
BestPosition string `xml:"best_position,attr"`
}

0 comments on commit 7ebf9a9

Please sign in to comment.