Skip to content

Commit

Permalink
Changed function name load_medium_from_db #49 #60
Browse files Browse the repository at this point in the history
Due to changes in refineGEMs.io I changed the function name from load_medium_from_db to load_medium_from_db_for_growth. Adjusted the  name in refineGEMs.growth
  • Loading branch information
GwennyGit committed Nov 13, 2023
1 parent a48198e commit ecd3e8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions refinegems/growth.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import logging
import pandas as pd
import numpy as np
from refinegems.io import load_medium_from_db
from refinegems.io import load_medium_from_db_for_growth
from cobra.medium import minimal_medium
from cobra import Reaction
from cobra import Model as cobraModel
Expand Down Expand Up @@ -213,7 +213,7 @@ def get_all_minimum_essential(model: cobraModel, media: list[str]) -> pd.DataFra
default_uptake = get_default_uptake(model)
mins = pd.DataFrame()
for medium in media:
medium_df = load_medium_from_db(medium)
medium_df = load_medium_from_db_for_growth(medium)
missing_exchanges = get_missing_exchanges(model, medium_df)
medium_dict = modify_medium(medium_df, missing_exchanges)
essential = find_missing_essential(model, medium_dict, default_uptake)
Expand Down Expand Up @@ -301,7 +301,7 @@ def get_growth_selected_media(model: cobraModel, media: list[str], basis: str, a
"""
growth = pd.DataFrame()
for medium in media:
medium_df = load_medium_from_db(medium)
medium_df = load_medium_from_db_for_growth(medium)
if (basis == 'default_uptake'):
growth_one = growth_one_medium_from_default(model, medium_df, anaerobic)
elif (basis == 'minimal_uptake'):
Expand Down

0 comments on commit ecd3e8a

Please sign in to comment.