Skip to content

Commit f39afa9

Browse files
committed
Fix lint: remove extraneous f-prefix, use igraph flavor for T cell Leiden
1 parent 2c916dc commit f39afa9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

scripts/07_t_cell_subclustering.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ def subcluster_t_cells(adata):
2727
# Recompute neighbours and UMAP on T cell subset
2828
sc.pp.neighbors(adata_t, n_neighbors=15, n_pcs=20)
2929
sc.tl.umap(adata_t, random_state=42)
30-
sc.tl.leiden(adata_t, resolution=0.5, key_added="t_subcluster", random_state=42)
30+
sc.tl.leiden(adata_t, resolution=0.5, key_added="t_subcluster",
31+
flavor="igraph", n_iterations=2, directed=False, random_state=42)
3132

3233
# Score for CD4 vs CD8
3334
available = set(adata_t.raw.var_names) if adata_t.raw else set(adata_t.var_names)
@@ -85,7 +86,7 @@ def plot_subclustering(adata_t):
8586
use_raw=True, return_fig=True)
8687
fig_dot.savefig(FIG_DIR / "07_t_cell_markers.png", dpi=150, bbox_inches="tight")
8788
plt.close("all")
88-
print(f"Saved T cell marker dotplot")
89+
print("Saved T cell marker dotplot")
8990

9091

9192
def main():

0 commit comments

Comments
 (0)