Skip to content

Commit

Permalink
fix merge fails
Browse files Browse the repository at this point in the history
  • Loading branch information
exaexa committed Oct 24, 2022
1 parent 4abb748 commit e024ce0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions src/types/models/SBMLModel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -227,23 +227,23 @@ $(TYPEDSIGNATURES)
Return the annotations of reaction with ID `rid`.
"""
reaction_annotations(model::SBMLModel, rid::String) =
Accessors.reaction_annotations(model::SBMLModel, rid::String) =
_sbml_import_cvterms(model.sbml.reactions[rid].sbo, model.sbml.reactions[rid].cv_terms)

"""
$(TYPEDSIGNATURES)
Return the annotations of metabolite with ID `mid`.
"""
metabolite_annotations(model::SBMLModel, mid::String) =
Accessors.metabolite_annotations(model::SBMLModel, mid::String) =
_sbml_import_cvterms(model.sbml.species[mid].sbo, model.sbml.species[mid].cv_terms)

"""
$(TYPEDSIGNATURES)
Return the annotations of gene with ID `gid`.
"""
gene_annotations(model::SBMLModel, gid::String) = _sbml_import_cvterms(
Accessors.gene_annotations(model::SBMLModel, gid::String) = _sbml_import_cvterms(
model.sbml.gene_products[gid].sbo,
model.sbml.gene_products[gid].cv_terms,
)
Expand All @@ -253,23 +253,23 @@ $(TYPEDSIGNATURES)
Return the notes about reaction with ID `rid`.
"""
reaction_notes(model::SBMLModel, rid::String) =
Accessors.reaction_notes(model::SBMLModel, rid::String) =
_sbml_import_notes(model.sbml.reactions[rid].notes)

"""
$(TYPEDSIGNATURES)
Return the notes about metabolite with ID `mid`.
"""
metabolite_notes(model::SBMLModel, mid::String) =
Accessors.metabolite_notes(model::SBMLModel, mid::String) =
_sbml_import_notes(model.sbml.species[mid].notes)

"""
$(TYPEDSIGNATURES)
Return the notes about gene with ID `gid`.
"""
gene_notes(model::SBMLModel, gid::String) =
Accessors.gene_notes(model::SBMLModel, gid::String) =
_sbml_import_notes(model.sbml.gene_products[gid].notes)

"""
Expand Down Expand Up @@ -302,7 +302,6 @@ function Base.convert(::Type{SBMLModel}, mm::MetabolicModel)
metid(mid) => SBML.Species(
name = metabolite_name(mm, mid),
compartment = default("compartment", comps[mi]),
formula = metabolite_formula(mm, mid),
formula = maybemap(unparse_formula, metabolite_formula(mm, mid)),
charge = metabolite_charge(mm, mid),
constant = false,
Expand Down
2 changes: 1 addition & 1 deletion src/types/models/StandardModel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ $(TYPEDSIGNATURES)
Return the notes associated with gene `id` in `model`.
Return an empty Dict if not present.
"""
Accessors.gene_notes(model::StandardModel, id::String)::Maybe{Notes} = model.genes[id].notes
Accessors.gene_notes(model::StandardModel, gid::String) = model.genes[gid].notes

"""
$(TYPEDSIGNATURES)
Expand Down

0 comments on commit e024ce0

Please sign in to comment.