Skip to content

Commit 4eb4383

Browse files
Expimap Intr_cvae now use condition_col instead of batch_col, dependencies changed a bit
1 parent b17692e commit 4eb4383

File tree

7 files changed

+14
-11
lines changed

7 files changed

+14
-11
lines changed

modules/local/scarches/expimap/environment.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ channels:
22
- conda-forge
33
- bioconda
44
dependencies:
5-
- python=3.14
65
- pip
76
- pip:
8-
- scArches==0.6.1
9-
- anndata==0.9.2
7+
- scArches=0.6.1

modules/local/scarches/expimap/main.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ process SCARCHES_EXPIMAP {
1010
input:
1111
tuple val(meta), path(h5ad, arity: 1)
1212
tuple val(meta2), path(reference_model)
13-
val(batch_col)
13+
val(condition_col)
1414
val(counts_layer)
1515

1616
output:

modules/local/scarches/expimap/templates/expimap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
# Initialization of the model with the reference network
3333
intr_cvae = sca.models.EXPIMAP(
3434
adata=adata_processing,
35-
condition_key="${batch_col}",
35+
condition_key="${condition_col}",
3636
hidden_layer_sizes=[256, 256, 256],
3737
recon_loss="nb"
3838
)

modules/local/scarches/expimap/tests/main.nf.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ nextflow_process {
2525
file("${projectDir}/assets/databases/expimap/pathways.gmt", checkIfExists: true)
2626
]
2727
)
28-
input[2] = 'sample'
28+
input[2] = 'condition'
2929
input[3] = 'X'
3030
"""
3131
}
@@ -62,7 +62,7 @@ nextflow_process {
6262
]
6363
)
6464
input[1] = [[], []]
65-
input[2] = 'sample'
65+
input[2] = 'condition'
6666
input[3] = 'X'
6767
"""
6868
}

subworkflows/local/combine/main.nf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ workflow COMBINE {
1717
scvi_continuous_covariates // value: string
1818
scimilarity_model // value: string
1919
expimap_gmt // value: string
20+
condition_col // value: string
2021

2122
main:
2223

@@ -49,7 +50,8 @@ workflow COMBINE {
4950
scvi_categorical_covariates,
5051
scvi_continuous_covariates,
5152
scimilarity_model,
52-
expimap_gmt
53+
expimap_gmt,
54+
condition_col
5355
)
5456
ch_versions = ch_versions.mix(INTEGRATE.out.versions)
5557
ch_var = ch_var.mix(INTEGRATE.out.var)

subworkflows/local/integrate/main.nf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ workflow INTEGRATE {
2525
scvi_continuous_covariates // list of string
2626
scimilarity_model // path
2727
expimap_gmt // path
28+
condition_col // string
2829

2930
main:
3031
ch_versions = channel.empty()
@@ -155,7 +156,7 @@ workflow INTEGRATE {
155156
expimap_gmt
156157
? channel.value([[id: 'expimap'], file(expimap_gmt, checkIfExists: true)])
157158
: channel.value([[id: 'expimap'], file("${projectDir}/assets/databases/expimap/pathways.gmt", checkIfExists: true)]),
158-
"batch",
159+
condition_col,
159160
"X"
160161
)
161162
ch_versions = ch_versions.mix(SCARCHES_EXPIMAP.out.versions)

workflows/scdownstream.nf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ workflow SCDOWNSTREAM {
155155
//
156156
// Combine samples and perform integration
157157
//
158+
grouping_col = "label"
159+
condition_col = "condition"
160+
158161
COMBINE (
159162
ch_h5ad,
160163
ch_base,
@@ -168,6 +171,7 @@ workflow SCDOWNSTREAM {
168171
scvi_continuous_covariates,
169172
scimilarity_model,
170173
expimap_gmt,
174+
condition_col,
171175
)
172176
ch_versions = ch_versions.mix(COMBINE.out.versions)
173177
ch_obs = ch_obs.mix(COMBINE.out.obs)
@@ -177,8 +181,6 @@ workflow SCDOWNSTREAM {
177181
ch_finalization_base = COMBINE.out.h5ad
178182

179183
ch_label_grouping = COMBINE.out.h5ad_inner
180-
grouping_col = "label"
181-
condition_col = "condition"
182184
}
183185
}
184186
else {

0 commit comments

Comments
 (0)