Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(7)  |  Derive(0)  |  Import(1)

src/s/s/SSuMMo-0.3/lib/dictify.py   SSuMMo(Download)
    def run(self):
        seqFileName = self.SeqDBQ.get()
        while seqFileName != 'END':
            ArbDB = ArbIO.ArbIO( inHandle= seqFileName, index=True )
            accessions = self.SeqDBQ.get()
    inHandle = file( SeqFile,'r' )
    print 'keys',accDict.keys()
    ArbDB = ArbIO.ArbIO( inHandle=SeqFile, index=True)
    for kingdom, accessions in accDict.items():
        print 'getting',len(accessions),'sequences from',kingdom
        if os.path.exists( prefix + '.pklindex' ):
            os.remove( prefix + '.pklindex' )
        IO = ArbIO.ArbIO( fileName, index=True)
        IO.index()
        IO.close()
        exit()
    outName = prefix + '.fas'
    IO = ArbIO.ArbIO( inHandle=inSeqFile, out=outName,index=True)
    IO.dumpAndIndex( IO.outFile )
    print 'Saved an index of the arb sequence file: {0}.\nPlease keep in the same directory as the sequence file'.format( prefix + '.pklindex')
    if os.path.exists( prefix + '.pklindex' ):
        os.remove( prefix + '.pklindex' )
    IO = ArbIO.ArbIO( inSeqFile, index=True)
    index = IO.index()
    with file( prefix + '.pklindex','wb') as outIndex:

src/s/s/SSuMMo-0.3/lib/ssummolib.py   SSuMMo(Download)
    def __init__(self,seqfile,prefetchQ,outQ,pipes,format='fasta'):
        from ArbIO import ArbIO
        multiprocessing.Process.__init__(self)
        self.prefetchQ = prefetchQ
        self.outQ = outQ
        self.seqfile = file(seqfile,'r')
        self.db = ArbIO(inHandle=self.seqfile,index=True)