MATLAB vs Python#

GECKO ships as a MATLAB toolbox and as the Python package geckopy. This page is generated from the source of both toolboxes at build time. Pairs are found automatically where the names match, completed from a curated list where they do not, and marked with a cobrapy badge where cobrapy covers the function instead of geckopy. Every name is verified to exist.

Paired functions#

79 GECKO functions listed: 70 matched automatically, 9 from a curated list, 0 covered by cobrapy instead of geckopy.

GECKO (MATLAB)

geckopy (Python)

Summary

adapterTemplate

generate_template_toml

KEY_CLASSNAME Template ModelAdapter to copy and adapt per organism.

addNewRxnsToEC

add_new_rxns_to_ec

Add new reactions to an enzyme-constrained model.

applyComplexData

apply_complex_data

Apply complex subunit stoichiometry to an ecModel.

applyCustomKcats

apply_custom_kcats

Apply user-defined kcats to an ecModel.

applyKcatConstraints

apply_kcat_constraints

Apply kcat-derived enzyme constraints to an ecModel.

assignKcats

assign_kcats

Assign kcats from the kcat source files and apply them.

assignKcatValues

apply_kcat_list

Select one kcat value per reaction and write to model.ec.

bestParsimonious

best_parsimonious

The fewest-changes point whose RMSE is within

calculateFfactor

calculate_f_factor

Compute the f factor for an ecModel.

calculateMW

calculate_mw

Calculate the molecular weight of a protein.

cmaesKcatTuning

cmaes_kcat_tuning

Tune kcats against experimental data with CMA-ES.

collectKcats

collect_kcats

Decide one kcat per reaction from the kcat source files.

constrainEnzConcs

constrain_enz_concs

Constrain enzyme usages by their concentration.

constrainFluxData

apply_flux_data_constraints

Constrain ecModel fluxes to provided flux data.

convertCustomKcats

convert_custom_kcats

Convert data/customKcats.tsv into data/kcats/custom.tsv.

downloadKEGG

download_kegg

Download a KEGG organism's gene data and write a CSV.

downloadUniProt

download_uniprot

Download UniProt protein data for an organism and write a TSV.

ecFSEOF

ec_fseof

Run Flux-Scanning with Enforced Objective Function for a target.

ecFVA

ec_fva

Run flux variability analysis on an ecModel.

ecStatsFromBrenda

ec_stats_from_brenda

Summarise loadBRENDAdata's output per EC number, for

extractEnzymeSubstratePairs

extract_enzyme_substrate_pairs

The enzyme-substrate pairs of an ecModel's reactions.

fetchBrendaAsset

fetch_brenda_asset

Download (once) GECKO's BRENDA files and return their folder.

fetchOpenKineticsPredictor

fetch_open_kinetics_predictor

Fetch and parse an OpenKineticsPredictor job.

fillEnzConcs

fill_enz_concs

Populate model.ec.concs from proteome data.

findECInDB

find_ec_in_db

Look up EC numbers for a reaction's gene set in a UniProt or KEGG index.

findMetSmiles

find_met_smiles

Query PubChem by metabolite names to obtain SMILES.

flexibilizeEnzConcs

flexibilize_enz_concs

Flexibilize enzyme concentrations of an ecModel.

fuzzyKcatMatching

fuzzy_kcat_matching

Match model EC numbers and substrates to BRENDA kcats.

getComplexData

get_complex_data

Download curated complex stochiometries from Complex Portal.

getConcControlCoeffs

get_conc_control_coeffs

Calculate control coefficients of protein usage.

getECfromDatabase

fill_eccodes_from_database

Populate model.ec.eccodes from UniProt and KEGG databases.

getECfromGEM

fill_eccodes_from_gem

Populate model.ec.eccodes from the model.eccodes field.

getEnzymeBottlenecks

get_enzyme_bottlenecks

Top-N enzymes limiting the current objective.

getKcatAcrossIsozymes

fill_kcats_from_isozymes

Fill missing kcats from isozymes of the same reaction.

getReactionsFromEnzyme

get_reactions_from_enzyme

Get all reactions annotated to a particular enzyme.

getStandardKcat

assign_standard_kcat

Assign standard kcat and MW to reactions without enzymes.

getSubsetEcModel

get_subset_ec_model

Generate a context-specific ecModel from a general one.

isozymeTieMap

isozyme_tie_map

Index of the parameter each isozyme copy follows.

kcatAssignmentConfig

KcatAssignmentConfig

The kcat assignment settings of a model adapter.

kcatsFromBrenda

kcats_from_brenda

Gather kcats from BRENDA and keep them as a source file.

kcatsFromDLKcat

kcats_from_dlkcat

Gather kcats from DLKcat and keep them as a source file.

kcatsFromECTree

kcats_from_ec_tree

Estimate kcats from the EC tree and keep them as a source file.

kcatsFromHomologs

kcats_from_homologs

