Skip to content

Commit a27674f

Browse files
committed
Make SAINTexpress support upper and lower case "control".
1 parent c0d6621 commit a27674f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MSFragger-GUI/src/com/dmtavt/fragpipe/cmd/CmdSaintExpress.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ public static void reprintTsvToSaintInput(final Path inputPath, final Path outPa
116116
final String[] second_row = br.readLine().split("\t");
117117
for (int i = 0; i < IP.length; i++) {
118118
final String s = second_row[i + column_offset];
119-
bait_names[i] = s.equals("CONTROL") ? IP[i] : s;
119+
bait_names[i] = s.equalsIgnoreCase("CONTROL") ? IP[i] : s;
120120
}
121121
for (int i = 0; i < IP.length; ++i) {
122-
bait_dat.add(IP[i] + "\t" + bait_names[i] + "\t" + (bait_names[i].startsWith("CONTROL") ? "C" : "T"));
122+
bait_dat.add(IP[i] + "\t" + bait_names[i] + "\t" + (bait_names[i].toUpperCase().startsWith("CONTROL") ? "C" : "T"));
123123
}
124124
String line;
125125
while ((line = br.readLine()) != null) {

0 commit comments

Comments
 (0)