RAVEN should support writing a cobrapy-compatible yaml format, as this format is very concise.
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.
RAVEN should support writing a cobrapy-compatible yaml format, as this format is very concise.
writeYamlfunction that writes a text file, and parses through the model structure.exportForGitto support new writeYaml functionA few considerations:
For each metabolite, include:
metsmetNamesmetCompsinchismetFormulasmetMiriams(any)metChargesunconstrainedrxnFrom(?)For each reaction, include:
rxnsrxnNamesrxnCompsgrRulessubSystemseccodesrxnMiriams(any)rxnNotesrxnConfidenceScoresFor each compartment, include:
compscompNamescompOutsidecompMiriamsFor each gene, include:
genesgeneCompsgeneMiriamsgeneShortNamesBut of course only write those fields if they are present in the model.