Adds controlled vocabulary terms to a species in a model.
46 """usage: addCVTerms <input-filename> <output-filename> 47 Adds controlled vocabulary term to a species 54 errors = d.getNumErrors()
57 print(
"Read Error(s):")
59 print(
"Correct the above and re-run.")
61 n = d.getModel().getNumSpecies()
64 print(
"Model has no species.\n Cannot add CV terms\n")
66 s = d.getModel().getSpecies(0)
68 if not s.isSetMetaId():
69 s.setMetaId(
'unique_id_1')
72 cv.setQualifierType(BIOLOGICAL_QUALIFIER)
73 cv.setBiologicalQualifierType(BQB_IS_VERSION_OF)
74 cv.addResource(
"http://www.geneontology.org/#GO:0005892")
77 cv2.setQualifierType(BIOLOGICAL_QUALIFIER)
78 cv2.setBiologicalQualifierType(BQB_IS)
79 cv2.addResource(
"http://www.geneontology.org/#GO:0005895")
82 cv1.setQualifierType(BIOLOGICAL_QUALIFIER)
83 cv1.setBiologicalQualifierType(BQB_IS_VERSION_OF)
84 cv1.addResource(
"http://www.ebi.ac.uk/interpro/#IPR002394")
95 if __name__ ==
'__main__':