Пример #1
0
 def setUpClass(cls):
     cls.src = taxon_distance.TaxonDist(debugging=True)
Пример #2
0
"""  Reactions Controller

:Author: Zhouyang Lian < *****@*****.** >
:Date: 2019-10-21
:Copyright: 2019, Karr Lab
:License: MIT
"""

from datanator_query_python.config.query_manager import RxnManager
from datanator_query_python.aggregate import pipelines
from datanator_query_python.config import query_manager
from datanator_rest_api.util import paginator, taxon_distance
from collections import deque

r_manager = RxnManager().rxn_manager()
dist_manager = taxon_distance.TaxonDist()


def get_kegg_meta(ec, projection):
    return r_manager.db_obj['kegg_orthology'].find_one(
        filter={'definition.ec_code': ec}, projection=projection)


class kinlaw_by_rxn:
    def get(
        substrates,
        products,
        _from,
        size,
        bound,
        dof,