pKaTool/multiple_calc_analysis.py
def save_sequences(self):
        """Save all sequences in a single PIR file for an alignment program"""
        #
        # Just do it
        #
        import tkFileDialog, os, pickle
        savedir=os.getcwd()
        filename=tkFileDialog.asksaveasfilename(defaultextension=".pir",
                                                initialfile='sequences.pir',
                                                initialdir=savedir,
                                                filetypes=[("Pir file","*.pir")],
                                                parent=self.multwin)
        if filename:
            fd=open(filename,'w')
            for calc1 in self.multcalcs.keys():
                seq1=self.multcalcs[calc1]['aa1seq']
                fd.write('>P1;%s\n\n%s*\n\n' %(calc1,seq1))
            fd.close()
        return
Save all sequences in a single PIR file for an alignment program
Save all sequences in a single PIR file for an alignment program
Save all sequences in a single PIR file for an alignment program
def save_sequences(self):
         Just do it
        import tkFileDialog, os, pickle
        savedir=os.getcwd()
        filename=tkFileDialog.asksaveasfilename(defaultextension=".pir",
                                                initialfile='sequences.pir',
                                                initialdir=savedir,
                                                filetypes=[("Pir file","*.pir")],
                                                parent=self.multwin)
        if filename:
            fd=open(filename,'w')
            for calc1 in self.multcalcs.keys():
                seq1=self.multcalcs[calc1]['aa1seq']
                fd.write('>P1;%s\n\n%s*\n\n' %(calc1,seq1))
            fd.close()
        return
def save_sequences ( self ) : import tkFileDialog , os , pickle savedir = os . getcwd ( ) filename = tkFileDialog . asksaveasfilename ( defaultextension = ".pir" , initialfile = 'sequences.pir' , initialdir = savedir , filetypes = [ ( "Pir file" , "*.pir" ) ] , parent = self . multwin ) if filename : fd = open ( filename , 'w' ) for calc1 in self . multcalcs . keys ( ) : seq1 = self . multcalcs [ calc1 ] [ 'aa1seq' ] fd . write ( '>P1;%s\n\n%s*\n\n' % ( calc1 , seq1 ) ) fd . close ( ) return
Save all sequences in a single PIR file for an alignment program
Save all sequences in a single PIR file for an alignment program
"""Save all sequences in a single PIR file for an alignment program""" # # Just do it #
self