Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cFBA implementation #764

Merged
merged 14 commits into from
Feb 24, 2023
Merged

Fix cFBA implementation #764

merged 14 commits into from
Feb 24, 2023

Conversation

stelmo
Copy link
Collaborator

@stelmo stelmo commented Feb 20, 2023

No description provided.

@stelmo stelmo added the do not merge When a PR is labelled as such, do not merge label Feb 20, 2023
@exaexa exaexa marked this pull request as draft February 21, 2023 09:56
@codecov
Copy link

codecov bot commented Feb 22, 2023

Codecov Report

Base: 88.30% // Head: 88.07% // Decreases project coverage by -0.23% ⚠️

Coverage data is based on head (7bf7029) compared to base (c3ee550).
Patch coverage: 94.63% of modified lines in pull request are covered.

❗ Current head 7bf7029 differs from pull request most recent head c86a6ee. Consider uploading reports for the commit c86a6ee to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             next     #764      +/-   ##
==========================================
- Coverage   88.30%   88.07%   -0.23%     
==========================================
  Files          90       93       +3     
  Lines        2248     2373     +125     
==========================================
+ Hits         1985     2090     +105     
- Misses        263      283      +20     
Impacted Files Coverage Δ
src/types/accessors/AbstractMetabolicModel.jl 77.61% <ø> (ø)
src/reconstruction/pipes/community.jl 71.42% <71.42%> (ø)
src/reconstruction/CommunityModel.jl 86.66% <86.66%> (ø)
src/types/wrappers/EqualGrowthCommunityModel.jl 90.62% <90.62%> (ø)
src/types/misc/CommunityModel.jl 95.65% <95.65%> (ø)
src/types/models/CommunityModel.jl 98.71% <98.71%> (ø)
src/analysis/modifications/community.jl 100.00% <100.00%> (ø)
src/io/show/CommunityModel.jl 100.00% <100.00%> (ø)
src/misc/checkkeys.jl 91.66% <100.00%> (ø)
src/reconstruction/pipes/generic.jl 44.82% <0.00%> (-6.90%) ⬇️
... and 3 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@stelmo
Copy link
Collaborator Author

stelmo commented Feb 22, 2023

/format

@stelmo stelmo removed the do not merge When a PR is labelled as such, do not merge label Feb 22, 2023
@stelmo stelmo requested a review from exaexa February 22, 2023 22:47
@stelmo stelmo marked this pull request as ready for review February 22, 2023 22:48
triggered by @stelmo on PR #764
@github-actions
Copy link
Contributor

✔️ Auto-formatting triggered by this comment succeeded, commited as 264da59

@stelmo
Copy link
Collaborator Author

stelmo commented Feb 22, 2023

this PR allows this kind of functionality:

cm = CommunityModel(
    members = [cm1, cm2],
    abundances = [a1, a2],
    environmental_links = [
        EnvironmentalLink(rid, mid, lb, ub) for
        (rid, mid, lb, ub) in zip(ex_rxns, ex_mids, ex_lbs, ex_ubs)
    ],
)

cm |> 
    with_changed_environmental_bound(...) |> 
    with_changed_abundances(...)
    with_equal_growth_objective() |>
    flux_balance_analysis(...; modifications =[modify_abundances(...)]) |>
    values_dict(:environmental_reaction)

and some other convenience functions

Copy link
Collaborator

@exaexa exaexa left a comment

Choose a reason for hiding this comment

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

The structure is okay, there are a few minor things in the comments but generally this should go in.

@stelmo stelmo requested a review from exaexa February 24, 2023 07:46
Copy link
Collaborator

@exaexa exaexa left a comment

Choose a reason for hiding this comment

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

minor technical stuff, otherwise good to go

Copy link
Collaborator

@exaexa exaexa left a comment

Choose a reason for hiding this comment

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

btw FFTM when the type annotations are fixed

@stelmo
Copy link
Collaborator Author

stelmo commented Feb 24, 2023

Fixed the types issues and renamed the cryptic methods. Did not fix the delimiter issue, will need tlc in #765

@stelmo stelmo merged commit 50b9c6c into next Feb 24, 2023
@stelmo stelmo deleted the mo-cfba-again branch February 24, 2023 10:13
stelmo added a commit that referenced this pull request Mar 5, 2023
triggered by @stelmo on PR #764
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants