Java Bindings: Changing Metabolite Name

14 views
Skip to first unread message

Hikmet Emre Kaya

unread,
Feb 24, 2023, 7:56:36 AM2/24/23
to COPASI User Forum
Hello,

This is a generic question, but I was wondering how one can change the name of a metabolite in the Java bindings. So, consider example1.java: after setting up the reaction, I want to change the name of glucose-6-phosphate to G6P.

model.getMetabolite.setObjectName() seems to be the starting point, but how can I make sure that the name change reflects on the reaction scheme and the metabolite Common Name as well?
example1.java

Frank Bergmann

unread,
Mar 22, 2023, 4:25:40 AM3/22/23
to COPASI User Forum
After the call to setObjectName, COPASI ensures that all elements referring to the metabolite will be updated accordingly. So the CN will be the CN to the new name, and similarly reaction schemes are updated. 

best
Frank

Reply all
Reply to author
Forward
0 new messages