Skip to content

Commit f3100ff

Browse files
author
Christopher Henry
committed
2 parents 530eb90 + e89ce80 commit f3100ff

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/ModelSEEDReconstruction/modelseedrecon.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from modelseedpy.core.mstemplate import MSTemplateBuilder
1717
from modelseedpy.core.msgenome import normalize_role
1818
from kbbasemodules.basemodelingmodule import BaseModelingModule
19-
from modelseedpy.community.mscommunity import MSCommunity
19+
from mscommunity import MSCommunity
2020

2121
logger = logging.getLogger(__name__)
2222

@@ -481,10 +481,11 @@ def run_community_fba(self,params):
481481
species_list = []
482482
abundance_hash = {}
483483
comm_model = MSCommunity(
484-
model=mdlutl,
485-
names=species_list
484+
model=mdlutl.model,
485+
ids=species_list
486486
)
487487
comm_model.set_abundance(abundance_hash)
488+
#TODO: This code will need to be updated
488489
mdlutl.pkgmgr.getpkg("CommKineticPkg").build_package(float(params["kinetics_coef"]), comm_model)
489490
output = {}
490491
#Optimizing and constraining objective to fraction of optimum
@@ -606,4 +607,4 @@ def build_dataframe_report(self,table,model_objs=None):
606607
#Creating data table file
607608
json_str = '{"data":'+table.to_json(orient='records')+'}'
608609
with open(self.working_dir+"/html/data.json", 'w') as f:
609-
f.write(json_str)
610+
f.write(json_str)

0 commit comments

Comments
 (0)