Skip to content

Commit

Permalink
fix: memote test listing
Browse files Browse the repository at this point in the history
  • Loading branch information
mihai-sysbio committed Mar 14, 2023
1 parent 396c311 commit b7782f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/memote.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ def scoreAnnotationAndConsistency(model_name):
errors = ''
try:
model = cobra.io.read_sbml_model(model_name + '.xml')
_, results = memote.suite.api.test_model(model=model, results=True, exclusive=['basic', 'annotation', 'consistency'])
processed_results = memote.suite.api.snapshot_report(results, None, False)
_, results = memote.suite.api.test_model(model=model, results=True, exclusive=['test_stoichiometric_consistency', 'test_reaction_mass_balance', 'test_reaction_charge_balance', 'test_find_disconnected', 'test_find_reactions_unbounded_flux_default_condition', 'test_metabolite_annotation_presence', 'test_metabolite_annotation_overview', 'test_metabolite_annotation_wrong_ids', 'test_metabolite_id_namespace_consistency', 'test_reaction_annotation_presence', 'test_reaction_annotation_overview', 'test_reaction_annotation_wrong_ids', 'test_reaction_id_namespace_consistency', 'test_gene_product_annotation_presence', 'test_gene_product_annotation_overview', 'test_gene_product_annotation_wrong_ids', 'test_model_id_presence', 'test_metabolites_presence', 'test_reactions_presence', 'test_genes_presence', 'test_compartments_presence', 'test_metabolic_coverage', 'test_unconserved_metabolites', 'test_inconsistent_min_stoichiometry', 'test_find_unique_metabolites', 'test_find_duplicate_metabolites_in_compartments', 'test_metabolites_charge_presence', 'test_metabolites_formula_presence', 'test_find_medium_metabolites', 'test_find_pure_metabolic_reactions', 'test_find_constrained_pure_metabolic_reactions', 'test_find_transport_reactions', 'test_find_constrained_transport_reactions', 'test_find_candidate_irreversible_reactions', 'test_find_reactions_with_partially_identical_annotations', 'test_find_duplicate_reactions', 'test_find_reactions_with_identical_genes'])
processed_results = memote.suite.api.snapshot_report(results, config=None, html=False)
results_json = json.loads(processed_results)
print(results_json['score'])
memote_score = results_json['score']['total_score']
Expand Down

0 comments on commit b7782f7

Please sign in to comment.