noctis.data_transformation.preprocessing.utilities.create_noctis_relationship

noctis.data_transformation.preprocessing.utilities.create_noctis_relationship(mol_node: Node, ce_node: Node, role: str) dict[slice(<class 'str'>, typing.Union[str, dict], None)][source]

Create a noctis relationship based on its type.

Args:

mol_node (Node): Molecule node involved in the relationship. ce_node (Node): Chemical equation node involved in the relationship. role (str): Role of the molecule in the relationship (“reactants” or “products”).

Returns:

Relationship: The created relationship object.

Note:

Determines the relationship type based on the role and constructs the relationship accordingly.