Skip to content

Commit 51552a4

Browse files
committed
removed scaling from cytovi
1 parent 328929e commit 51552a4

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

src/methods/cytovi/script.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,30 +34,22 @@
3434

3535
adata_to_correct = adata[:, markers_to_correct].copy()
3636

37-
print("Scaling data", flush=True)
38-
39-
# scale data. this will add a layer "scaled" to the anndata
40-
cytovi.pp.scale(
41-
adata=adata_to_correct,
42-
transformed_layer_key="preprocessed",
43-
batch_key="batch_str",
44-
inplace=True,
45-
)
46-
4737
print(
4838
f"Train CytoVI on {adata_to_correct.shape[0]} cells",
4939
flush=True,
5040
)
5141

5242
cytovi.CytoVI.setup_anndata(
53-
adata_to_correct, layer="scaled", batch_key="batch_str", sample_key="sample_key_str"
43+
adata_to_correct,
44+
layer="preprocessed",
45+
batch_key="batch_str",
46+
sample_key="sample_key_str",
5447
)
5548

5649
model = cytovi.CytoVI(
5750
adata_to_correct, n_hidden=par["n_hidden"], n_layers=par["n_layers"]
5851
)
5952

60-
6153
print("Start training CytoVI model", flush=True)
6254
model.train()
6355

0 commit comments

Comments
 (0)