Skip to content

Commit

Permalink
small update #7
Browse files Browse the repository at this point in the history
  • Loading branch information
cb-Hades committed Apr 29, 2024
1 parent 0346b67 commit 9197f9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ authors = [
]
description = ""
readme = "README.md"
version = "1.0.0"
requires-python = ">=3.10"
#keywords = []
#license = {}
Expand Down Expand Up @@ -39,7 +40,6 @@ dependencies = [
# EntrezDirect
# DIAMOND
# BOFdat
dynamic = ['version']

[project.scripts]
specimen = "specimen.cmd_access:cli"
Expand Down
4 changes: 4 additions & 0 deletions src/specimen/core/generate_draft_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
################################################################################

import cobra
import importlib.metadata
import numpy as np
import os.path
import pandas as pd
Expand Down Expand Up @@ -323,6 +324,9 @@ def gen_draft_model(model:cobra.Model, bbh:pd.DataFrame,

# save draft model
draft.id = name
draft.notes['Template model'] = draft.name
draft.notes['Description'] = f'This model was created with SPECIMEN version {importlib.metadata.version("specimen")}'
draft.name = f'Genome-scale metabolic model {name}'
cobra.io.write_sbml_model(draft, Path(dir,name+'_draft.xml'))

return draft
Expand Down

0 comments on commit 9197f9e

Please sign in to comment.