def loadRepairDBDialog(self): self.set_busy(True) fname = QFileDialog.getOpenFileName(self, 'Open repair file') if os.path.isfile(fname) : self.textBox.append('Reading repair network from '+fname+'...') try: self.repairnet = sbml.readSBMLnetwork(fname, 'repairnet') self.textBox.append('done.') except: self.textBox.append('failed.') self.set_busy(False) self.checkState()
def loadDraftDialog(self): self.set_busy(True) fname = QFileDialog.getOpenFileName(self, 'Open draft file') if os.path.isfile(fname) : self.textBox.append('Reading draft network from '+fname+'...') #self.draftnet = sbml.read_draftnetworkSBML(fname) try: self.draftnet = sbml.readSBMLnetwork(fname, 'draft') self.textBox.append('done.') except: self.textBox.append('failed.') self.set_busy(False) self.checkState()
help="targets in SBML format") parser.add_argument('--enumerate', help="enumerate all minimal completions", action="store_true") args = parser.parse_args() draft_sbml = args.draftnetwork repair_sbml = args.repairnetwork seeds_sbml = args.seeds targets_sbml = args.targets print('Reading draft network from ',draft_sbml,'...',end=' ') sys.stdout.flush() draftnet = sbml.readSBMLnetwork(draft_sbml, 'draft') print('done.') #draftnet.to_file("draftnet.lp") print('Reading seeds from ',seeds_sbml,'...',end=' ') sys.stdout.flush() seeds = sbml.readSBMLseeds(seeds_sbml) print('done.') #seeds.to_file("seeds.lp") print('Reading targets from ',targets_sbml,'...',end=' ') sys.stdout.flush() targets = sbml.readSBMLtargets(targets_sbml) print('done.') #targets.to_file("targets.lp")