You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Caused by: java.lang.IllegalArgumentException: Multiple entries with same key: Micropenis=HPOTerm [id=ImmutableTermId [prefix=ImmutableTermPrefix [value=HP], id=0000054], altTermIds=[ImmutableTermId [prefix=ImmutableTermPrefix [value=HP], id=0000038]], name=Micropenis, definition=Abnormally small penis. At birth, the normal penis is about 3 cm (stretched length from pubic tubercle to tip of penis) with micropenis less than 2.0-2.5 cm., comment=null, subsets=[], synonyms=[ImmutableTermSynonym [value=Short penis, scope=EXACT, synonymTypeName=layperson, termXrefs=[]], ImmutableTermSynonym [value=Small penis, scope=EXACT, synonymTypeName=layperson, termXrefs=[]]], obsolete=false, createdBy=null, creationDate=null, xrefs=[ImmutableDbxref [name=SNOMEDCT_US:34911001, description=null, trailingModifiers=null], ImmutableDbxref [name=UMLS:C0266435, description=null, trailingModifiers=null]]] and Micropenis=HPOTerm [id=ImmutableTermId [prefix=ImmutableTermPrefix [value=HP], id=0000054], altTermIds=[ImmutableTermId [prefix=ImmutableTermPrefix [value=HP], id=0000038]], name=Micropenis, definition=Abnormally small penis. At birth, the normal penis is about 3 cm (stretched length from pubic tubercle to tip of penis) with micropenis less than 2.0-2.5 cm., comment=null, subsets=[], synonyms=[ImmutableTermSynonym [value=Short penis, scope=EXACT, synonymTypeName=layperson, termXrefs=[]], ImmutableTermSynonym [value=Small penis, scope=EXACT, synonymTypeName=layperson, termXrefs=[]]], obsolete=false, createdBy=null, creationDate=null, xrefs=[ImmutableDbxref [name=SNOMEDCT_US:34911001, description=null, trailingModifiers=null], ImmutableDbxref [name=UMLS:C0266435, description=null, trailingModifiers=null]]]
i.e., there are multiple copies of term HP:0000054.
If I try the following code to remove multiple copies
I am getting a strange error from the termmap function of ontolib. My code is something like this
This causes the following error (excerpt):
i.e., there are multiple copies of term HP:0000054.
If I try the following code to remove multiple copies
then everything is fine. I am not sure if this is a bug in the ontology.getTermMap() function?
The text was updated successfully, but these errors were encountered: