Skip to content

Commit d0d73d5

Browse files
committed
v1.4272
1 parent 8b20625 commit d0d73d5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,10 @@ private void ParseSpectrumNode(Element spectrum) throws XmlPullParserException,
293293
private void GetModificationInfo(PSM psmid, Node node) throws XmlPullParserException, XmlPullParserException, XmlPullParserException, XmlPullParserException, XmlPullParserException, IOException {
294294
String PepSeq = psmid.Sequence;
295295
String modseq = psmid.Sequence;
296-
String TPPmodseq = node.getAttributes().getNamedItem("modified_peptide").getNodeValue();
297-
296+
String TPPmodseq = modseq;
297+
if (node.getAttributes().getNamedItem("modified_peptide") != null) {
298+
TPPmodseq = node.getAttributes().getNamedItem("modified_peptide").getNodeValue();
299+
}
298300
if (node.getAttributes().getNamedItem("mod_nterm_mass") != null) {
299301
float mass = Float.parseFloat(node.getAttributes().getNamedItem("mod_nterm_mass").getNodeValue());
300302
String site = "N-term";

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

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import java.io.InputStreamReader;
3131
import java.io.PrintWriter;
3232
import javax.xml.parsers.ParserConfigurationException;
33+
import org.apache.commons.lang.exception.ExceptionUtils;
3334
import org.apache.log4j.Logger;
3435
import org.xml.sax.SAXException;
3536
import org.xmlpull.v1.XmlPullParserException;
@@ -68,6 +69,7 @@ public PepXMLParser(LCMSID singleLCMSID, String FileName, float threshold, boole
6869
try {
6970
ParseSAX();
7071
} catch (Exception e) {
72+
Logger.getRootLogger().error(ExceptionUtils.getStackTrace(e));
7173
Logger.getRootLogger().info("Parsing pepXML: " + FileName + " failed. Trying to fix the file...");
7274
insert_msms_run_summary(new File(FileName));
7375
ParseSAX();

0 commit comments

Comments
 (0)