PEATDB/DNAtool/DNA_sequencing.py
def load_Zip(self,event=None):
        """Loads sequences from a zip file and show items in the details widget"""

        zfilename = None
        zfilename = self.open_zipfile()
        if zfilename == None:
            return
        zfile = zipfile.ZipFile( zfilename, "r" )
        zfile.printdir()
        self.seq_list=[]
        for info in zfile.infolist():
            fname = info.filename
            if fname.endswith(".clipped"):
                self.seq_list.append(fname)
            # decompress each file's data
            #data = zfile.read(fname)
            #print data
                x = os.path.split(fname)
                self.details.insert(END,x[1])
        return
Loads sequences from a zip file and show items in the details widget
Loads sequences from a zip file and show items in the details widget
Loads sequences from a zip file and show items in the details widget
def load_Zip(self,event=None):
        zfilename = None
        zfilename = self.open_zipfile()
        if zfilename == None:
            return
        zfile = zipfile.ZipFile( zfilename, "r" )
        zfile.printdir()
        self.seq_list=[]
        for info in zfile.infolist():
            fname = info.filename
            if fname.endswith(".clipped"):
                self.seq_list.append(fname)
                x = os.path.split(fname)
                self.details.insert(END,x[1])
        return
def load_Zip ( self , event = None ) : zfilename = None zfilename = self . open_zipfile ( ) if zfilename == None : return zfile = zipfile . ZipFile ( zfilename , "r" ) zfile . printdir ( ) self . seq_list = [ ] for info in zfile . infolist ( ) : fname = info . filename if fname . endswith ( ".clipped" ) : self . seq_list . append ( fname ) x = os . path . split ( fname ) self . details . insert ( END , x [ 1 ] ) return
Loads sequences from a zip file and show items in the details widget
Loads sequences from a zip file and show items in the details widget
"""Loads sequences from a zip file and show items in the details widget""" # decompress each file's data #data = zfile.read(fname) #print data
self
event