Skip to content

Commit ee70c18

Browse files
committed
Make the SSL writer support the old psm.tsv format with "PeptideProphet Probability".
1 parent 3765890 commit ee70c18

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

MSFragger-GUI/src/com/dmtavt/fragpipe/tools/skyline/WriteSSL.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ public class WriteSSL {
1212
public static final String COL_SCANID = "Spectrum";
1313
public static final String COL_CHARGE = "Charge";
1414
public static final String COL_SCORE = "Probability";
15+
public static final String COL_SCORE_2 = "PeptideProphet Probability";
1516
public static final String COL_RT = "Retention";
1617
public static final String COL_IONMOBILITY = "Ion Mobility";
1718
public static final String COL_RT_START = "Retention Time Start";
@@ -59,7 +60,11 @@ public void writeSSL(Set<Path> psmtsvFiles, Path outputPath, boolean isPercolato
5960
sslLine.append(modpep).append("\t");
6061
String scoreType = isPercolator ? "PERCOLATOR QVALUE" : "PEPTIDE PROPHET SOMETHING";
6162
sslLine.append(scoreType).append("\t");
62-
sslLine.append(splits[columns.get(COL_SCORE)]).append("\t");
63+
if (columns.containsKey(COL_SCORE)) {
64+
sslLine.append(splits[columns.get(COL_SCORE)]).append("\t");
65+
} else {
66+
sslLine.append(splits[columns.get(COL_SCORE_2)]).append("\t");
67+
}
6368
sslLine.append(Float.parseFloat(splits[columns.get(COL_RT)]) / 60).append("\t"); // RT in minutes
6469

6570
// add IM if present

0 commit comments

Comments
 (0)