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
# objects from association with relation RO:0003304
'EFO:0004340', 'EFO:0004765'
When populating the association map, the earlier entry is overwritten because the keys used in association map does not take relation into account. This yields an incorrect representation of associations fetched and analyses performed downstream with this association set.
It should not overwrite, that's a bug. The default behavior should be to take the union.
The ASset model is a simple entity-termset one by design. Making it truly relation aware is non trivial as you want to include inference.
If clients want to do separate analyses for separate ASsets, then the client can create multiple ASets, with different relation filtering parameters each time.
When fetching associations, say gene to phenotype associations,
AssociationSetFactory
populates an association map for each subject.But this code does not handle associations with multiple relations.
For example,
HGNC:6764
has two sets of associations:and
When populating the association map, the earlier entry is overwritten because the keys used in association map does not take
relation
into account. This yields an incorrect representation of associations fetched and analyses performed downstream with this association set.Block of code where this is happening:
ontobio/ontobio/assoc_factory.py
Lines 72 to 76 in c1864a8
@cmungall FYI
The text was updated successfully, but these errors were encountered: