Skip to content

Commit

Permalink
update images (#464)
Browse files Browse the repository at this point in the history
* update images

* fix numpy issues

* fix scib kbet by pinning scipy to <= 1.13 (see theislab/scib#412)

* remove unnecessary workaround

* add workaround to other mse component

* update viash test to only run on the main branch or in PRs
  • Loading branch information
rcannood authored Sep 4, 2024
1 parent aab07af commit 9493835
Show file tree
Hide file tree
Showing 163 changed files with 168 additions and 186 deletions.
21 changes: 1 addition & 20 deletions .github/workflows/viash-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,15 @@ name: viash test
on:
pull_request:
push:
branches: [ '**' ]
branches: [ main ]

jobs:
run_ci_check_job:
runs-on: ubuntu-latest
outputs:
run_ci: ${{ steps.github_cli.outputs.check }}
steps:
- name: 'Check if branch has an existing pull request and the trigger was a push'
id: github_cli
run: |
pull_request=$(gh pr list -R ${{ github.repository }} -H ${{ github.ref_name }} --json url --state open --limit 1 | jq '.[0].url')
# If the branch has a PR and this run was triggered by a push event, do not run
if [[ "$pull_request" != "null" && "$GITHUB_REF_NAME" != "main" && "${{ github.event_name == 'push' }}" == "true" && "${{ !contains(github.event.head_commit.message, 'ci force') }}" == "true" ]]; then
echo "check=false" >> $GITHUB_OUTPUT
else
echo "check=true" >> $GITHUB_OUTPUT
fi
env:
GITHUB_TOKEN: ${{ secrets.GTHB_PAT }}

# phase 1
list:
needs: run_ci_check_job
env:
s3_bucket: s3://openproblems-data/resources_test/
runs-on: ubuntu-latest
if: "needs.run_ci_check_job.outputs.run_ci == 'true'"

outputs:
matrix: ${{ steps.set_matrix.outputs.matrix }}
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ functionality:
path: script.py
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_python:1.0.4
image: openproblems/base_python:1.0.0
setup:
- type: python
packages: [scikit-learn]
Expand Down
2 changes: 1 addition & 1 deletion src/common/check_dataset_schema/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ functionality:
path: test.py
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_python:1.0.4
image: openproblems/base_python:1.0.0
test_setup:
- type: python
packages: viashpy
Expand Down
2 changes: 1 addition & 1 deletion src/common/check_yaml_schema/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ functionality:
path: script.py
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_python:1.0.4
image: openproblems/base_python:1.0.0
setup:
- type: python
pypi:
Expand Down
4 changes: 2 additions & 2 deletions src/common/create_component/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ def generate_resources(par, script_path) -> str:
def generate_docker_platform(par) -> str:
"""Set up the docker platform for Python."""
if par["language"] == "python":
image_str = "ghcr.io/openproblems-bio/base_python:1.0.4"
image_str = "openproblems/base_python:1.0.0"
setup_type = "python"
package_example = "scib==1.1.5"
elif par["language"] == "r":
image_str = "ghcr.io/openproblems-bio/base_r:1.0.4"
image_str = "openproblems/base_r:1.0.0"
setup_type = "r"
package_example = "tidyverse"
return strip_margin(f'''\
Expand Down
2 changes: 1 addition & 1 deletion src/common/create_task_readme/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ functionality:
dest: openproblems-v2/_viash.yaml
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_r:1.0.4
image: openproblems/base_r:1.0.0
setup:
- type: r
packages: [dplyr, purrr, rlang, glue, yaml, fs, cli, igraph, rmarkdown, processx]
Expand Down
2 changes: 1 addition & 1 deletion src/common/extract_metadata/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ functionality:
path: test.py
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_python:1.0.4
image: openproblems/base_python:1.0.0
test_setup:
- type: python
packages: viashpy
Expand Down
2 changes: 1 addition & 1 deletion src/common/extract_scores/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ functionality:
path: script.R
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_r:1.0.4
image: openproblems/base_r:1.0.0
setup:
- type: r
cran: [ tidyverse ]
Expand Down
2 changes: 1 addition & 1 deletion src/common/ontology/check_obsolete_terms/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ functionality:
- path: /resources_test/common/cellxgene_census
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_r:1.0.4
image: openproblems/base_r:1.0.0
setup:
- type: r
packages: [ dplyr, tidyr, tibble, ontologyIndex, processx ]
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ functionality:
path: script.py
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_python:1.0.4
image: openproblems/base_python:1.0.0
- type: nextflow
directives:
label: [lowmem, lowtime, lowcpu]
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ functionality:
path: script.R
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_r:1.0.4
image: openproblems/base_r:1.0.0
setup:
- type: r
cran: [ purrr, dplyr, yaml, rlang, processx ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ functionality:
dest: test_file.yaml
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_r:1.0.4
image: openproblems/base_r:1.0.0
setup:
- type: r
cran: [ purrr, yaml, rlang, processx ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ functionality:
dest: test_file.yaml
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_r:1.0.4
image: openproblems/base_r:1.0.0
setup:
- type: r
cran: [ purrr, yaml, rlang, processx ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ functionality:
dest: test_file.yaml
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_r:1.0.4
image: openproblems/base_r:1.0.0
setup:
- type: r
cran: [ purrr, yaml, rlang, processx ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ functionality:
path: script.R
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_r:1.0.4
image: openproblems/base_r:1.0.0
setup:
- type: r
cran: [ purrr, yaml, rlang, dplyr, tidyr, readr, lubridate, dynutils, processx ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ functionality:
dest: test_file.yaml
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_r:1.0.4
image: openproblems/base_r:1.0.0
setup:
- type: r
cran: [ purrr, yaml, rlang, processx ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ functionality:
dest: test_file.yaml
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_python:1.0.4
image: openproblems/base_python:1.0.0
- type: nextflow
- type: native
2 changes: 1 addition & 1 deletion src/datasets/loaders/cellxgene_census/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ functionality:
path: test.py
platforms:
- type: docker
#image: ghcr.io/openproblems-bio/base_python:1.0.4
#image: openproblems/base_python:1.0.0
image: python:3.11
setup:
- type: python
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ functionality:
path: test.py
platforms:
- type: docker
#image: ghcr.io/openproblems-bio/base_python:1.0.4
#image: openproblems/base_python:1.0.0
image: python:3.11
setup:
- type: python
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ functionality:
# path: /resources_test/common/openproblems_neurips2021/neurips2021_bmmc_cite.h5ad
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_python:1.0.4
image: openproblems/base_python:1.0.0
- type: nextflow
directives:
label: [highmem, midcpu , midtime]
label: [highmem, midcpu, midtime]
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ functionality:
# path: /resources_test/common/openproblems_neurips2021/neurips2021_bmmc_cite.h5ad
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_python:1.0.4
image: openproblems/base_python:1.0.0
- type: nextflow
directives:
label: [ highmem, midcpu, midtime]
2 changes: 1 addition & 1 deletion src/datasets/loaders/openproblems_v1/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ functionality:
path: test.py
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_python:1.0.4
image: openproblems/base_python:1.0.0
setup:
- type: apt
packages: git
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ functionality:
path: test.py
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_python:1.0.4
image: openproblems/base_python:1.0.0
setup:
- type: apt
packages: git
Expand Down
2 changes: 1 addition & 1 deletion src/datasets/normalization/atac_tfidf/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ functionality:
path: script.py
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_python:1.0.4
image: openproblems/base_python:1.0.0
setup:
- type: python
packages:
Expand Down
4 changes: 2 additions & 2 deletions src/datasets/normalization/l1_sqrt/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ functionality:
path: script.py
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_python:1.0.4
image: openproblems/base_python:1.0.0
setup:
- type: python
packages:
- scprep
- numpy
- numpy<2
- type: nextflow
directives:
label: [midtime, midmem, midcpu]
2 changes: 1 addition & 1 deletion src/datasets/normalization/log_cp/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ functionality:
description: "Number of counts per cell"
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_python:1.0.4
image: openproblems/base_python:1.0.0
- type: nextflow
directives:
label: [midtime, midmem, midcpu]
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ functionality:
path: script.R
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_r:1.0.4
image: openproblems/base_r:1.0.0
setup:
- type: r
cran: [ Matrix, rlang, scran, BiocParallel ]
Expand Down
2 changes: 1 addition & 1 deletion src/datasets/normalization/prot_clr/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ functionality:
path: script.py
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_python:1.0.4
image: openproblems/base_python:1.0.0
setup:
- type: python
packages:
Expand Down
2 changes: 1 addition & 1 deletion src/datasets/normalization/sqrt_cp/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ functionality:
description: "Number of counts per cell"
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_python:1.0.4
image: openproblems/base_python:1.0.0
- type: nextflow
directives:
label: [midtime, midmem, midcpu]
2 changes: 1 addition & 1 deletion src/datasets/processors/hvg/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ functionality:
path: script.py
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_python:1.0.4
image: openproblems/base_python:1.0.0
- type: nextflow
directives:
label: [midtime, highmem, midcpu]
2 changes: 1 addition & 1 deletion src/datasets/processors/knn/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ functionality:
path: script.py
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_python:1.0.4
image: openproblems/base_python:1.0.0
- type: nextflow
directives:
label: [midtime, highmem, midcpu]
2 changes: 1 addition & 1 deletion src/datasets/processors/pca/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ functionality:
# - path: "../../../resources_test/common/pancreas"
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_python:1.0.4
image: openproblems/base_python:1.0.0
- type: nextflow
directives:
label: [midtime, highmem, midcpu]
2 changes: 1 addition & 1 deletion src/datasets/processors/subsample/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ functionality:
- path: /resources_test/common/pancreas
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_python:1.0.4
image: openproblems/base_python:1.0.0
test_setup:
- type: python
packages:
Expand Down
2 changes: 1 addition & 1 deletion src/datasets/processors/svd/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ functionality:
path: script.py
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_python:1.0.4
image: openproblems/base_python:1.0.0
setup:
- type: python
pypi: [scikit-learn]
Expand Down
2 changes: 1 addition & 1 deletion src/migration/check_migration_status/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ functionality:
path: test.py
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_python:1.0.4
image: openproblems/base_python:1.0.0
- type: nextflow
- type: native
2 changes: 1 addition & 1 deletion src/migration/list_git_shas/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ functionality:
path: test.py
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_python:1.0.4
image: openproblems/base_python:1.0.0
test_setup:
- type: docker
run: "git clone https://github.com/openproblems-bio/openproblems-v2.git"
Expand Down
2 changes: 1 addition & 1 deletion src/migration/update_bibtex/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ functionality:
path: test.py
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_python:1.0.4
image: openproblems/base_python:1.0.0
setup:
- type: python
pypi: git+https://github.com/sciunto-org/python-bibtexparser@main
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ functionality:
path: /src/common/helper_functions/read_anndata_partial.py
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_images/python:1.1.0
image: openproblems/base_python:1.0.0
- type: nextflow
directives:
label: [midtime, lowmem, lowcpu]
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ functionality:
path: /src/common/helper_functions/read_anndata_partial.py
platforms:
- type: docker
image: ghcr.io/openproblems-bio/base_images/python:1.1.0
image: openproblems/base_python:1.0.0
- type: nextflow
directives:
label: [ "midtime", "lowmem", "lowcpu"]
Loading

0 comments on commit 9493835

Please sign in to comment.