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

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

src/c/o/cogent-1.5.3/tests/test_parse/test_gibbs.py   cogent(Download)
from cogent.parse.record import DelimitedSplitter
from cogent.parse.record_finder import LabeledRecordFinder
from cogent.parse.gibbs import get_sequence_and_motif_blocks, get_sequence_map,\
    get_motif_blocks, get_motif_sequences, get_motif_p_value, guess_alphabet,\
    build_module_objects, module_ids_to_int, GibbsParser
        exp_motif_blocks = [['first MOTIF a', 'motif a data'],\
                            ['second MOTIF b', 'motif b data', 'after motifs']]
        motif_blocks = get_motif_blocks(motif_lines)
        self.assertEqual(motif_blocks,exp_motif_blocks)
 

src/p/y/pycogent-HEAD/tests/test_parse/test_gibbs.py   pycogent(Download)
from cogent.parse.record import DelimitedSplitter
from cogent.parse.record_finder import LabeledRecordFinder
from cogent.parse.gibbs import get_sequence_and_motif_blocks, get_sequence_map,\
    get_motif_blocks, get_motif_sequences, get_motif_p_value, guess_alphabet,\
    build_module_objects, module_ids_to_int, GibbsParser
        exp_motif_blocks = [['first MOTIF a', 'motif a data'],\
                            ['second MOTIF b', 'motif b data', 'after motifs']]
        motif_blocks = get_motif_blocks(motif_lines)
        self.assertEqual(motif_blocks,exp_motif_blocks)