libsbml R bindings

17 views
Skip to first unread message

darrenjwilkinson

unread,
May 8, 2018, 8:24:38 AM5/8/18
to sbml-interoperability
Hi,

I'm using the latest R source package for the libSBML bindings:

Package:            libSBML
Version:            5.16.0
Date:               2017-12-01

I'm not sure if I'm doing something wrong, or if there are functions missing from the bindings. eg. how do I find out the species referred to by a SpeciesReference object? There doesn't seem to be a SpeciesReference_getSpecies function exposed. Is there another way I'm supposed to get or set this?

Thanks,

Darren

Frank T. Bergmann

unread,
May 8, 2018, 9:44:33 AM5/8/18
to sbml-interoperability
hello Darren, 

could you try SimpleSpeciesReference_getSpecies? or even easier use the S4 API, and use something like: 

reaction$getReactant(n)$getSpecies()

best
Frank

darrenjwilkinson

unread,
May 8, 2018, 9:51:58 AM5/8/18
to sbml-interoperability
That works (both ways) - many thanks!

Darren
Reply all
Reply to author
Forward
0 new messages