Skip to content

Commit

Permalink
Fixing native ontology API
Browse files Browse the repository at this point in the history
  • Loading branch information
cshenry committed Mar 23, 2024
1 parent d57afc7 commit 5185ebb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/ModelSEEDReconstruction/modelseedrecon.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def __init__(self,config,module_dir="/kb/module",working_dir=None,token=None,cli
self.gs_template = None
self.version = "0.1.1.msr"
self.module_dir = module_dir
self.native_ontology = False
logging.basicConfig(format='%(created)s %(levelname)s: %(message)s',
level=logging.INFO)

Expand Down Expand Up @@ -100,7 +101,7 @@ def build_metabolic_models(self,params):
for i,gen_ref in enumerate(params["genome_refs"]):
template_type = params["gs_template"]
#Getting RAST annotated genome, which will be reannotated as needed
genome = self.get_msgenome_from_ontology(gen_ref,native_python_api=True,output_ws=params["workspace"])
genome = self.get_msgenome_from_ontology(gen_ref,native_python_api=self.native_ontology,output_ws=params["workspace"])
#Initializing output row
current_output = default_output.copy()
current_output["Comments"] = []
Expand Down Expand Up @@ -256,7 +257,7 @@ def gapfill_metabolic_models(self,params):
if not params["genome_objs"]:
params["genome_objs"] = {}
for mdl in params["model_objs"]:
params["genome_objs"][mdl] = self.get_msgenome_from_ontology(mdl.genome_ref)
params["genome_objs"][mdl] = self.get_msgenome_from_ontology(mdl.genome_ref,native_python_api=self.native_ontology,output_ws=params["workspace"])
#Retrieving expression data if not provided already
if not params["expression_objs"] and params["expression_refs"]:
params["expression_objs"] = self.get_expression_objs(params["expression_refs"],params["genome_objs"])
Expand Down

0 comments on commit 5185ebb

Please sign in to comment.