-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path__init__.py
78 lines (66 loc) · 1.83 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# -*- coding: utf-8 -*-
from __future__ import absolute_import
# set the warning format to be on a single line
import sys
import logging
import cobra
import warnings as _warnings
from os import name as _name
from os.path import abspath as _abspath
from os.path import dirname as _dirname
from modelseedpy.helpers import config
__author__ = "Christopher Henry"
__email__ = "[email protected]"
__version__ = "0.4.2"
logger = logging.getLogger(__name__)
print("modelseedpy", __version__)
if sys.version_info[0] == 2:
logger.warning(
"Python 2 is reaching end of life (see "
"https://www.python.org/dev/peps/pep-0373/) and many cobra "
"dependencies have already dropped support. At the moment it *should* "
"still work but we will no longer actively maintain Python 2 support."
)
if "e0" not in cobra.medium.annotations.compartment_shortlist["e"]:
cobra.medium.annotations.compartment_shortlist["e"].append("e0")
import modelseedpy
from modelseedpy.core import (
RastClient,
MSGenome,
MSBuilder,
MSMedia,
MSGrowthPhenotypes,
MSGrowthPhenotype,
MSModelUtil,
FBAHelper,
MSEditorAPI,
MSATPCorrection,
MSGapfill,
MSEquation,
MSModelReport,
AnnotationOntology,
)
from modelseedpy.core.exceptions import *
from modelseedpy.community import MSCommunity, MSCompatibility, CommKineticPkg
from modelseedpy.biochem import ModelSEEDBiochem
from modelseedpy.fbapkg import (
BaseFBAPkg,
RevBinPkg,
ReactionUsePkg,
SimpleThermoPkg,
TotalFluxPkg,
BilevelPkg,
KBaseMediaPkg,
FluxFittingPkg,
ProteomeFittingPkg,
GapfillingPkg,
MetaboFBAPkg,
FlexibleBiomassPkg,
ProblemReplicationPkg,
FullThermoPkg,
MSPackageManager,
ObjConstPkg,
ChangeOptPkg,
ElementUptakePkg,
)
from modelseedpy.multiomics import MSExpression