Skip to content

Commit

Permalink
Removing debugging print
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Henry committed Feb 23, 2025
1 parent b569bdd commit 84317b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 0 additions & 1 deletion modelseedpy/core/msgapfill.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,6 @@ def run_multi_gapfill(
if gapfilling_mode == "Global":
#Now we run simultaneous gapfilling on a combination of all our various gapfilled models
print("Running global gapfilling!")
print("Reaction scores:",self.reaction_scores)
full_solution = self.run_global_gapfilling(
medias=test_output["medias"],
targets=test_output["targets"],
Expand Down
9 changes: 8 additions & 1 deletion modelseedpy/core/msgrowthphenotypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ def simulate_phenotypes(
# Running simulations
gapfilling_solutions = {}
totalcount = 0
datahash = {}
datahash = {"summary": {}}
for pheno in self.phenotypes:
result = pheno.simulate(
modelutl,
Expand Down Expand Up @@ -599,6 +599,13 @@ def simulate_phenotypes(
summary["Count"][0] = None
else:
summary["Count"][0] = summary["Count"][0] / totalcount
datahash["summary"]["accuracy"] = summary["Count"][0]
datahash["summary"]["CP"] = summary["Count"][1]
datahash["summary"]["CN"] = summary["Count"][2]
datahash["summary"]["FP"] = summary["Count"][3]
datahash["summary"]["FN"] = summary["Count"][4]
datahash["summary"]["P"] = summary["Count"][5]
datahash["summary"]["N"] = summary["Count"][6]
sdf = pd.DataFrame(summary)
df = pd.DataFrame(data)
self.adjust_phenotype_calls(df)
Expand Down

0 comments on commit 84317b7

Please sign in to comment.