Skip to content

Commit

Permalink
v1.4272
Browse files Browse the repository at this point in the history
  • Loading branch information
cctsou committed Nov 13, 2015
1 parent 8b20625 commit d0d73d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,10 @@ private void ParseSpectrumNode(Element spectrum) throws XmlPullParserException,
private void GetModificationInfo(PSM psmid, Node node) throws XmlPullParserException, XmlPullParserException, XmlPullParserException, XmlPullParserException, XmlPullParserException, IOException {
String PepSeq = psmid.Sequence;
String modseq = psmid.Sequence;
String TPPmodseq = node.getAttributes().getNamedItem("modified_peptide").getNodeValue();

String TPPmodseq = modseq;
if (node.getAttributes().getNamedItem("modified_peptide") != null) {
TPPmodseq = node.getAttributes().getNamedItem("modified_peptide").getNodeValue();
}
if (node.getAttributes().getNamedItem("mod_nterm_mass") != null) {
float mass = Float.parseFloat(node.getAttributes().getNamedItem("mod_nterm_mass").getNodeValue());
String site = "N-term";
Expand Down
2 changes: 2 additions & 0 deletions DIA-Umpire/src/MSUmpire/SearchResultParser/PepXMLParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import java.io.InputStreamReader;
import java.io.PrintWriter;
import javax.xml.parsers.ParserConfigurationException;
import org.apache.commons.lang.exception.ExceptionUtils;
import org.apache.log4j.Logger;
import org.xml.sax.SAXException;
import org.xmlpull.v1.XmlPullParserException;
Expand Down Expand Up @@ -68,6 +69,7 @@ public PepXMLParser(LCMSID singleLCMSID, String FileName, float threshold, boole
try {
ParseSAX();
} catch (Exception e) {
Logger.getRootLogger().error(ExceptionUtils.getStackTrace(e));
Logger.getRootLogger().info("Parsing pepXML: " + FileName + " failed. Trying to fix the file...");
insert_msms_run_summary(new File(FileName));
ParseSAX();
Expand Down

0 comments on commit d0d73d5

Please sign in to comment.