Dear Almut,
Thank you for the instruction. I am able to load the reactions and metabolites from the database using the command you showed, however, I am still a bit confused about how to actually add the relevant bile acids metabolites and reactions into the model.
The function you posted a link to in GitHub seems to be used to add the metabolites and reactions to a model to reflect the carbon sources this model can use. Please correct me if I am wrong, but I imagine the steps to properly use this function will be to:
1. Make the appropriate changes to the 'CarbonSourcesTable.txt' file located in cobratoolbox\papers\2021_demeter\input
2. Run the function as indicated to automatically gapfill the relevant metabolites and reactions to allow the model to utilize the intended carbon sources
I can see how a similar method could be applied to gapfilling a model to include relevant bile acid metabolism metabolites and reactions after the 'BileAcidTable.txt', 'secretionProductTable.txt' and 'uptakeTable.txt' have been altered. However, I'm still not sure what function I would need to automatically gapfill the changes made in the text files.
Please let me know if I have misunderstood the function you were pointing out. Also, perhaps rBioNet could be used to load in the metabolites and reactions from the database directly on to the Acetatifactor_muris_GP69 model?
Best,
Ari