Unverified Commit c5ccab9d authored by St. Elmo's avatar St. Elmo
Browse files

format

parent 536e6796
Pipeline #54791 passed with stages
in 11 minutes and 41 seconds
......@@ -27,9 +27,8 @@ const _constants = (
metformulas = ["metFormula", "metFormulas"],
metcharges = ["metCharge", "metCharges"],
metcompartments = ["metCompartment", "metCompartments"],
rxnnames = ["rxnNames",],
metnames = ["metNames",],
rxnnames = ["rxnNames"],
metnames = ["metNames"],
),
gene_annotation_checks = (
"ncbigene",
......
......@@ -252,13 +252,17 @@ end
Extract reaction name from `rxnNames`.
"""
reaction_name(m::MATModel, rid::String) =
_maybemap(x -> x[findfirst(==(rid), reactions(m))], gets(m.mat, nothing, _constants.keynames.rxnnames))
reaction_name(m::MATModel, rid::String) = _maybemap(
x -> x[findfirst(==(rid), reactions(m))],
gets(m.mat, nothing, _constants.keynames.rxnnames),
)
"""
metabolite_name(m::MATModel, mid::String)
Extract metabolite name from `metNames`.
"""
metabolite_name(m::MATModel, mid::String) =
_maybemap(x -> x[findfirst(==(mid), metabolites(m))], gets(m.mat, nothing, _constants.keynames.metnames))
metabolite_name(m::MATModel, mid::String) = _maybemap(
x -> x[findfirst(==(mid), metabolites(m))],
gets(m.mat, nothing, _constants.keynames.metnames),
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment