Deleted:ValueError showing up when trying to compute neighborhood graph and Leiden clustering
0
0
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?

python scRNA Scanpy analysis • 515 views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 2362 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6