Describe the bug
I'm using the python classes for the biolink model, currently trying to create a GeneToGoTermAssociation object.
Whatever I pass as the subject of the association, it gets cast to a "GeneId" and GeneId can't pass through the __post_init__ validation for FunctionalAssociation. It fails with this error:
TypeError: biolink_model.datamodel.model.MacromolecularMachineMixin() argument after ** must be a mapping, not GeneId
To Reproduce
Here's a minimal reproduction:
from biolink_model.datamodel import GeneToGoTermAssociation, Gene
Describe the bug I'm using the python classes for the biolink model, currently trying to create a GeneToGoTermAssociation object. Whatever I pass as the subject of the association, it gets cast to a "GeneId" and GeneId can't pass through the __post_init__ validation for FunctionalAssociation. It fails with this error:
TypeError: biolink_model.datamodel.model.MacromolecularMachineMixin() argument after ** must be a mapping, not GeneId
To Reproduce Here's a minimal reproduction:
Expected behavior It should be possible to create those objects using the python classes
What working group (or team) did this request originate from? NCATS Informatics