Skip to content

Commit 9ecf0f2

Browse files
authored
Various fixes (#114)
* Make sure sc adata var names are unique * Adjust memory and time
1 parent 0e9e3ad commit 9ecf0f2

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

src/data_processors/process_dataset/script.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ def subsample_adata_group_balanced(adata, group_key, n_samples, seed=0):
180180
if adata.n_obs > N_MAX_SC:
181181
adata = adata[subsample_adata_group_balanced(adata, "cell_type", N_MAX_SC, seed=0)]
182182

183+
# Make the single-cell data gene names unique
184+
adata.var_names_make_unique()
185+
183186
# Subset single-cell and spatial data to shared genes
184187
sp_genes = sdata['transcripts']['feature_name'].unique().compute().tolist()
185188
sc_genes = adata.var["feature_name"].unique().tolist()

src/methods_cell_type_annotation/ssam/config.vsh.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ runners:
3636
- type: executable
3737
- type: nextflow
3838
directives:
39-
label: [ hightime, midcpu, midmem ]
39+
label: [ veryhightime, midcpu, midmem ]

src/methods_expression_correction/gene_efficiency_correction/config.vsh.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ runners:
3838
- type: executable
3939
- type: nextflow
4040
directives:
41-
label: [ midtime, lowcpu, lowmem ]
41+
label: [ midtime, lowcpu, midmem ]

src/metrics/similarity/config.vsh.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ runners:
101101
# Allows turning the component into a Nextflow module / pipeline.
102102
- type: nextflow
103103
directives:
104-
label: [midtime, highmem, midcpu]
104+
label: [midtime, veryhighmem, midcpu]

0 commit comments

Comments
 (0)