Skip to content

Commit

Permalink
update SPRAS mcf to use versioned image
Browse files Browse the repository at this point in the history
  • Loading branch information
ntalluri committed Jun 24, 2024
1 parent 32bd0e6 commit a9d6869
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-spras.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
docker pull reedcompbio/omics-integrator-2:v2
docker pull reedcompbio/pathlinker:latest
docker pull reedcompbio/meo:latest
docker pull reedcompbio/mincostflow:latest
docker pull reedcompbio/mincostflow:v2
docker pull reedcompbio/allpairs:latest
docker pull reedcompbio/domino:latest
- name: Build Omics Integrator 1 Docker image
Expand Down Expand Up @@ -125,7 +125,7 @@ jobs:
path: docker-wrappers/MinCostFlow/.
dockerfile: docker-wrappers/MinCostFlow/Dockerfile
repository: reedcompbio/mincostflow
tags: latest
tags: v2
cache_froms: reedcompbio/mincostflow:latest
push: false
- name: Build All Pairs Shortest Paths Docker image
Expand Down
4 changes: 4 additions & 0 deletions docker-wrappers/MinCostFlow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,7 @@ docker run -w /data --mount type=bind,source=/${PWD},target=/data reedcompbio/mi
This will run MinCostFlow on the test input files and write the output files to the root of the `spras` repository.

Windows users may need to escape the absolute paths so that `/data` becomes `//data`, etc.

## Versions
- v1: Initial version. Handles undirected edges only.
- v2: Updated to handle both directed and undirected edges.
2 changes: 1 addition & 1 deletion spras/mincostflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def run(sources=None, targets=None, edges=None, output_file=None, flow=None, cap
command.extend(['--capacity', str(capacity)])

# choosing to run in docker or singularity container
container_suffix = "mincostflow"
container_suffix = "mincostflow:v2"

# constructs a docker run call
out = run_container(container_framework,
Expand Down

0 comments on commit a9d6869

Please sign in to comment.