File tree Expand file tree Collapse file tree
modules/nf-core/scvitools Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,4 +4,4 @@ channels:
44 - conda-forge
55 - bioconda
66dependencies :
7- - conda-forge::scvi-tools=1.3 .3
7+ - conda-forge::scvi-tools=1.4 .3
Original file line number Diff line number Diff line change @@ -3,9 +3,10 @@ process SCVITOOLS_SCAR {
33 label ' process_medium'
44
55 conda " ${ moduleDir} /environment.yml"
6- container " ${ workflow.containerEngine in ['singularity', 'apptainer'] && !task.ext.singularity_pull_docker_container ?
7- 'https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/c8/c8764e4208e9639a54d636fc65c839c55dedbfd68def57baea90d1d2007d6a7f/data':
8- 'community.wave.seqera.io/library/scvi-tools:1.3.3--df115aabdccb7d6b' } "
6+ container " ${ task.ext.use_gpu ? 'ghcr.io/scverse/scvi-tools:py3.13-cu12-1.4.3-' :
7+ workflow.containerEngine in ['singularity', 'apptainer'] && !task.ext.singularity_pull_docker_container ?
8+ 'https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/df/dfb4b54fd5cb5c5624d947914f5ab8ac86eeaa5f762ebc52c034fbd36cf30250/data':
9+ 'community.wave.seqera.io/library/scvi-tools:1.4.3--cce8c95b58ececa6' } "
910
1011 input:
1112 tuple val(meta), path(filtered), path(unfiltered)
@@ -16,7 +17,7 @@ process SCVITOOLS_SCAR {
1617
1718 output:
1819 tuple val(meta), path(" *.h5ad" ), emit: h5ad
19- path " versions.yml" , emit: versions
20+ path " versions.yml" , emit: versions, topic: versions
2021
2122 when:
2223 task. ext. when == null || task. ext. when
Original file line number Diff line number Diff line change @@ -69,6 +69,11 @@ output:
6969 pattern : " versions.yml"
7070 ontologies :
7171 - edam : http://edamontology.org/format_3750 # YAML
72+ topics :
73+ versions :
74+ - versions.yml :
75+ type : string
76+ description : The name of the process
7277authors :
7378 - " @nictru"
7479maintainers :
Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
22
3+ import os
4+
5+ os .environ .setdefault ("TORCHINDUCTOR_CACHE_DIR" , os .path .join (os .getcwd (), "torch_cache" ))
6+
37import anndata as ad
48import scvi
59import yaml
1115
1216scvi .settings .seed = 0
1317
14-
1518adata = ad .read_h5ad ("${filtered}" )
1619adata_unfiltered = ad .read_h5ad ("${unfiltered}" )
1720
Original file line number Diff line number Diff line change 22 " Should run with default parameters" : {
33 " content" : [
44 [
5- " versions.yml:md5,295715b77d88ad6a0f3d4299311b7c3e "
5+ " versions.yml:md5,b495dbf7249184fe0484e98f0e1d46b4 "
66 ],
77 " test.h5ad"
88 ],
1515 " Should run from X to X" : {
1616 " content" : [
1717 [
18- " versions.yml:md5,295715b77d88ad6a0f3d4299311b7c3e "
18+ " versions.yml:md5,b495dbf7249184fe0484e98f0e1d46b4 "
1919 ],
2020 " test.h5ad"
2121 ],
3737 ]
3838 ],
3939 " 1" : [
40- " versions.yml:md5,f6c25be06bfb18cdf3e82e50985d9a9b "
40+ " versions.yml:md5,f906fc3c61697a5598dbdf6d62572fe4 "
4141 ],
4242 " h5ad" : [
4343 [
4848 ]
4949 ],
5050 " versions" : [
51- " versions.yml:md5,f6c25be06bfb18cdf3e82e50985d9a9b "
51+ " versions.yml:md5,f906fc3c61697a5598dbdf6d62572fe4 "
5252 ]
5353 }
5454 ],
6161 " Should run with custom input and output layers" : {
6262 " content" : [
6363 [
64- " versions.yml:md5,295715b77d88ad6a0f3d4299311b7c3e "
64+ " versions.yml:md5,b495dbf7249184fe0484e98f0e1d46b4 "
6565 ],
6666 " test.h5ad"
6767 ],
Original file line number Diff line number Diff line change 33import os
44
55os .environ ["MPLCONFIGDIR" ] = "./tmp"
6+ os .environ .setdefault ("TORCHINDUCTOR_CACHE_DIR" , os .path .join (os .getcwd (), "torch_cache" ))
67
78import anndata as ad
89import scvi
You can’t perform that action at this time.
0 commit comments