Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

The command line

odezoo --help lists the commands, and odezoo COMMAND --help describes one.

Finding models

odezoo list shows every model as a table. odezoo search does the same for the models whose details contain every word you give it, in any case: the id, name, family, paper title and authors, keywords, cell type and species.

odezoo list
odezoo search ten tusscher

Both take the same filters. Repeating a filter gives alternatives; different filters must all hold.

FilterKeeps the models that
--category Chave category C (one of PMR’s 20 categories, such as electrophysiology)
--keyword Khave keyword K
--species Sare of species S, such as human or guinea pig
--family Fbelong to family F, the cell-type variants of one model
--format Fhave a version in format cellml or ode
--reviewed, --unreviewedhave, or have not, been run and compared with their paper
odezoo list --species human --species rabbit --category electrophysiology

--ids prints only the ids, one per line, and --json prints the models as JSON. A table taller than the terminal opens in your pager ($PAGER, else less), as git does; --no-pager prints it instead.

What is there

odezoo values FIELD counts the models with each value of a field, the most common first. The field is category, keyword, species, family, format or cell_type, and the command takes the filters above, so you can see what there is before you search.

odezoo values species
odezoo values family --species human
odezoo values cell_type --json

One model

odezoo info ID shows a model’s paper with its DOI and PubMed links, the other models in its family, its description (which says, for example, which parameter selects the cell type, or which inputs a contraction model expects), and a table of its versions: format, date added, licence, and where each comes from. --json prints the model as JSON, with each version’s sha256.

odezoo info tentusscher_2006_epi

Fetching files

odezoo fetch writes each model’s file, as <id>.cellml or <id>.ode, into the folder given with -o (by default the current folder).

odezoo fetch beeler_reuter_1977 luo_rudy_1991 -o models/
odezoo fetch $(odezoo search --format cellml --ids) -o models/

Without options it fetches the model’s default version, else its newest. --version V fetches a given version (with one model id only), and --format F the default version if it is in that format, else the newest in it. --force overwrites a different file that is already there; an identical one is left alone.

Every file is checked against the sha256 in the registry. odezoo tries, in order: a registry checkout given with --registry, the cache, this repository’s copy on GitHub, and the upstream source. The first that gives the right bytes wins; if none does, the error lists each place and why it failed.

The cache and other settings

OptionEnvironment variableWhat it does
--cache-dir PATHODEZOO_CACHE_DIRWhere downloads are kept
--registry PATHODEZOO_REGISTRYUse a checkout of the repository instead of the bundled registry

A flag beats its environment variable. odezoo cache dir prints the cache folder, odezoo cache clear empties it, and odezoo fetch --no-cache neither reads nor writes it.

The commands under odezoo registry are for maintainers; Adding a model describes them.