Skip to content

Commit 99395ec

Browse files
committed
add epsilon and change defaults
1 parent f1240b7 commit 99395ec

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

src/methods_cell_type_annotation/moscot/config.vsh.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ arguments:
1919
direction: input
2020
type: double
2121
default: 0.8
22+
- name: --epsilon
23+
required: false
24+
direction: input
25+
type: double
26+
default: 0.01
2227
- name: --tau
2328
required: false
2429
direction: input

src/methods_cell_type_annotation/moscot/script.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
'output': 'spatial_with_celltypes.h5ad',
1515
'celltype_key': 'cell_type',
1616
'alpha': 0.8,
17+
'epsilon': 0.01,
1718
'tau': 1.0,
1819
'rank': -1,
1920
'mapping_mode': 'max',
@@ -44,15 +45,14 @@
4445
# Define mapping problem
4546
mp = MappingProblem(adata_sc=adata_sc, adata_sp=adata_sp)
4647

47-
# TODO: check parameters: sc_attr, xy_callback, x_callback, y_callback
4848
mp = mp.prepare(
49-
sc_attr={"attr": "obsm", "key": "X_pca"},
49+
sc_attr={"attr": "layers", "key": "normalized"},
5050
xy_callback="local-pca",
5151
)
5252

5353
mp = mp.solve(
5454
alpha=par['alpha'],
55-
epsilon=0.01,
55+
epsilon=par['epsilon'],
5656
tau_a=par['tau'],
5757
tau_b=par['tau'],
5858
rank=par['rank'],

0 commit comments

Comments
 (0)