diff --git a/loadTerms.py b/loadTerms.py index e88403e..be31eef 100755 --- a/loadTerms.py +++ b/loadTerms.py @@ -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']