-
Notifications
You must be signed in to change notification settings - Fork 25
fix: make omicsintegrator2 work offline #226
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
07b3932
feat: omicsintegrator2 offline support
tristan-f-r 8aca983
style: rm whitespace in environment.yml
tristan-f-r 95d8494
Merge remote-tracking branch 'upstream/main' into oi2p
tristan-f-r de1fcac
Merge remote-tracking branch 'upstream/main' into oi2p
tristan-f-r 7bd9c3d
style: fmt
tristan-f-r 4a44f8d
Merge branch 'main' into oi2p
tristan-f-r 01f5dcd
docs: patching algorithms
tristan-f-r be10742
docs: drop && / from docker
tristan-f-r e72031e
Merge branch 'main' into oi2p
tristan-f-r cb88015
Merge branch 'main' into oi2p
tristan-f-r 5925a02
Merge branch 'main' into oi2p
tristan-f-r 4fd96f5
docs: bump oi2
tristan-f-r File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
docker-wrappers/OmicsIntegrator2/0001-disable-graph-exports.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| From 5dc0e69fa3d1049ae8e1d8f51859335910245ad7 Mon Sep 17 00:00:00 2001 | ||
| From: "Tristan F.-R." <[email protected]> | ||
| Date: Mon, 26 May 2025 09:52:34 -0700 | ||
| Subject: [PATCH] fix: disable graph exports | ||
|
|
||
| this allows OI2 to work offline; plus, SPRAS already has graph visualizers. | ||
| --- | ||
| src/__main__.py | 2 +- | ||
| 1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
|
||
| diff --git a/src/__main__.py b/src/__main__.py | ||
| index 49ef402..b7afbca 100644 | ||
| --- a/src/__main__.py | ||
| +++ b/src/__main__.py | ||
| @@ -80,7 +80,7 @@ def main(): | ||
| forest, augmented_forest = graph.output_forest_as_networkx(vertex_indices, edge_indices) | ||
|
|
||
| #oi.output_networkx_graph_as_graphml_for_cytoscape(augmented_forest, args.output_dir) | ||
| - oi.output_networkx_graph_as_interactive_html(augmented_forest, args.output_dir, args.filename+'.html') | ||
| + # oi.output_networkx_graph_as_interactive_html(augmented_forest, args.output_dir, args.filename+'.html') | ||
| augmented_forest_df = oi.get_networkx_graph_as_dataframe_of_edges(augmented_forest) | ||
| output_dataframe_to_tsv(augmented_forest_df, args.output_dir, args.filename+'.tsv') | ||
|
|
||
| -- | ||
| 2.47.0 | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,5 +2,14 @@ | |
| # https://github.com/fraenkel-lab/OmicsIntegrator2 | ||
| FROM continuumio/miniconda3:4.9.2 | ||
|
|
||
| COPY 0001-disable-graph-exports.patch . | ||
|
|
||
| RUN git clone https://github.com/agitter/OmicsIntegrator2 && \ | ||
tristan-f-r marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| cd OmicsIntegrator2 && \ | ||
| git reset --hard 568f170eae388e42e923c478ac9f3308b487760b && \ | ||
| git config user.email "[email protected]" && \ | ||
| git config user.name "Non-existent User" && \ | ||
tristan-f-r marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| git am /0001-disable-graph-exports.patch | ||
|
|
||
| COPY environment.yml . | ||
| RUN conda env update --name base --file environment.yml --prune | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| Patching Algorithms | ||
| =================== | ||
|
|
||
| Some wrapped algorithms require extra fixes inside their code. For permissively licensed algorithms, | ||
| we use ``.patch`` files generated from ``git format-patch``. | ||
|
|
||
| To create patch files using ``git format-patch`` (assuming your wrapped algorithm is in a git repository): | ||
|
|
||
| #. Clone the repository locally. | ||
| #. Commit the changes you want to make (with good commit messages and descriptions). | ||
|
|
||
| * Distinct changes should be made in different commits to make patch files easy to read | ||
| * For removing code, we prefer to comment out code instead of removing it, to make potential stacktraces less confusing for end users. | ||
|
|
||
| #. Run ``git format-patch HEAD~[N]`` where ``N`` is the number of commits you made. | ||
|
|
||
| To use ``.patch`` files in ``Dockerfiles``, we create a fake user for ``git`` and apply the patch files using ``git am``: | ||
|
|
||
| .. code:: shell | ||
|
|
||
| git config user.email "[email protected]" | ||
| git config user.name "Non-existent User" | ||
| git am /0001-my-patch.patch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.