Skip to content

support for export to cobrapy-compatible yaml format #77

@edkerk

Description

@edkerk

RAVEN should support writing a cobrapy-compatible yaml format, as this format is very concise.

  • make writeYaml function that writes a text file, and parses through the model structure.
  • remove old Yaml-export functionality
  • modify exportForGit to support new writeYaml function
  • confirm that output from this function is identical to cobrapy-yaml (except for RAVEN-unique fields)

A few considerations:

  • Use the correct format. This example is old, rather use this example of the yeast consensus network.
  • Do not reformat any ids to replace non-standard characters. This is done when writing SBML, as SBML doesn't support certain characters. But the YAML file should represent the model as it is in MATLAB.
  • Include as many annotations as possible:

For each metabolite, include:

  • mets
  • metNames
  • metComps
  • inchis
  • metFormulas
  • metMiriams (any)
  • metCharges
  • unconstrained
  • rxnFrom (?)

For each reaction, include:

  • rxns
  • rxnNames
  • rxnComps
  • metabolites and their stoichiometry
  • grRules
  • subSystems
  • eccodes
  • rxnMiriams (any)
  • rxnNotes
  • rxnConfidenceScores

For each compartment, include:

  • comps
  • compNames
  • compOutside
  • compMiriams

For each gene, include:

  • genes
  • geneComps
  • geneMiriams
  • geneShortNames

But of course only write those fields if they are present in the model.

Metadata

Metadata

Labels

featureA new function or new functionality for an existing function

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions