Closed slegare2 closed 6 years ago
Hi! As I told you before, the fact that you cannot see any reference to C in the output of printing is because of the implementation of __str__
method of Binding
(there I choose not to print all the details of an agent, but simply its id, though this can be easily changed to any representation the user prefers), but the bound with C is there, for example:
bnd = Binding([Gene("A", bounds=[Gene("C")])], [Gene("B")]) bnd.left [Gene(uniprot=A, bounds=[[Gene(uniprot=C)]])]
Concerning the fact that some nodes are added to the meta-model: it's definitely a bug, I forgot to add the meta-model typing for this nodes in the nugget generation. Will be fixed by the next commit.
Trying to build an interaction "A binds B if A is bound to C".
When I print the Binding, I get no reference to C. Left members: A Right members: B Direct? True
Strangely, when I print(hierarchy.graph['kami'].nodes()), I see that the test node "A_is_bnd_C" along with its two loci was added at the level of kami instead of the action graph.