Skip to content

Commit

Permalink
update DgvaStudyBrowser to convert pubmed IDs to CURIEs
Browse files Browse the repository at this point in the history
  • Loading branch information
apriltuesday committed Jan 4, 2024
1 parent 17dce5f commit e53f55e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,14 @@ public VariantStudy generateVariantStudy() {
String[] publications = null;
try {
uri = new URI(studyUrl);
publications = (pubmedId == null) ? null : pubmedId.split(", ");
} catch (URISyntaxException | NullPointerException ex) {
// Ignore, default value null.
}
publications = (pubmedId == null) ? null : pubmedId.split(", ");
// Convert to CURIE to be consistent with EvaStudyBrowser
for (int i = 0; i < publications.length; i++) {
publications[i] = "PubMed:" + publications[i];
}

VariantStudy study = new VariantStudy(displayName, studyAccession, null,
studyDescription, taxIds, commonName, scientificName,
Expand Down

0 comments on commit e53f55e

Please sign in to comment.