We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 394a125 commit 7846780Copy full SHA for 7846780
1 file changed
src/methods_cell_type_annotation/tacco/script.py
@@ -29,14 +29,14 @@
29
adata_sc.X = adata_sc.layers['counts']
30
31
# Run tacco
32
-cell_type_assigment = tacco.tl.annotate(
+cell_type_assignment = tacco.tl.annotate(
33
adata=adata_sp,
34
reference=adata_sc,
35
annotation_key=par['celltype_key']
36
)
37
38
# 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
+cell_types = cell_type_assignment.columns
40
highest_score_idx = np.argmax(cell_type_assignment, axis=1)
41
adata_sp.obs[par['celltype_key']] = cell_types[highest_score_idx]
42
0 commit comments