Ejemplo n.º 1
0
import os
import logging

from sbmlutils.modelcreator import creator

import coloredlogs

coloredlogs.install(
    level='INFO',
    fmt="%(pathname)s:%(lineno)s %(funcName)s %(levelname) -10s %(message)s"
    # fmt="%(levelname) -10s %(asctime)s %(module)s:%(lineno)s %(funcName)s %(message)s"
)
logger = logging.getLogger(__name__)

base_dir = os.path.dirname(os.path.abspath(__file__))
target_dir = os.path.join(base_dir, 'model')

if __name__ == "__main__":
    models_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)))

    print('-' * 80)
    print(models_dir)
    print('-' * 80)

    # brain
    creator.create_model(
        modules=['pylimax.models.glucose.glucose_liver_model'],
        target_dir=target_dir,
        annotations=os.path.join(base_dir, 'glucose_annotations.xlsx'),
        create_report=True)
Ejemplo n.º 2
0
def create_model(target_dir):
    return creator.create_model(modules=['models.body.model_body'],
                                target_dir=target_dir,
                                create_report=True)
Ejemplo n.º 3
0
import os
from sbmlutils.modelcreator import creator

base_dir = os.path.dirname(os.path.abspath(__file__))
target_dir = os.path.join(base_dir, 'results')


if __name__ == "__main__":
    creator.create_model(modules=['sbmlutils.examples.models.dallaman.model'],
                         target_dir=target_dir)
Ejemplo n.º 4
0
import os
from sbmlutils.modelcreator import creator

base_dir = os.path.dirname(os.path.abspath(__file__))
target_dir = os.path.join(base_dir, 'results')

if __name__ == "__main__":
    creator.create_model(modules=['sbmlutils.examples.models.dallaman.model'],
                         target_dir=target_dir)
Ejemplo n.º 5
0
"""
PKPD model creator for LiMAx and methacetin.
"""

from __future__ import print_function, division
import os
from sbmlutils.modelcreator import creator

base_dir = os.path.dirname(os.path.abspath(__file__))
target_dir = os.path.join(base_dir, 'results')

#############################
if __name__ == "__main__":
    creator.create_model(modules=['pylimax.models.galactose_pkpd.galactose_pkpd_model'], target_dir=target_dir,
                         annotations=None)
Ejemplo n.º 6
0
def create_model(target_dir):

    return creator.create_model(modules=['models.liver.model_liver'],
                                target_dir=target_dir,
                                create_report=True)
Ejemplo n.º 7
0
#############################
if __name__ == "__main__":
    create_report = True
    build_submodels = True
    prepare_rbc = True

    # if prepare_rbc:
    #     prepare_rbc_model.prepare_rbc_model(name="rbc_parasite_model", target_dir=target_dir)

    if build_submodels:

        # brain
        creator.create_model(
            modules=['pylimax.models.glucose_pkpd.glucose_brain_model'],
            target_dir=target_dir,
            annotations=None,
            create_report=create_report)

        # rbc
        creator.create_model(
            modules=['pylimax.models.glucose_pkpd.glucose_rbc_model'],
            target_dir=target_dir,
            annotations=None,
            create_report=create_report)

        # liver
        creator.create_model(
            modules=['pylimax.models.glucose_pkpd.glucose_liver_model'],
            target_dir=target_dir,
            annotations=None,
Ejemplo n.º 8
0
import os

from sbmlutils.modelcreator import creator


base_dir = os.path.dirname(os.path.abspath(__file__))
target_dir = os.path.join(base_dir, "results")


if __name__ == "__main__":
    creator.create_model(
        modules=["sbmlutils.examples.models.dallaman.model"], output_dir=target_dir
    )
Ejemplo n.º 9
0
def create_model(target_dir):
    return creator.create_model(modules=['model_codeine'],
                                target_dir=target_dir,
                                create_report=True)