-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
user defined biomass function #156
Comments
With that in mind, could you please explain what the |
Hid @hariszaf Please correct me @Waschina, if I missed something. From my side, you are most welcome to work on a user-defined biomass reaction; thank you! I will talk to Silvio, and we will come back to you soon :) |
Hi @jotech, thanks a lot for clarifying the I am now building a biomass function for a model of mine, so once I have this, we could discuss if you d like what one should keep in mind in terms of using I just made a fork of the repo and I d be happy to contribute (if I ll manage 😅 |
sounds like a good plan :) |
Hi @hariszaf I guess the easiest and most intuitive way is to provide a path to the custom-biomass file in json format with the parameter Currently, the option |
Hi @Waschina
Yes, that makes sense. My question is if there should be something like a validation check for the user-defined biomass function. |
There are already some consistency checks included in gapseq. We might need to add more checks as we come across potential pitfalls. A draft documentation for the json-file format for biomasses:The main structure of the required json file should be: { "id" : "User-Biomass",
"name" : "A user-defined biomass composition",
"ref" : "optionally a reference",
"energy_GAM" : 30,
"domain" : "Bacteria",
"met_groups" : [
{
"group_name" : "DNA",
"mass" : 0.05,
"unit_group" : "g",
"unit_components" : "MOLFRACTION",
"components" : [
# List of DNA component molecules
]
},
{
"group_name" : "RNA",
"mass" : 0.15,
"unit_group" : "g",
"unit_components" : "MOLFRACTION",
"components" : [
# List of RNA component molecules
]
},
{
"group_name" : "Protein",
"mass" : 0.65,
"unit_group" : "g",
"unit_components" : "MOLFRACTION",
"components" : [
# List of protein component molecules
]
},
{
"group_name" : "An additional component group",
"mass" : 0.15,
"unit_group" : "g",
"unit_components" : "MOLFRACTION",
"components" : [
# List of the additional group's component molecules
]
},
]
} Biomass components should assigned to the different groups. Usually these groups are DNA, RNA, Protein, Others (e.g. inorganics, lipids, cell wall components, etc...). The total sum of each group shout be stated in the group parameters and in the unit gram. The sum of all groups should be 1g. the field Then we have component entries: The format for each component is for instance: {
"id" : "cpd00161",
"name" : "L-Threonine",
"comp" : "c",
"coef" : 0.0474316079511907,
"link" : "cpd00001:-1"
},
The Hope this helps. Best |
The feature is considered 'advanced usage' as it requires users to create a biomass reaction definition in JSON format. See documentation: https://gapseq.readthedocs.io/en/latest/database/biomassReaction.html Refers to #156
The new feature to provide a user-defined biomass reaction is now implemented. Also, the documentation (https://gapseq.readthedocs.io/en/latest/database/biomassReaction.html) provides details on how to use this feature. |
Oh that's great @Waschina ! |
No worries, we had this already half-way implemented in gapseq for a while now but literally were missing the final push :) Let us know if you come across problems/pitfalls with this feature. |
Hello!
I noticed in your documentation that you're working on a
user-defined biomass reaction module.
Is there any progress with that?
If no, I would be really interested to contribute with that.
The text was updated successfully, but these errors were encountered: