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

All Samples(12)  |  Call(6)  |  Derive(0)  |  Import(6)

src/c/o/cogent-1.5.3/cogent/parse/flowgram_collection.py   cogent(Download)
from cogent.util.unit_test import FakeRandom
from cogent.core.sequence import Sequence
from cogent.parse.flowgram_parser import parse_sff
from cogent.parse.flowgram import Flowgram
from cogent.core.alignment import SequenceCollection
        flows = flows.splitlines()
 
    flows, head = parse_sff(flows)
    return flows_from_generic(flows)
 

src/p/y/pycogent-HEAD/cogent/parse/flowgram_collection.py   pycogent(Download)
from cogent.util.unit_test import FakeRandom
from cogent.core.sequence import Sequence
from cogent.parse.flowgram_parser import parse_sff
from cogent.parse.flowgram import Flowgram
from cogent.core.alignment import SequenceCollection
        flows = flows.splitlines()
 
    flows, head = parse_sff(flows)
    return flows_from_generic(flows)
 

src/c/o/cogent-1.5.3/tests/test_parse/test_flowgram_parser.py   cogent(Download)
from types import GeneratorType
from cogent.util.unit_test import TestCase, main
from cogent.parse.flowgram_parser import get_header_info, get_summaries,\
    get_all_summaries, split_summary, parse_sff, lazy_parse_sff_handle
 
    def test_parse_sff(self):
        """SFParser should read in the SFF file correctly."""
        flows, head = parse_sff(self.rec)
        self.assertEqual(len(flows),2)
        self.assertEqual(len(head), 11)

src/p/y/pycogent-HEAD/tests/test_parse/test_flowgram_parser.py   pycogent(Download)
from types import GeneratorType
from cogent.util.unit_test import TestCase, main
from cogent.parse.flowgram_parser import get_header_info, get_summaries,\
    get_all_summaries, split_summary, parse_sff, lazy_parse_sff_handle
 
    def test_parse_sff(self):
        """SFParser should read in the SFF file correctly."""
        flows, head = parse_sff(self.rec)
        self.assertEqual(len(flows),2)
        self.assertEqual(len(head), 11)

src/p/y/pycogent-HEAD/tests/test_parse/test_flowgram.py   pycogent(Download)
from cogent.parse.flowgram import Flowgram, build_averaged_flowgram
 
from cogent.parse.flowgram_parser import parse_sff
 
class FlowgramTests(TestCase):
 
""".split('\n')
        flows, head = parse_sff(self.rec)
        self.flows = list(flows)
 

src/c/o/cogent-1.5.3/tests/test_parse/test_flowgram.py   cogent(Download)
from cogent.parse.flowgram import Flowgram, build_averaged_flowgram
 
from cogent.parse.flowgram_parser import parse_sff
 
class FlowgramTests(TestCase):
 
""".split('\n')
        flows, head = parse_sff(self.rec)
        self.flows = list(flows)