Adds controlled vocabulary terms to a reaction in a model.
46 """usage: addingEvidenceCodes_1 <input-filename> <output-filename> 47 Adds controlled vocabulary term to a reaction 54 errors = d.getNumErrors()
57 print(
"Read Error(s):\n")
60 print(
"Correct the above and re-run.\n")
62 n = d.getModel().getNumReactions()
65 print(
"Model has no reactions.\n Cannot add CV terms\n")
67 r = d.getModel().getReaction(0)
72 if not r.isSetMetaId():
73 r.setMetaId(
"metaid_0000052")
75 cv1 = CVTerm(BIOLOGICAL_QUALIFIER)
76 cv1.setBiologicalQualifierType(BQB_IS_DESCRIBED_BY)
77 cv1.addResource(
"urn:miriam:obo.eco:ECO%3A0000183")
81 cv2 = CVTerm(BIOLOGICAL_QUALIFIER)
82 cv2.setBiologicalQualifierType(BQB_IS)
83 cv2.addResource(
"urn:miriam:kegg.reaction:R00756")
84 cv2.addResource(
"urn:miriam:reactome:REACT_736")
92 if __name__ ==
'__main__':