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

Add Morpheus Button for Loading and Simulating Public Models #2180

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

whomingbird
Copy link
Contributor

Morpheus is a modeling and simulation environment for the study of multi-scale and multicellular systems.

This PR introduces a Morpheus button that allows users to load publicly available Morpheus models into their locally installed Morpheus application and start simulations. The feature is similar to the existing Copasi button.

Key Features:

  • System administrators can enable or disable the Morpheus button.
  • Currently supports only Morpheus models.
  • Works exclusively with publicly downloadable models.

We expect the button in SEEK that, when clicked:
Downloads the published Moupheus model.
Opens the locally installed Morpheus application.
Automatically loads the model and starts the simulation.
Copy link
Member

@stuzart stuzart left a comment

Choose a reason for hiding this comment

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

looks good, just a couple of minor changes

@@ -57,6 +57,7 @@ jerm_enabled:
email_enabled:
jws_enabled:
copasi_enabled:
morpheus_enabled:
Copy link
Member

Choose a reason for hiding this comment

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

needs a default setting in config/initializers/seek_configuration.rb - which I think should be true

Copy link
Contributor Author

Choose a reason for hiding this comment

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

shoud i also add a default setting in config/initializers/seek_configuration.rb for copasi,
Seek::Config.default :copasi_enabled, true


# for a public Morpheus model, if Morpheus is not enabled, the button is hidden
with_config_value(:morpheus_enabled, false) do
get :show, params: { id: public_model }
Copy link
Member

Choose a reason for hiding this comment

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

would be good to have each of these get :show requests and test in separate tests, to avoid problems when rack is updated to v3+

@whomingbird whomingbird requested a review from stuzart March 28, 2025 11:47
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