Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Interaction to ComponentDefinition #437

Open
manulera opened this issue Apr 12, 2024 · 1 comment
Open

Adding Interaction to ComponentDefinition #437

manulera opened this issue Apr 12, 2024 · 1 comment
Labels
question Further information is requested

Comments

@manulera
Copy link
Member

manulera commented Apr 12, 2024

Related to the converter issue SynBioDex/SBOL-utilities#248

How do you add an interaction to a componentdefinition in pySBOL2? I don't see a property or method to do so, and I did not find info in the mapping documentation of the spec.

@jakebeal
Copy link
Collaborator

In SBOL2, a ComponentDefinition contains only structural information (features, constraints, and sequences) and a ModuleDefinition contains only functional information (modules, interactions, and models).

As a consequence, an Interaction can only be added to a ModuleDefinition - there is no such property in ComponentDefinition.

Combining sbol2.ComponentDefinition and sbol2.ModuleDefinition into sbol3.Component was one of the key simplifying innovations for SBOL3, but does make like more difficult when converting SBOL3 into SBOL2, since a single sbol3.Component may need to be split into two or more SBOL2 objects.

@jakebeal jakebeal added the question Further information is requested label Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants