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#

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

GECKO (MATLAB)

geckopy (Python)

Summary

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.

applyECcodes

copy_ec_to_gem

Copy EC numbers from ecModel.ec.eccodes to ecModel.eccodes.

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

evotuneScore

evotune_distance

Score one ecModel's current kcats against evotune data.

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.

fillEnzConcs

fill_enz_concs

Populate model.ec.concs from proteome data.

fillKcatsFromIsozymes

fill_kcats_from_isozymes

Fill missing kcats from isozymes of the same reaction.

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.

formatKcatSource

format_kcat_source

Write the provenance text of a kcat in model.ec.source.

fuzzyKcatMatching

fuzzy_kcat_matching

Match model EC numbers and substrates to BRENDA kcats.

getComplexData

get_complex_data

Download curated complex stochiometries from Complex Portal.

getComplexFamilies

complex_families

Group the enzymes of multi-subunit reactions into complexes.

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.

getEcRxnKeys

ec_rxn_keys

Build-independent keys of the model.ec reactions.

getEnzymeBottlenecks

get_enzyme_bottlenecks

Top-N enzymes limiting the current objective.

getEnzymeUsage

enzyme_usage

Compute enzyme usages from a provided flux distribution.

getIsozymeCoverage

get_isozyme_coverage

Report isozyme groups with partial proteomics coverage.

getPfbaEnzymes

pfba_enzymes

Parsimonious FBA minimising total enzyme usage.

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.

levelComplexConcs

level_complex_concs

Give every enzyme complex one abundance.

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.

mergeKcats

merge_kcats

Merge any number of kcatLists, keeping the highest-priority

ModelAdapter

ModelAdapter

Abstract base class for species-specific model adapters.

nChanged

n_changed

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

parseKcatSource

parse_kcat_source

Read the provenance text of a kcat in model.ec.source.

parsimonyFrontier

parsimony_frontier

Score kcat with progressively more of it reverted to

relaxEnzConcs

relax_enz_concs

Relax enzyme concentrations by the least total amount.

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.

reviewKcatAssignment

review_assignment

Flag kcat assignments that deserve a second look.

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.

showAdapterParams

show_adapter_params

Print the parameters of a model adapter and where each comes from.

sigmaFitter

fit_sigma

Fit the average enzyme saturation factor of an ecModel.

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.

upgradeGECKOproject

upgrade_project

Bring a GECKO 3 project to the GECKO 4 layout.

zeroUnmeasuredIsozymes

zero_unmeasured_isozymes

Limit unmeasured isozymes that have a measured sibling.

Deliberately not ported#

GECKO (MATLAB)

Why not

convertAdapterToToml

geckopy reads the adapter from model_adapter.toml, so there is no adapter class to convert.

createGECKOproject

The command geckopy init makes the project folder.

findGECKOroot

geckopy finds its own files through the installed package and needs no toolbox folder.

getECstring

find_ec_in_db reads the EC numbers of a UniProt or KEGG entry itself.

loadDatabases

load_uniprot_tsv and load_kegg_tsv read data/uniprot.tsv and data/kegg.tsv; make_ec_model downloads a missing file.

ModelAdapterManager

geckopy has no default adapter. A function takes the argument adapter or reads model.adapter.

plotEcFVA

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

Not yet mapped#

11 GECKO functions are not yet recorded here.

buildGECKOdoc, ecTreeEstimate, fillCarbonNum, loadAdapterParams, parseGECKOargs, readAdapterToml, resolveKcatAggregation, resolveOkpApiKey, resolveTunableContext, TomlAdapter, writeAdapterToml