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

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

src/c/o/cogent-1.5.3/tests/test_parse/test_dialign.py   cogent(Download)
#!/usr/bin/env python
 
import unittest
from cogent import PROTEIN, LoadSeqs
from cogent.parse.dialign import align_block_lines, parse_data_line, DialignParser
    def test_line_split(self):
        """test splitting of sequence record lines"""
        result = parse_data_line("HTL2               1   ldtapcLFSD GS------PQ KAAYVLWDQT ILQQDITPLP SHethsaqkg ")
        self.assertEqual(result, ("HTL2", "ldtapcLFSDGS------PQKAAYVLWDQTILQQDITPLPSHethsaqkg"))
        result = parse_data_line("                       1111111111 1000001111 1111033333 3333333333 3000000000 ")

src/p/y/pycogent-HEAD/tests/test_parse/test_dialign.py   pycogent(Download)
#!/usr/bin/env python
 
import unittest
from cogent import PROTEIN, LoadSeqs
from cogent.parse.dialign import align_block_lines, parse_data_line, DialignParser
    def test_line_split(self):
        """test splitting of sequence record lines"""
        result = parse_data_line("HTL2               1   ldtapcLFSD GS------PQ KAAYVLWDQT ILQQDITPLP SHethsaqkg ")
        self.assertEqual(result, ("HTL2", "ldtapcLFSDGS------PQKAAYVLWDQTILQQDITPLPSHethsaqkg"))
        result = parse_data_line("                       1111111111 1000001111 1111033333 3333333333 3000000000 ")