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

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

        def seq_wrapper(seq,width=60):
    s=""
    seqlen=len(seq)
    for i in range(0,seqlen,width):
        stop=i+width
        if stop>seqlen:stop=seqlen
        s+=seq[i:stop]+"\n"
    return s
        


src/x/p/xplib-0.01/bin/xGetSeq.py   xplib(Download)
import time
from xplib.DBI.DB import GenomeI
from xplib.Tools import seq_wrapper
def ParseArg():
    ''' This Function Parse the Argument '''
                print >>out,genome.get_cdna_seq(i)
            else:
                print >>out,seq_wrapper(genome.get_cdna_seq(i))