Skip to content

Commit 0130de0

Browse files
committed
v1.4273
1 parent 7816bc5 commit 0130de0

File tree

5 files changed

+23
-8
lines changed

5 files changed

+23
-8
lines changed

DIA-Umpire/src/MSUmpire/PSMDataStructure/PTMManager.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public PTM GetPTM(String AA, float massdiff) {
123123
}
124124
if (sitecorrect) {
125125
double diff = Math.abs(ptm.getMass() - massdiff);
126-
if (diff < 1f) {
126+
if (diff < 0.5f) {
127127
if (diff < smallmassdiff) {
128128
smallmassdiff = diff;
129129
smallestdiffptm = ptm;

DIA-Umpire/src/MSUmpire/PSMDataStructure/PepIonID.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ public boolean IsDecoy(String decoytag) {
269269
if (IsDecoy == -1) {
270270
IsDecoy = 1;
271271
for (String pro : ParentProtID_PepXML) {
272-
if (!pro.startsWith(decoytag)) {
272+
if (!(pro.startsWith(decoytag) | pro.endsWith(decoytag))) {
273273
IsDecoy = 0;
274274
break;
275275
}

DIA-Umpire/src/MSUmpire/PSMDataStructure/ProtID.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public String GetGeneName() {
238238
}
239239

240240
public boolean IsDecoy(String decoytag) {
241-
if (getAccNo().startsWith(decoytag)) {
241+
if (getAccNo().startsWith(decoytag) | getAccNo().endsWith(decoytag)) {
242242
return true;
243243
}
244244
return false;

DIA-Umpire/src/MSUmpire/SearchResultParser/ProtXMLParseHandler.java

+19-4
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,15 @@ public void handle(Element node) throws Exception {
5757
private void ParseProteinGroupNode(Element protgroupnode) throws XmlPullParserException, IOException, ClassNotFoundException, InterruptedException {
5858

5959
int groupindex = Integer.parseInt(protgroupnode.getAttributes().getNamedItem("group_number").getNodeValue());
60-
float groupprob = Float.parseFloat(protgroupnode.getAttributes().getNamedItem("probability").getNodeValue());
60+
61+
float groupprob=0f;
62+
if (protgroupnode.getAttributes().getNamedItem("probability") != null) {
63+
groupprob = Float.parseFloat(protgroupnode.getAttributes().getNamedItem("probability").getNodeValue());
64+
}
65+
else if (protgroupnode.getAttributes().getNamedItem("probability") != null) {
66+
groupprob = Float.parseFloat(protgroupnode.getAttributes().getNamedItem("group_probability").getNodeValue());
67+
}
68+
6169
int alphabet = 1;
6270

6371
for (int j = 0; j < protgroupnode.getChildNodes().getLength(); j++) {
@@ -154,9 +162,16 @@ private void ParseProteinGroupNode(Element protgroupnode) throws XmlPullParserEx
154162
} else {
155163
PepIonID pepIonID = new PepIonID();
156164
pepIonID.Sequence = child.getAttributes().getNamedItem("peptide_sequence").getNodeValue();
157-
pepIonID.MaxProbability = Float.parseFloat(child.getAttributes().getNamedItem("initial_probability").getNodeValue());
158-
pepIonID.Is_NonDegenerate = "Y".equals(child.getAttributes().getNamedItem("is_nondegenerate_evidence").getNodeValue());
159-
pepIonID.Weight = Float.parseFloat(child.getAttributes().getNamedItem("weight").getNodeValue());
165+
166+
if (child.getAttributes().getNamedItem("initial_probability") != null) {
167+
pepIonID.MaxProbability = Float.parseFloat(child.getAttributes().getNamedItem("initial_probability").getNodeValue());
168+
}
169+
if (child.getAttributes().getNamedItem("is_nondegenerate_evidence") != null) {
170+
pepIonID.Is_NonDegenerate = "Y".equals(child.getAttributes().getNamedItem("is_nondegenerate_evidence").getNodeValue());
171+
}
172+
if (child.getAttributes().getNamedItem("weight") != null) {
173+
pepIonID.Weight = Float.parseFloat(child.getAttributes().getNamedItem("weight").getNodeValue());
174+
}
160175
if (child.getAttributes().getNamedItem("group_weight") != null) {
161176
pepIonID.GroupWeight = Float.parseFloat(child.getAttributes().getNamedItem("group_weight").getNodeValue());
162177
}

DIA_Umpire_To_Skyline/src/dia_umpire_to_skyline/FileThread.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ private void ChangeScanTitlePepXML() throws FileNotFoundException, IOException{
110110
writer.write(line.replaceAll(basename+"_Q",basename+".ForLibQ")+"\n");
111111
}
112112
writer.close();
113-
}
113+
}
114114
}
115115
}
116116
}

0 commit comments

Comments
 (0)