Skip to content

Commit

Permalink
Merge pull request #270 from monarch-initiative/flybase-pubs-22316
Browse files Browse the repository at this point in the history
check for pmid prefix in flybase
  • Loading branch information
kshefchek committed Feb 24, 2016
2 parents fcfa92b + 230a6f2 commit ab47e5d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dipper/sources/FlyBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,10 @@ def _process_pub_dbxref(self, limit):
for d in dbxrefs:
dbxref_id = None
if int(d) in pmid_ids:
dbxref_id = 'PMID:'+dbxrefs[d].strip()
if re.match(r'^PMID', dbxrefs[d]):
dbxref_id = dbxrefs[d].strip()
else:
dbxref_id = 'PMID:'+dbxrefs[d].strip()
gu.makeLeader(g, dbxref_id)
elif int(d) in isbn:
dbxref_id = 'ISBN:'+dbxrefs[d].strip()
Expand Down

0 comments on commit ab47e5d

Please sign in to comment.