Entering edit mode
22 months ago
Emily
▴
70
Was running Scanpy to compute neighborhood graph and Leiden clustering
but got this error message:
ValueError: X_pca
does not have enough PCs. Rerun sc.pp.pca
with adjusted n_comps
.
Code: for adata in [adata_fish]: sc.pp.neighbors(adata, n_neighbors=10, n_pcs=50) sc.tl.leiden(adata)
Not sure how where it went wrong... do I need to write additional code?