Estimate kcats from measured homologs and keep them as a source file.

kcatsFromOKP

kcats_from_okp

Gather kcats from OpenKineticsPredictor and keep them as a source file.

loadBRENDAdata

load_brenda_data

Load kcat and specific activity data from BRENDA files.

loadBrendaMeasurements

load_brenda_measurements

Load the BRENDA measurement table.

loadConventionalGEM

load_conventional_gem

Load the conventional GEM (non-ecModel).

loadEcModel

load_ec_model

Load the ecModel that matches the modelAdapter.

loadEvotuneData

load_evotune_data

Load experimental data for evotune (CMA-ES) kcat tuning.

loadFluxData

load_flux_data

Load total protein measurements and exchange flux data.

loadKcatSource

load_kcat_source

Read a kcat source file and map its rows to an ecModel.

loadProtData

load_prot_data

Load absolute proteomics data and average over replicates.

makeEcModel

make_ec_model

Expand a conventional GEM into a basic ecModel.

mapRxnsToConv

map_rxns_to_conv

Map ecModel fluxes back to the conventional starting model.

mergeDLKcatAndFuzzyKcats

merge_dlkcat_and_fuzzy_kcats

Merge DLKcat and BRENDA fuzzy matching results.

mergeKcats

merge_kcats

Merge any number of kcatLists, keeping the highest-priority

ModelAdapter

ModelAdapter

Abstract base class for species-specific model adapters.

ModelAdapterManager

resolve_adapter

Resolve and cache the active ModelAdapter.

nChanged

n_changed

How many kcats differ from their prior by more than relTol.

parsimonyFrontier

parsimony_frontier

Score kcat with progressively more of it reverted to

readDLKcatOutput

read_dlkcat_output

Read the DLKcat output file into a kcatList structure.

relaxProteomicsGreedy

relax_proteomics_greedy

Greedy shadow-price-ordered relaxation of proteomics

removeStandardKcat

remove_standard_kcat

Remove the standard pseudoenzyme and standard kcats.

reportEnzymeUsage

report_enzyme_usage

Summarize the results from getEnzymeUsage.

runDLKcat

run_dlkcat

Run DLKcat to predict kcat values from a Docker image.

saveEcModel

save_ec_model

Save an ecModel in YAML and/or SBML format.

saveKcatSource

save_kcat_source

Write a kcatList to a kcat source file of the project.

screenKcatLeverage

screen_kcat_leverage

Report which kcats the data can actually speak to.

selectTunableMask

select_tunable_mask

Build a tunableMask from a screenKcatLeverage report.

sensitivityTuning

sensitivity_tuning

Relax the most limiting kcats to reach a growth rate.

setKcatForReactions

set_kcat_for_reactions

Change the kcat value for selected reactions.

setProtPoolSize

set_prot_pool_size

Set the limit of the total protein usage in the model.

sigmaFitter

fit_sigma

Fit the average enzyme saturation factor of an ecModel.

submitOpenKineticsPredictor

submit_open_kinetics_predictor

Submit a kcat prediction job to OpenKineticsPredictor.

truncateValues

truncate_values

Round values in selected columns to six significant digits.

tunePriorPenaltyWeight

tune_prior_penalty_weight

Sweep priorPenaltyWeight and report the

updateKcatSources

update_kcat_sources

Gather the kcat sources that the configuration needs.

upgradeEcModel

upgrade_ec_model

Bring an ecModel made with GECKO 3 to the GECKO 4 format.

writeDLKcatInput

write_dlkcat_input

Prepare and write the input file for DLKcat.

Deliberately not ported#

GECKO (MATLAB)

Why not

plotEcFVA

Plots an ecFVA flux range directly from the result; geckopy returns the ec_fva DataFrame and leaves plotting to matplotlib or seaborn directly.

readOpenKineticsPredictorOutput

Parses a downloaded OpenKineticsPredictor result file. geckopy replaced the file round-trip with a REST client (submit_open_kinetics_predictor / fetch_open_kinetics_predictor); the equivalent parsing is internal to that client.

updateProtPool

Obsolete since GECKO 3.2.0; setProtPoolSize (geckopy set_prot_pool_size) supersedes it.

writeOpenKineticsPredictorInput

Builds an OpenKineticsPredictor request file. geckopy replaced the file round-trip with a REST client; the equivalent request-building is internal to that client.

Not yet mapped#

23 GECKO functions are not yet recorded here.

applyECcodes, buildGECKOdoc, convertAdapterToToml, createGECKOproject, ecTreeEstimate, evotuneScore, fillCarbonNum, findGECKOroot, getEcRxnKeys, getECstring, getEnzymeUsage, getPfbaEnzymes, loadAdapterParams, loadDatabases, parseGECKOargs, readAdapterToml, resolveKcatAggregation, resolveOkpApiKey, resolveTunableContext, reviewKcatAssignment, TomlAdapter, upgradeGECKOproject, writeAdapterToml