Skip to content

Adding artificial sink reactions #693

Answered by JonathanRob
manas-kohli asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @manas-kohli, I don't know of a function that would automatically add a sink reaction for the metabolite of interest, though one could add it in a somewhat more manual fashion using RAVEN's addRxns function; e.g.

rxnStruct = {};
rxnStruct.rxns = {'sink_cholesterol'};
rxnStruct.equations = {'cholesterol[c] =>'};

newModel = addRxns(model, rxnStruct, 3);

Alternatively, depending on if your solver allows, one can use the b field in the model after converting it to 2 columns (representing max depletion and accumulation, respectively), and changing the b-value for the metabolites for which you would like to add "sinks". For example:

model.b = zeros(numel(model.mets), 2);
sinkMet = getIndex…

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

manas-kohli
Aug 23, 2023
Collaborator Author

You must be logged in to vote
1 reply
@mihai-sysbio
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by manas-kohli
Comment options

manas-kohli
Aug 23, 2023
Collaborator Author

You must be logged in to vote
0 replies
Comment options

manas-kohli
Aug 23, 2023
Collaborator Author

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants