Skip to content

Commit 7846780

Browse files
committed
fix typo
1 parent 394a125 commit 7846780

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/methods_cell_type_annotation/tacco

src/methods_cell_type_annotation/tacco/script.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@
2929
adata_sc.X = adata_sc.layers['counts']
3030

3131
# Run tacco
32-
cell_type_assigment = tacco.tl.annotate(
32+
cell_type_assignment = tacco.tl.annotate(
3333
adata=adata_sp,
3434
reference=adata_sc,
3535
annotation_key=par['celltype_key']
3636
)
3737

3838
# Tacco stores the cell type proportions in a n_obs x n_celltypes matrix, so we have to extract the celltype with highest consensus
39-
cell_types = cell_type_assigment.columns
39+
cell_types = cell_type_assignment.columns
4040
highest_score_idx = np.argmax(cell_type_assignment, axis=1)
4141
adata_sp.obs[par['celltype_key']] = cell_types[highest_score_idx]
4242

0 commit comments

Comments
 (0)