def saveexpseqs(expdat,filename): """ save all bacteria from an experiment as a fasta file input: expdat filename - the name of the output fasta file """ hs.saveseqsfasta(expdat,expdat.seqs,filename)
def save(self): """ save the selected list to a fasta file """ fname = str(QtGui.QFileDialog.getSaveFileName(self, 'Save selection fasta file name','pita')) slist=[] for cseq in self.selection: slist.append(self.cexp.seqs[cseq]) hs.saveseqsfasta(self.cexp,slist,fname) hs.Debug(6,'Saved %d sequences to file %s' % (len(slist),fname))