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

All Samples(14)  |  Call(12)  |  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, \
        good_3 = '''6\t|\t2\t|\tgenus\t|\t\t|\t0\t|\t1\t|\t11\t|\t1\t|\t0\t|\t1\t|\t0\t|\t0\t|\t|\n'''
        good_4 = '''7\t|\t6\t|\tspecies\t|\tAC\t|\t0\t|\t1\t|\t11\t|\t1\t|\t0\t|\t1\t|\t0\t|\t0\t|\t\t|\n'''
        node_1 = NcbiTaxon(good_1) #make a NcbiTaxon object
        node_2 = NcbiTaxon(good_2) #from the corresponding
        node_3 = NcbiTaxon(good_3) #line.
        node_4 = NcbiTaxon(good_4)

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, \
        good_3 = '''6\t|\t2\t|\tgenus\t|\t\t|\t0\t|\t1\t|\t11\t|\t1\t|\t0\t|\t1\t|\t0\t|\t0\t|\t|\n'''
        good_4 = '''7\t|\t6\t|\tspecies\t|\tAC\t|\t0\t|\t1\t|\t11\t|\t1\t|\t0\t|\t1\t|\t0\t|\t0\t|\t\t|\n'''
        node_1 = NcbiTaxon(good_1) #make a NcbiTaxon object
        node_2 = NcbiTaxon(good_2) #from the corresponding
        node_3 = NcbiTaxon(good_3) #line.
        node_4 = NcbiTaxon(good_4)