Core Tests

Basic

Perform basic tests on an instance of cobra.Model.

test_basic.test_gene_protein_reaction_rule_presence(read_only_model, store)[source]

Expect all non-exchange reactions to have a GPR.

test_basic.test_genes_presence(read_only_model, store)[source]

Expect that >= 1 genes are present in the read_only_model.

test_basic.test_metabolic_coverage(read_only_model, store)[source]

Expect a model to have high metabolic coverage.

test_basic.test_metabolites_charge_presence(read_only_model, store)[source]

Expect all metabolites to have a formula.

test_basic.test_metabolites_formula_presence(read_only_model, store)[source]

Expect all metabolites to have a formula.

test_basic.test_metabolites_presence(read_only_model, store)[source]

Expect that >= 1 metabolites are present in the read_only_model.

test_basic.test_model_id_presence(read_only_model, store)[source]

Expect that the read_only_model has an ID.

test_basic.test_ngam_presence(read_only_model, store)[source]

Expect a single non growth-associated maintenance reaction.

test_basic.test_reactions_presence(read_only_model, store)[source]

Expect that >= 1 reactions are present in the read_only_model.

Consistency

Biomass

Annotation

Syntax