Closed behzadk closed 2 years ago
Thanks, let us take a look. Yes, comets has this problem of indexing 1-base, against Java native 0-base.
Hello,
Thanks for the post. You are correct. Right now, the signaling, while present, is not fully developed or 'released,' and so there are likely to be bugs in it. We appreciate the interest!
Hi all,
I'm having problems adding signals that induce death with cometspy. Death signals do not seem to correspond with the metabolite indexes I am giving it. I think the issue is a mix up between 1-base or 0-base indexing. As it stands, I think COMETSpy is expecting base-1 indexing when referencing signalling metabolites. I'm not sure if this intentional or not:
According to the notes, the index is subtracted by 1 because COMETS expects it
https://github.com/segrelab/cometspy/blob/609dedb911441f6f20b46e9789f82a707724a154/cometspy/model.py#L149-L153
However, this is in contrast to the line in the comets repo,
Signal.java
that assumes indexes given are 1-base:Link below: https://github.com/segrelab/comets/blob/cd96c97d71bb22c77971ee83fb0cf46ffd480e37/comets_simplified/src/edu/bu/segrelab/comets/fba/Signal.java#L57
Here's some code as a minimal example where E. coli growth is negatively impacted by co2 concentration. In it's current form E. coli grows normally, increment it by 1 to get the expected death of E. coli population: