Adds controlled vocabulary terms to a species in a model.
#include <iostream>
int
main (int argc, char *argv[])
{
unsigned int errors, n;
if (argc != 3)
{
cout << endl
<< " usage: addCVTerms <input-filename> <output-filename>" << endl
<< " Adds controlled vocabulary term to a species" << endl
<< endl;
return 2;
}
if (errors > 0)
{
cout << "Read Error(s):" << endl;
cout << "Correct the above and re-run." << endl;
}
else
{
if (n <= 0)
{
cout << "Model has no species.\n Cannot add CV terms\n";
}
else
{
cv->
addResource(
"http://www.geneontology.org/#GO:0005892");
cv2->
addResource(
"http://www.geneontology.org/#GO:0005895");
cv1->
addResource(
"http://www.ebi.ac.uk/interpro/#IPR002394");
}
}
delete d;
return errors;
}