def doit(fN): geneSet = cgGenes3.createGeneSetEditing(fN) for transcript in geneSet.transcripts: if transcript.id == 'NM_031422': dumpObj.dumpObj(transcript)
def slot_save(self): dumpObj(self.current_dataset) #for poly in self.draw_widget.get_polygons(): # dumpObj(poly) #self.slot_update_polygons(self.draw_widget.get_polygons(), 1) self.scans_database.save()
import cgOriginRNA import cgDB import dumpObj oRNA_DC = cgDB.dataController('oRNA', cgOriginRNA.OriginRNA) id_oRNA = oRNA_DC.load() id_oRNA[10].name = 'I changed you' id_oRNA[201].name = 'Another Name' id_oRNA[10].name = 'Changed Again' id_oRNA[200].targets = [47, 35, 10000] dumpObj.dumpObj(id_oRNA[2000]) oRNA_DC.commit(id_oRNA)
def testLoad(aDir): aDC = cgDB.dataController(aDir, cgAlignment.cgAlignment) id_alignment = aDC.load() dumpObj.dumpObj(id_alignment[2])