Skip to content

Conversation

@tristan-f-r
Copy link
Collaborator

@tristan-f-r tristan-f-r commented May 26, 2025

Forces OI2 to work offline by disabling the unused networkx graph as interactive HTML feature (we already have workflows in SPRAS that enable this).

The network error was coming from output_networkx_graph_as_interactive_html dynamically fetching jQuery to insert it as an inline script. This could have also been fixed by providing a local folder with all of the scripts, but putting the several hundred-kilobyte scripts on this repository did not seem worth it for an unused feature.

This is tested - this also introduces a (docker-only) network_disabled parameter for running containers with a detached network.

Closes #78.

This is set as P-medium as this PR sets the precedent for patch files for both any regular patching, and (more importantly) seeding algorithms.

[I mainly used this issue as an excuse to experiment with a git patch workflow over the forking method that seems to be present in SPRAS]

Forces OI2 to work offline by disabling the unused networkx graph as interactive HTML feature (we already have workflows in SPRAS that enable this).

The network error was coming from `output_networkx_graph_as_interactive_html` dynamically fetching jQuery to insert it as an inline script. This could have also been fixed by providing a `local` folder with all of the scripts, but putting the several hundred-kilobyte scripts on this repository did not seem worth it for an unused feature.
@tristan-f-r tristan-f-r changed the title feat: omicsintegrator2 offline support fix: make omicsintegrator2 work offline May 26, 2025
@tristan-f-r tristan-f-r added the algorithm Pathway reconstruction algorithm to add to SPRAS label May 29, 2025
@ntalluri ntalluri added needed for benchmarking Priority PRs needed for the benchmarking paper labels Jun 25, 2025
Copy link
Collaborator

@agitter agitter left a comment

Choose a reason for hiding this comment

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

Now that OI2 is patched, what is the goal of network_disabled? Is it for SPRAS developers to test algorithms to see if they fail without a network?

@tristan-f-r
Copy link
Collaborator Author

tristan-f-r commented Aug 8, 2025

Yes. network_disabled is a fail-fast runtime assertion: any algorithm that doesn't need internet access shouldn't have it.

@agitter
Copy link
Collaborator

agitter commented Aug 9, 2025

Yes. network_disabled is a fail-fast runtime assertion: any algorithm that doesn't need internet access shouldn't have it.

That helps. So it is in fact a decision made by the SPRAS contributor who is wrapping the algorithm.

@read-the-docs-community
Copy link

read-the-docs-community bot commented Aug 15, 2025

Documentation build overview

📚 spras | 🛠️ Build #29816308 | 📁 Comparing 4fd96f5 against latest (336b18c)


🔍 Preview build

Show files changed (7 files in total): 📝 5 modified | ➕ 1 added | ➖ 1 deleted
File Status
genindex.html 📝 modified
index.html 📝 modified
py-modindex.html 📝 modified
contributing/patching.html ➕ added
fordevs/modules.html 📝 modified
fordevs/spras.config.html ➖ deleted
fordevs/spras.html 📝 modified

@tristan-f-r tristan-f-r added the P-medium medium prirotity; this is needed for some external service or another PR label Aug 15, 2025
@agitter
Copy link
Collaborator

agitter commented Aug 15, 2025

The patching documentation looks good. The OI2 test cases are failing, and I didn't dig in yet to see why.

@tristan-f-r
Copy link
Collaborator Author

tristan-f-r commented Aug 24, 2025

The error was because of network_disabled, since the new OI2 image hasn't been pushed yet (OI2 tried to, as described earlier, fetch jQuery, but it timed out since it couldn't reach the network).

@ntalluri ntalluri removed the needed for benchmarking Priority PRs needed for the benchmarking paper label Sep 2, 2025
@tristan-f-r tristan-f-r requested a review from agitter September 25, 2025 05:06
@agitter
Copy link
Collaborator

agitter commented Oct 3, 2025

I suggest we merge this before the larger #314. That means sticking with the existing versioning updates, readme update, etc. and manual DockerHub image push.

@tristan-f-r
Copy link
Collaborator Author

tristan-f-r commented Oct 3, 2025

[I don't have permission to push to Reed-CompBio's DockerHub, so someone else will have to do it / reconfigure my permissions]

@agitter
Copy link
Collaborator

agitter commented Oct 3, 2025

I will and push OI2. It is currently on v2 so I will bump to v3. (edit: done)

Can you please make the readme version note and run function version updates as in #389?

Copy link
Collaborator

@agitter agitter left a comment

Choose a reason for hiding this comment

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

Tests pass, and I ran it locally.

@agitter agitter merged commit 5eebdb2 into Reed-CompBio:main Oct 3, 2025
19 checks passed
@tristan-f-r tristan-f-r deleted the oi2p branch October 3, 2025 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

algorithm Pathway reconstruction algorithm to add to SPRAS P-medium medium prirotity; this is needed for some external service or another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Omics Integrator 2 requires internet connection

3 participants