Skip to content

Commit

Permalink
Closes #60
Browse files Browse the repository at this point in the history
Added missing database names to script, so hopefully these nodes are now converted (will test this with version 66).
  • Loading branch information
Slenter authored and Slenter committed Oct 25, 2018
1 parent e91fd70 commit 1a82248
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/org/gk/gpml/ReactometoGPML2013.java
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ private void addXref(PathwayElement pwyele, Long rId, GKInstance instance)

/*
* ChEBI and uniprot give errors while searching by full name
* This also happens for PubChem Compound (should be PubChem-Compound)
* And NCBI Nucleotide (which should link to NCBI Protein).
*/
String identifier = getIdentifierFromReferenceEntity(referenceEntity);
if (db.getDisplayName().equalsIgnoreCase("chebi")) {
Expand All @@ -350,6 +352,10 @@ private void addXref(PathwayElement pwyele, Long rId, GKInstance instance)
pwyele.setDataSource(DataSource.getExistingBySystemCode("En"));
} else if (db.getDisplayName().equalsIgnoreCase("miRBase")) {
pwyele.setDataSource(DataSource.getExistingBySystemCode("Mbm"));
} else if (db.getDisplayName().equalsIgnoreCase("PubChem Compound")) {
pwyele.setDataSource(DataSource.getExistingBySystemCode("Cpc"));
} else if (db.getDisplayName().equalsIgnoreCase("NCBI Nucleotide")) {
pwyele.setDataSource(DataSource.getExistingBySystemCode("Np"));
} else {
pwyele.setDataSource(DataSource.getExistingByFullName(db
.getDisplayName()));
Expand Down

0 comments on commit 1a82248

Please sign in to comment.