Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions loadTerms.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,11 @@ def addAccID(self,
else:
xrefs = prefixPart.split(':')
findLDB = xrefs[0]
if findLDB == 'OMIMPS':
# Prepare for DOID to apply proper prefixes for OMIM Phenotype series terms
# See: https://github.com/DiseaseOntology/HumanDiseaseOntology/pull/968
findLDB = 'OMIM:PS'

results = db.sql('''select _LogicalDB_key from ACC_LogicalDB where name = '%s' ''' % (findLDB), 'auto')
if len(results) > 0:
useLogicalDBkey = results[0]['_LogicalDB_key']
Expand Down