Skip to content

Commit

Permalink
Merge pull request #2 from COBREXA/mk-cleaning2
Browse files Browse the repository at this point in the history
pre-release cleanup
  • Loading branch information
exaexa authored Oct 31, 2023
2 parents 1f78b03 + 9a98e14 commit 65fcdea
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
AbstractFBCModels = "0.1, 0.2"
DocStringExtensions = "0.8, 0.9"
MAT = "0.10"
SparseArrays = "1"
Test = "1"
julia = "1"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Expand Down
7 changes: 5 additions & 2 deletions src/MATFBCModels.jl
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
module MATFBCModels

using DocStringExtensions

import AbstractFBCModels as A
using MAT, SparseArrays

using MAT
using SparseArrays

include("types.jl")
include("constants.jl")
include("utils.jl")
include("interface.jl")
include("io.jl")
include("utils.jl")

export MATFBCModel

Expand Down
4 changes: 2 additions & 2 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ end
function unparse_formula(x::Maybe{A.MetaboliteFormula})
isnothing(x) && return nothing
ks = sort(collect(keys(x)))
join([k * string(x[k]) for k in ks])
join(k * string(x[k]) for k in ks)
end

function unparse_grr(xs::Maybe{A.GeneAssociationDNF})
isnothing(xs) && return nothing
join([join(x, " and ") for x in xs], " or ")
join((join(x, " and ") for x in xs), " or ")
end

2 comments on commit 65fcdea

@exaexa
Copy link
Member Author

@exaexa exaexa commented on 65fcdea Oct 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/94478

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.0 -m "<description of version>" 65fcdea72ac41d49067973ad10d9f49fe0f78cf7
git push origin v0.1.0

Please sign in to comment.