geneontology / pathways2GO

Code for converting between BioPAX pathways and Gene Ontology Causal Activity Models (GO-CAM)
8 stars 0 forks source link

YeastPathways - Intermediate molecules share same instances #259

Closed dustine32 closed 1 year ago

dustine32 commented 1 year ago

For #258. Only handles YeastPathways models for now.

Basically, each reaction checks its previous step's reaction for outputs and, if any of those output classes match an input, will reuse that output instance as input.

This refactors some of the stepDirection code from https://github.com/geneontology/pathways2GO/issues/142 for reusability.

kltm commented 1 year ago

@dustine32 I'm going to have to trust you on this one. It's a side repo, so merge away--the blast of a mistake is unlikely to get anybody else.

dustine32 commented 1 year ago

@kltm Thank you!