Skip to content

Commit

Permalink
Update scanpy to 1.9.5 (#594)
Browse files Browse the repository at this point in the history
* Update scanpy to 1.9.5

* Add CHANGELOG entry
  • Loading branch information
DriesSchaumont authored Oct 23, 2023
1 parent 05fa08f commit b41a658
Show file tree
Hide file tree
Showing 31 changed files with 30 additions and 64 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ Implementing this changes involved breaking some existing functionality:

## MINOR CHANGES

* Several components: bump scanpy to 1.9.5 (PR #594).

* Refactored `prot_multisample` and `prot_singlesample` pipelines to use `fromState` and `toState` functionality (PR #585).

# openpipelines 0.11.0
Expand Down
2 changes: 1 addition & 1 deletion src/annotate/popv/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ platforms:
- build-essential
- wget
- type: python
__merge__: [ /src/base/requirements/scanpy.yaml, .]
packages:
- scanpy~=1.9.4
- scvi-tools~=1.0.3
- popv~=0.3.2
- jax==0.4.10
Expand Down
3 changes: 3 additions & 0 deletions src/base/requirements/scanpy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

packages:
- scanpy~=1.9.5
3 changes: 1 addition & 2 deletions src/cluster/leiden/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ platforms:
- cmake
- procps
- type: python
__merge__: [/src/base/requirements/anndata_mudata.yaml, .]
__merge__: [/src/base/requirements/anndata_mudata.yaml, /src/base/requirements/scanpy.yaml, .]
packages:
- scanpy~=1.9.2
- leidenalg~=0.8.9
- type: nextflow
directives:
Expand Down
4 changes: 1 addition & 3 deletions src/convert/from_10xh5_to_h5mu/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ platforms:
packages:
- procps
- type: python
__merge__: [/src/base/requirements/anndata_mudata.yaml, .]
packages:
- scanpy~=1.9.2
__merge__: [/src/base/requirements/anndata_mudata.yaml, /src/base/requirements/scanpy.yaml, .]
- type: nextflow
directives:
label: [lowmem, singlecpu]
4 changes: 1 addition & 3 deletions src/convert/from_10xmtx_to_h5mu/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ platforms:
packages:
- procps
- type: python
__merge__: [/src/base/requirements/anndata_mudata.yaml, .]
packages:
- scanpy~=1.9.2
__merge__: [/src/base/requirements/anndata_mudata.yaml, /src/base/requirements/scanpy.yaml, .]
- type: nextflow
directives:
label: [lowmem, singlecpu]
3 changes: 1 addition & 2 deletions src/convert/from_cellranger_multi_to_h5mu/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ platforms:
packages:
- procps
- type: python
__merge__: [/src/base/requirements/anndata_mudata.yaml, .]
__merge__: [/src/base/requirements/anndata_mudata.yaml, /src/base/requirements/scanpy.yaml, .]
packages:
- scanpy~=1.9.2
- scirpy~=0.11.1
- pandas~=2.0.0
test_setup:
Expand Down
2 changes: 1 addition & 1 deletion src/convert/from_h5mu_to_seurat/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ platforms:
- python3-pip
- python-is-python3
- type: python
__merge__: [/src/base/requirements/scanpy.yaml, .]
packages:
- scanpy~=1.9.2
- anndata~=0.9.1
- type: r
cran: [ anndata, hdf5r, testthat ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ platforms:
- type: python
packages:
- muon
- scanpy
- type: nextflow
directives:
label: [singlecpu, lowmem, gpu]
3 changes: 0 additions & 3 deletions src/correction/cellbender_remove_background/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,6 @@ def setup_logger():
out = subprocess.check_output(cmd_pars).decode("utf-8")

logger.info("Reading CellBender 10xh5 output file: '%s'", output_file)
# have to use custom read_10x_h5 function for now
# will be fixed when https://github.com/scverse/scanpy/pull/2344 is merged
# adata_out = sc.read_10x_h5(output_file, gex_only=False)
adata_out = anndata_from_h5(output_file, analyzed_barcodes_only=False)

logger.info("CellBender output format:", adata_out)
Expand Down
1 change: 0 additions & 1 deletion src/correction/cellbender_remove_background/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
# check if file exists
assert path.exists("output.h5mu"), "No output was created."

# read it with scanpy
data = mu.read_h5mu("output.h5mu")

# check whether gex was found
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ platforms:
- type: python
packages:
- muon~=0.1.4
- scanpy~=1.9.2
- type: nextflow
directives:
label: [gpu]
4 changes: 1 addition & 3 deletions src/dimred/pca/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ platforms:
packages:
- procps
- type: python
__merge__: [/src/base/requirements/anndata_mudata.yaml, .]
packages:
- scanpy~=1.9.2
__merge__: [/src/base/requirements/anndata_mudata.yaml, /src/base/requirements/scanpy.yaml, .]
test_setup:
- type: python
__merge__: [ /src/base/requirements/viashpy.yaml, .]
Expand Down
4 changes: 1 addition & 3 deletions src/dimred/umap/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ platforms:
packages:
- procps
- type: python
__merge__: [/src/base/requirements/anndata_mudata.yaml, .]
packages:
- scanpy~=1.9.2
__merge__: [/src/base/requirements/anndata_mudata.yaml, /src/base/requirements/scanpy.yaml, .]
test_setup:
- type: python
__merge__: [ /src/base/requirements/viashpy.yaml, .]
Expand Down
3 changes: 1 addition & 2 deletions src/filter/filter_with_hvg/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,8 @@ platforms:
image: python:3.9
setup:
- type: python
__merge__: [/src/base/requirements/anndata_mudata.yaml, .]
__merge__: [/src/base/requirements/anndata_mudata.yaml, /src/base/requirements/scanpy.yaml, .]
packages:
- scanpy~=1.9.2
- scikit-misc
test_setup:
- type: python
Expand Down
3 changes: 1 addition & 2 deletions src/filter/filter_with_scrublet/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,8 @@ platforms:
- procps
- build-essential
- type: python
__merge__: [/src/base/requirements/anndata_mudata.yaml, .]
__merge__: [/src/base/requirements/anndata_mudata.yaml, /src/base/requirements/scanpy.yaml, .]
packages:
- scanpy~=1.9.2
- scrublet
- annoy==1.16.3
test_setup:
Expand Down
3 changes: 1 addition & 2 deletions src/integrate/harmonypy/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,9 @@ platforms:
packages:
- procps
- type: python
__merge__: [/src/base/requirements/anndata_mudata.yaml, .]
__merge__: [/src/base/requirements/anndata_mudata.yaml, /src/base/requirements/scanpy.yaml, .]
packages:
- harmonypy~=0.0.6
- scanpy~=1.9.2
test_setup:
- type: python
__merge__: [ /src/base/requirements/viashpy.yaml, .]
Expand Down
3 changes: 1 addition & 2 deletions src/integrate/scanorama/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,8 @@ platforms:
- procps
- build-essential
- type: python
__merge__: [/src/base/requirements/anndata_mudata.yaml, .]
__merge__: [/src/base/requirements/anndata_mudata.yaml, /src/base/requirements/scanpy.yaml, .]
packages:
- scanpy~=1.9.2
- scanorama
test_setup:
- type: python
Expand Down
4 changes: 1 addition & 3 deletions src/integrate/scvi/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,7 @@ platforms:
run: |
pip install "jax[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
- type: python
__merge__: [/src/base/requirements/anndata_mudata.yaml, .]
packages:
- scanpy~=1.9.2
__merge__: [/src/base/requirements/anndata_mudata.yaml, /src/base/requirements/scanpy.yaml, .]
- type: python
upgrade: false
packages:
Expand Down
2 changes: 1 addition & 1 deletion src/labels_transfer/knn/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ platforms:
- liblapack-dev
- gfortran
- type: python
__merge__: [/src/base/requirements/scanpy.yaml, .]
packages:
- pynndescent~=0.5.8
- numba~=0.56.4
- numpy~=1.23.5
- scanpy~=1.9.1
test_setup:
- type: python
__merge__: [ /src/base/requirements/viashpy.yaml, .]
Expand Down
2 changes: 1 addition & 1 deletion src/labels_transfer/xgboost/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@ platforms:
- liblapack-dev
- gfortran
- type: python
__merge__: [/src/base/requirements/scanpy.yaml, .]
packages:
- xgboost~=1.7.1
- scikit-learn~=1.1.1
- numpy~=1.23.5
- scanpy~=1.9.1
- pandas~=1.4.4
test_setup:
- type: python
Expand Down
3 changes: 1 addition & 2 deletions src/neighbors/bbknn/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ platforms:
- procps
- build-essential
- type: python
__merge__: [/src/base/requirements/anndata_mudata.yaml, .]
__merge__: [/src/base/requirements/anndata_mudata.yaml, /src/base/requirements/scanpy.yaml, .]
packages:
- scanpy~=1.9.2 # Will result in NameError: name 'logg' is not defined otherwise
- bbknn
- scikit-learn~=1.2.2
test_setup:
Expand Down
4 changes: 1 addition & 3 deletions src/neighbors/find_neighbors/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@ platforms:
packages:
- procps
- type: python
__merge__: [/src/base/requirements/anndata_mudata.yaml, .]
packages:
- scanpy~=1.9.2
__merge__: [/src/base/requirements/anndata_mudata.yaml, /src/base/requirements/scanpy.yaml, .]
test_setup:
- type: python
__merge__: [ /src/base/requirements/viashpy.yaml, .]
Expand Down
4 changes: 1 addition & 3 deletions src/process_10xh5/filter_10xh5/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ platforms:
- type: apt
packages: libhdf5-dev python3-pip python3-dev
- type: python
__merge__: [/src/base/requirements/anndata_mudata.yaml, .]
packages:
- scanpy~=1.9.2
__merge__: [/src/base/requirements/anndata_mudata.yaml, /src/base/requirements/scanpy.yaml, .]
- type: r
cran: [ testthat, anndata, hdf5r ]
- type: nextflow
Expand Down
4 changes: 1 addition & 3 deletions src/qc/calculate_qc_metrics/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,7 @@ platforms:
- scikit-learn~=1.2.0
test_setup:
- type: python
__merge__: [ /src/base/requirements/viashpy.yaml, .]
packages:
- scanpy~=1.9.2
__merge__: [ /src/base/requirements/viashpy.yaml, /src/base/requirements/scanpy.yaml, .]
- type: nextflow
directives:
label: [singlecpu, midmem]
3 changes: 1 addition & 2 deletions src/transform/clr/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@ platforms:
packages:
- procps
- type: python
__merge__: [/src/base/requirements/anndata_mudata.yaml, .]
__merge__: [/src/base/requirements/anndata_mudata.yaml, /src/base/requirements/scanpy.yaml, .]
packages:
- muon~=0.1.5
- scanpy~=1.9.2
test_setup:
- type: python
__merge__: [ /src/base/requirements/viashpy.yaml, .]
Expand Down
4 changes: 1 addition & 3 deletions src/transform/log1p/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ platforms:
packages:
- procps
- type: python
__merge__: [/src/base/requirements/anndata_mudata.yaml, .]
packages:
- scanpy~=1.9.2
__merge__: [/src/base/requirements/anndata_mudata.yaml, /src/base/requirements/scanpy.yaml, .]
test_setup:
- type: python
__merge__: [ /src/base/requirements/viashpy.yaml, .]
Expand Down
4 changes: 1 addition & 3 deletions src/transform/normalize_total/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ platforms:
- libhdf5-dev
- procps
- type: python
__merge__: [/src/base/requirements/anndata_mudata.yaml, .]
packages:
- scanpy~=1.9.2
__merge__: [/src/base/requirements/anndata_mudata.yaml, /src/base/requirements/scanpy.yaml, .]
test_setup:
- type: python
__merge__: [ /src/base/requirements/viashpy.yaml, .]
Expand Down
4 changes: 1 addition & 3 deletions src/transform/regress_out/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ platforms:
packages:
- procps
- type: python
__merge__: [/src/base/requirements/anndata_mudata.yaml, .]
packages:
- scanpy~=1.9.2
__merge__: [/src/base/requirements/anndata_mudata.yaml, /src/base/requirements/scanpy.yaml, .]
test_setup:
- type: python
__merge__: [ /src/base/requirements/viashpy.yaml, .]
Expand Down
4 changes: 1 addition & 3 deletions src/transform/scaling/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ platforms:
- libhdf5-dev
- procps
- type: python
__merge__: [/src/base/requirements/anndata_mudata.yaml, .]
packages:
- scanpy~=1.9.2
__merge__: [/src/base/requirements/anndata_mudata.yaml, /src/base/requirements/scanpy.yaml, .]
test_setup:
- type: python
__merge__: [ /src/base/requirements/viashpy.yaml, .]
Expand Down
3 changes: 1 addition & 2 deletions src/velocity/velocyto_to_h5mu/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,8 @@ platforms:
packages:
- procps
- type: python
__merge__: [/src/base/requirements/anndata_mudata.yaml, .]
__merge__: [/src/base/requirements/anndata_mudata.yaml, /src/base/requirements/scanpy.yaml, .]
packages:
- scanpy~=1.9.2
- loompy
- type: nextflow
directives:
Expand Down

0 comments on commit b41a658

Please sign in to comment.