Did I find the right examples for you? yes no

All Samples(14)  |  Call(8)  |  Derive(0)  |  Import(6)

src/c/o/cogent-1.5.3/cogent/parse/pfold.py   cogent(Download)
#!/usr/bin/env python
 
from string import split,strip
from cogent.struct.rna2d  import Pairs,ViennaStructure
from cogent.parse.column import column_parser
def pfold_parser(lines):
    """Parser for Pfold output
    """
    tree,lines = tree_struct_sep(lines)
    result = column_parser(lines)

src/c/o/cogent-1.5.3/cogent/parse/foldalign.py   cogent(Download)
from cogent.struct.rna2d  import Pairs,ViennaStructure
from cogent.struct.pairs_util import adjust_base
from cogent.parse.column import column_parser
 
__author__ = "Shandy Wikman"
 
    if col:
        return column_parser(data)
    else:
        return find_struct(data)

src/p/y/pycogent-HEAD/cogent/parse/pfold.py   pycogent(Download)
#!/usr/bin/env python
 
from string import split,strip
from cogent.struct.rna2d  import Pairs,ViennaStructure
from cogent.parse.column import column_parser
def pfold_parser(lines):
    """Parser for Pfold output
    """
    tree,lines = tree_struct_sep(lines)
    result = column_parser(lines)

src/p/y/pycogent-HEAD/cogent/parse/foldalign.py   pycogent(Download)
from cogent.struct.rna2d  import Pairs,ViennaStructure
from cogent.struct.pairs_util import adjust_base
from cogent.parse.column import column_parser
 
__author__ = "Shandy Wikman"
 
    if col:
        return column_parser(data)
    else:
        return find_struct(data)

src/p/y/pycogent-HEAD/tests/test_parse/test_column.py   pycogent(Download)
from cogent.parse.foldalign import find_struct
from cogent.parse.pfold     import tree_struct_sep
from cogent.parse.column    import column_parser
 
__author__ = "Shandy Wikman"
        tree,lines = tree_struct_sep(self.pfold_out)
        self.assertEqual(tree,PFOLD_tree)
        obs = column_parser(lines)
        self.assertEqual(obs,self.pfold_exp)
 
    def test_foldalign_output(self):
        """Test for column_parser for foldalign format"""
 
        obs = column_parser(self.foldalign_out)

src/c/o/cogent-1.5.3/tests/test_parse/test_column.py   cogent(Download)
from cogent.parse.foldalign import find_struct
from cogent.parse.pfold     import tree_struct_sep
from cogent.parse.column    import column_parser
 
__author__ = "Shandy Wikman"
        tree,lines = tree_struct_sep(self.pfold_out)
        self.assertEqual(tree,PFOLD_tree)
        obs = column_parser(lines)
        self.assertEqual(obs,self.pfold_exp)
 
    def test_foldalign_output(self):
        """Test for column_parser for foldalign format"""
 
        obs = column_parser(self.foldalign_out)