Comments (4)
Hi Thomas,
this seems a sensible modification. I thought that it does flag the metabolites without formulae, but it should also do so for the reactions with one or more missing formula(e).
Regards,
Ronan
from cobratoolbox.
Hi Ronan,
One more question:
As of this moment, checkBalance will return NaN if any metabolite is unknown. While this is a sensible approach to indicate that the method can't determine the balance, it might be useful to instead return the "unbalance" value ignoring the unknown metabolite.
Obtaining this value would allow a user to estimate the atom composition of unknown compounds if only one compound is missing its formula.
While this is a different issue, I would suggest to at least add an option to the function to allow this behaviour, while keeping the default to return NaN to not mess with established code.
from cobratoolbox.
OK, please could you add some test functions for these tests of elemental balance? We are trying to increase the test coverage for v3.
from cobratoolbox.
I created a pulll request. Incidently I noticed, that the chargeBalance part of the function did not work at all. It was never ever set to anything. I fixed that along with the update.
from cobratoolbox.
Related Issues (20)
- Update numpy dependency
- remove curl dependency
- Invalid MEX-file
- 'Infeasible' results from simulatePairwiseInteractions HOT 2
- How can the result file be converted to a readable file? HOT 2
- Tutorial revision
- Error using initCobraToolbox HOT 1
- Error in findRxnsFromMet.m HOT 2
- Unrecognized function or variable 'TranslateSBML'. HOT 3
- Missing function "findTranscriptionValue"
- Missing Function "lrsInputHalfSpace"
- Gurobi error 10010: Model too large for size-limited license HOT 6
- unrecongnized field name "annotation" HOT 1
- Cobratoolbox crashes during initialisation on windows 10 (Matlab 2022b) HOT 1
- Combining metabolite lists: Error using mergeTwoModels (line 164) HOT 1
- Function out of work findRxnsFromMets.m HOT 1
- DEMETER can be used for metabolic network optimization beyond intestinal microbiota? HOT 1
- `optimizeCbModel` returning `NaN` for solution
- refactor how solver parameters are handled
- mgPipe PART2 issue HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cobratoolbox.