Unsets the annotation for each element in the given SBML file.
49 """Usage: unsetAnnotation <input-filename> <output-filename> 52 print(
"\n" +
"Usage: unsetAnnotation <input-filename> <output-filename>" +
"\n" +
"\n")
59 errors = document.getNumErrors()
62 document.printErrors()
65 m = document.getModel()
68 for i
in range(0, m.getNumReactions()):
72 for j
in range(0, re.getNumReactants()):
73 rt = re.getReactant(j)
76 for j
in range(0, re.getNumProducts()):
80 for j
in range(0, re.getNumModifiers()):
81 md = re.getModifier(j)
84 if re.isSetKineticLaw():
85 kl = re.getKineticLaw()
88 for j
in range(0, kl.getNumParameters()):
89 pa = kl.getParameter(j)
92 for i
in range(0, m.getNumSpecies()):
96 for i
in range(0, m.getNumCompartments()):
97 sp = m.getCompartment(i)
100 for i
in range(0, m.getNumFunctionDefinitions()):
101 sp = m.getFunctionDefinition(i)
104 for i
in range(0, m.getNumUnitDefinitions()):
105 sp = m.getUnitDefinition(i)
108 for i
in range(0, m.getNumParameters()):
109 sp = m.getParameter(i)
112 for i
in range(0, m.getNumRules()):
116 for i
in range(0, m.getNumInitialAssignments()):
117 sp = m.getInitialAssignment(i)
120 for i
in range(0, m.getNumEvents()):
124 for j
in range(0, sp.getNumEventAssignments()):
125 ea = sp.getEventAssignment(j)
128 for i
in range(0, m.getNumSpeciesTypes()):
129 sp = m.getSpeciesType(i)
132 for i
in range(0, m.getNumConstraints()):
133 sp = m.getConstraint(i)
141 if __name__ ==
'__main__':