Skip to content
Snippets Groups Projects

issues that were discovered during biohackathon 2019 in Paris

Merged Piotr Gawron requested to merge wikipathways-issues into master
1 file
+ 6
1
Compare changes
  • Side-by-side
  • Inline
@@ -2,6 +2,7 @@ package lcsb.mapviewer.wikipathway.model.biopax;
import java.util.*;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@@ -31,7 +32,11 @@ public class BiopaxFactory {
if (publication.getId() == null || publication.getId().equals("")) {
return null;
} else {
return new MiriamData(MiriamRelationType.BQ_BIOL_IS_DESCRIBED_BY, MiriamType.PUBMED, publication.getId());
if (StringUtils.isNumeric(publication.getId().trim())) {
return new MiriamData(MiriamRelationType.BQ_BIOL_IS_DESCRIBED_BY, MiriamType.PUBMED, publication.getId());
} else {
return null;
}
}
} else {
throw new NotImplementedException("Unknown biopax database: " + publication.getDb());
Loading