Adds evidence codes to a species in a model.
Adds evidence codes to a species in a model.
#include <stdio.h>
int
main (int argc, char *argv[])
{
unsigned int errors, n;
if (argc != 3)
{
printf("\n"
" usage: addingEvidenceCodes_2 <input-filename> <output-filename>\n"
" Adds controlled vocabulary term to a species\n"
"\n");
return 2;
}
if (errors > 0)
{
printf("Read Error(s):\n");
printf("Correct the above and re-run.\n");
}
else
{
if (n <= 0)
{
printf( "Model has no reactions.\n Cannot add CV terms\n");
}
else
{
"http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdf");
"http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdf");
"http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdf");
"http://biomodels.net/biology-qualifiers/occursIn");
"http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdf");
"urn:miriam:obo.go:GO%3A0005764");
"http://biomodels.net/biology-qualifiers/",
"bqbiol");
"http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdf");
"http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdf");
"urn:miriam:obo.eco:ECO%3A0000004");
"urn:miriam:pubmed:7017716");
"http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdf");
}
}
return errors;
}
void CVTerm_free(CVTerm_t *term)
_tFrees_t _tthe_t _tgiven_t _tCVTerm_t_t _tstructure_t.
Definition CVTerm.cpp:713
CVTerm_t * CVTerm_createWithQualifierType(QualifierType_t type)
@_tendcond_t
Definition CVTerm.cpp:697
int CVTerm_addResource(CVTerm_t *term, const char *resource)
_tAdds_t _ta_t _tresource_t _tto_t _tthe_t _tCVTerm_t_t.
Definition CVTerm.cpp:829
int CVTerm_setBiologicalQualifierType(CVTerm_t *term, BiolQualifierType_t type)
_tSets_t _tthe_t #_tBiolQualifierType_t_t _tof_t _tthis_t CVTerm_t_t.
Definition CVTerm.cpp:798
Definition of a CVTerm_t class for adding annotations to a Model_t.
@ BQB_OCCURS_IN
Definition CVTerm.h:445
@ BIOLOGICAL_QUALIFIER
Definition CVTerm.h:332
unsigned int Model_getNumSpecies(const Model_t *m)
_tGet_t _tthe_t _tnumber_t _tof_t _tSpecies_t_t _tstructures_t _tin_t _tthe_t _tgiven_t _tModel_t_t _...
Definition Model.cpp:8158
Species_t * Model_getSpecies(Model_t *m, unsigned int n)
_tGet_t _tthe_t _tnth_t _tSpecies_t_t _tstructure_t _tcontained_t _tin_t _tthe_t _tgiven_t _tModel_t_...
Definition Model.cpp:8006
void SBMLDocument_printErrors(SBMLDocument_t *d, FILE *stream)
_tPrints_t _tto_t _tthe_t _tgiven_t _toutput_t _tstream_t _tall_t _tthe_t _terrors_t _tor_t _twarning...
Definition SBMLDocument.cpp:2525
unsigned int SBMLDocument_getNumErrors(const SBMLDocument_t *d)
_tReturns_t _tthe_t _tnumber_t _tof_t _terrors_t _tor_t _twarnings_t _tencountered_t _tduring_t _tpar...
Definition SBMLDocument.cpp:2510
void SBMLDocument_free(SBMLDocument_t *d)
_tFrees_t _tthe_t _tgiven_t _tSBMLDocument_t_t _tstructure_t.
Definition SBMLDocument.cpp:2248
Model_t * SBMLDocument_getModel(SBMLDocument_t *d)
_tReturns_t _tthe_t _tModel_t_t _tstructure_t _tstored_t _tin_t _tthis_t _tSBMLDocument_t_t _tstructu...
Definition SBMLDocument.cpp:2290
SBMLDocument_t * readSBML(const char *filename)
@_tcopydoc_t _tdoc_readsbmlfromfile_t
Definition SBMLReader.cpp:446
Include all SBML types in a single header file.
int writeSBML(const SBMLDocument_t *d, const char *filename)
_tWrites_t _tthe_t _tgiven_t _tSBML_t _tdocument_t @_tp_t _td_t _tto_t _tthe_t _tfile_t _tnamed_t _tb...
Definition SBMLWriter.cpp:440
int SBase_appendAnnotation(SBase_t *sb, const XMLNode_t *annotation)
_tAppends_t _tthe_t _tannotation_t _tfor_t _tthe_t _tgiven_t _tSBML_t _tstructure_t.
Definition SBase.cpp:7820
const char * SBase_getMetaId(SBase_t *sb)
_tReturns_t _tthe_t _tvalue_t _tof_t _tthe_t "_tmetaid_t" _tattribute_t _tof_t _tthe_t _tgiven_t _tSB...
Definition SBase.cpp:7473
int SBase_setMetaId(SBase_t *sb, const char *metaid)
_tSets_t _tthe_t _tvalue_t _tof_t _tthe_t "_tmetaid_t" _tattribute_t _tof_t _tthe_t _tgiven_t _tstruc...
Definition SBase.cpp:7645
int SBase_isSetMetaId(const SBase_t *sb)
_tPredicate_t _treturning_t @_tc_t _t1_t (_ttrue_t) _tor_t @_tc_t _t0_t (_tfalse_t) _tdepending_t _to...
Definition SBase.cpp:7597
int SBase_addCVTerm(SBase_t *sb, CVTerm_t *term)
@_tendcond_t
Definition SBase.cpp:7373
LIBLAX_EXTERN void XMLAttributes_free(XMLAttributes_t *xa)
_tFrees_t _tthe_t _tgiven_t _tXMLAttributes_t_t _tstructure_t.
Definition XMLAttributes.cpp:1284
LIBLAX_EXTERN int XMLAttributes_add(XMLAttributes_t *xa, const char *name, const char *value)
_tAdds_t _ta_t _tname_t/_tvalue_t _tpair_t _tto_t _tthis_t _tXMLAttributes_t_t _tstructure_t.
Definition XMLAttributes.cpp:1302
LIBLAX_EXTERN int XMLAttributes_clear(XMLAttributes_t *xa)
_tClears_t (_tdeletes_t) _tall_t _tattributes_t _tin_t _tthis_t _tXMLAttributes_t_t _tstructure_t.
Definition XMLAttributes.cpp:1382
LIBLAX_EXTERN XMLAttributes_t * XMLAttributes_create(void)
@_tendcond_t
Definition XMLAttributes.cpp:1276
LIBLAX_EXTERN void XMLNamespaces_free(XMLNamespaces_t *ns)
_tFrees_t _tthe_t _tgiven_t _tXMLNamespaces_t_t _tstructure_t.
Definition XMLNamespaces.cpp:475
LIBLAX_EXTERN int XMLNamespaces_add(XMLNamespaces_t *ns, const char *uri, const char *prefix)
_tAppends_t _tan_t _tXML_t _tnamespace_t _tprefix_t/_tURI_t _tpair_t _tto_t _tthis_t _tXMLNamespaces_...
Definition XMLNamespaces.cpp:493
LIBLAX_EXTERN XMLNamespaces_t * XMLNamespaces_create(void)
@_tendcond_t
Definition XMLNamespaces.cpp:467
LIBLAX_EXTERN XMLNode_t * XMLNode_createFromToken(const XMLToken_t *token)
_tCreates_t _ta_t _tnew_t _tXMLNode_t_t _tstructure_t _tby_t _tcopying_t _ttoken_t _tand_t _treturns_...
Definition XMLNode.cpp:717
LIBLAX_EXTERN void XMLNode_free(XMLNode_t *node)
_tDestroys_t _tthis_t _tXMLNode_t_t _tstructure_t.
Definition XMLNode.cpp:795
LIBLAX_EXTERN int XMLNode_addChild(XMLNode_t *node, const XMLNode_t *child)
_tAdds_t _ta_t _tcopy_t _tof_t _tchild_t _tnode_t _tto_t _tthis_t _tXMLNode_t_t _tstructure_t.
Definition XMLNode.cpp:804
LIBLAX_EXTERN XMLToken_t * XMLToken_createWithTripleAttr(const XMLTriple_t *triple, const XMLAttributes_t *attr)
_tCreates_t _ta_t _tnew_t _tstart_t _telement_t _tXMLToken_t_t _tstructure_t _twith_t _tXMLTriple_t_t...
Definition XMLToken.cpp:1302
LIBLAX_EXTERN void XMLToken_free(XMLToken_t *token)
_tDestroys_t _tthis_t _tXMLToken_t_t _tstructure_t.
Definition XMLToken.cpp:1330
LIBLAX_EXTERN int XMLToken_setEnd(XMLToken_t *token)
_tDeclares_t _tthis_t _tXML_t _tstart_t _telement_t _tis_t _talso_t _tan_t _tend_t _telement_t.
Definition XMLToken.cpp:1913
LIBLAX_EXTERN XMLToken_t * XMLToken_createWithTripleAttrNS(const XMLTriple_t *triple, const XMLAttributes_t *attr, const XMLNamespaces_t *ns)
_tCreates_t _ta_t _tnew_t _tstart_t _telement_t _tXMLToken_t_t _tstructure_t _twith_t _tXMLTriple_t_t...
Definition XMLToken.cpp:1312
LIBLAX_EXTERN void XMLTriple_free(XMLTriple_t *triple)
_tDestroys_t _tthis_t _tXMLTriple_t_t _tstructure_t.
Definition XMLTriple.cpp:258
LIBLAX_EXTERN XMLTriple_t * XMLTriple_createWith(const char *name, const char *uri, const char *prefix)
_tCreates_t _ta_t _tnew_t _tXMLTriple_t_t _tstructure_t _twith_t _tname_t, _tprefix_t _tand_t _turi_t...
Definition XMLTriple.cpp:249
Stores an XML namespace triple.