Skip to content

Commit 60a8eb9

Browse files
authored
Merge pull request #13 from COBREXA/mk-fix-cobrapy
2 parents a463387 + 7fa09a3 commit 60a8eb9

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "JSONFBCModels"
22
uuid = "475c1105-d6ed-49c1-9b32-c11adca6d3e8"
33
authors = ["The authors of JSONFBCModels.jl"]
4-
version = "1.0.0"
4+
version = "1.0.1"
55

66
[deps]
77
AbstractFBCModels = "5a4f3dfa-1789-40f8-8221-69268c29937c"

src/grr_utils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ Formats a DNF gene association as a `String`.
181181
"""
182182
function format_gene_association_dnf(
183183
grr::A.GeneAssociationDNF;
184-
and = " && ",
185-
or = " || ",
184+
and = " & ",
185+
or = " | ",
186186
)::String
187187
return join(("(" * join(gr, and) * ")" for gr in grr), or)
188188
end

src/interface.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ JSONFBCModel(json::Dict{String,Any}) = begin
66

77
mkey = first(intersect(keys(json), constants.keynames.metabolites))
88
ms = json[mkey]
9-
isnothing(mkey) && throw(DomainError(keys(json), "JSON model has no metabolite keys"))
9+
isnothing(mkey) &&
10+
throw(DomainError(keys(json), "JSON model has no metabolite keys"))
1011

1112
gkey = first(intersect(keys(json), constants.keynames.genes))
1213
gs = isnothing(gkey) ? [] : json[gkey]

0 commit comments

Comments
 (0)