Example of converting an SBML Level 3 model using the Flux Balance Constraints package to a COBRA-style SBML Level 2 model.
#include <iostream>
int
main (int argc, char* argv[])
{
if (argc != 3)
{
cout << endl << "Usage: convertFbcToCobra input-filename output-filename"
<< endl << endl;
return 2;
}
{
}
else
{
props.
addOption(
"convert fbc to cobra",
true,
"Convert FBC model to Cobra model");
{
cout<< "conversion failed ... " << endl;
return 3;
}
}
return 0;
}