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_ncbi_taxonomy.py   cogent(Download)
#!/usr/bin/env python
"""Tests of parsers for dealing with NCBI Taxonomy files.
"""
 
from cogent.parse.ncbi_taxonomy import MissingParentError, NcbiTaxon, \
    def test_init(self):
        """NcbiNameLookup should map taxon ids to scientific names"""
        names = list(NcbiNameParser(good_names)) #list of objects
        sci_names = NcbiNameLookup(names) #NcbiNameLookup object
        root = names[1] #NcbiName object made from 2nd line of good_name_file
    def setUp(self):
        """Sets up the class tests"""
        self.names = list(NcbiNameParser(good_names))
        self.nodes = list(NcbiTaxonParser(good_nodes))
        self.taxID_to_obj = NcbiTaxonLookup(self.nodes)

src/p/y/pycogent-HEAD/tests/test_parse/test_ncbi_taxonomy.py   pycogent(Download)
#!/usr/bin/env python
"""Tests of parsers for dealing with NCBI Taxonomy files.
"""
 
from cogent.parse.ncbi_taxonomy import MissingParentError, NcbiTaxon, \
    def test_init(self):
        """NcbiNameLookup should map taxon ids to scientific names"""
        names = list(NcbiNameParser(good_names)) #list of objects
        sci_names = NcbiNameLookup(names) #NcbiNameLookup object
        root = names[1] #NcbiName object made from 2nd line of good_name_file
    def setUp(self):
        """Sets up the class tests"""
        self.names = list(NcbiNameParser(good_names))
        self.nodes = list(NcbiTaxonParser(good_nodes))
        self.taxID_to_obj = NcbiTaxonLookup(self.nodes)