Skip to content

Commit

Permalink
Fixed writing of protein sequences
Browse files Browse the repository at this point in the history
  • Loading branch information
julianu committed Aug 10, 2020
1 parent 194f2c9 commit ec5129b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/de/mpc/pia/modeller/exporter/IdXMLExporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -671,13 +671,14 @@ private static List<String> writeAccessionsToXML(XMLStreamWriter streamWriter, L

streamWriter.writeAttribute("score", score.toString());

if ((acc.getDbSequence() != null) && (acc.getDbSequence().trim().length() > 0)) {
streamWriter.writeAttribute("sequence", acc.getDbSequence());
}

if (isDecoyMap.get(accStr) != null) {
writeTargetDecoyUserParam(streamWriter, isDecoyMap.get(accStr));
}

if ((acc.getDbSequence() != null) && (acc.getDbSequence().trim().length() > 0)) {
streamWriter.writeAttribute("sequence", acc.getDbSequence());
}
String description = acc.getDescription(fileID);
if (description != null) {
writeUserParam(streamWriter, "Description", STRING_TYPE, description,
Expand Down

0 comments on commit ec5129b

Please sign in to comment.