Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: 'Enterocyte mature' is not a valid category for 'louvain_r0.5_entero_sub' #80

Open
vincentxu199112 opened this issue Nov 15, 2021 · 1 comment

Comments

@vincentxu199112
Copy link

in code line “#Subcluster mature enterocytes
sc.tl.louvain(adata, restrict_to=('louvain_r0.5_entero_sub', ['Enterocyte mature']), resolution=0.25, key_added='louvain_r0.5_entero_mat_sub')”
i run ,appear error :ValueError: 'Enterocyte mature' is not a valid category for 'louvain_r0.5_entero_sub'

@LuckyMD
Copy link
Contributor

LuckyMD commented Nov 15, 2021

This line relies on you having renamed your clusters as indicated in the notebook. You can check what your cluster names are via adata.obs['louvain_r0.5_entero_sub'].value_counts(). The output of that will tell you what your clusters are called (and how many cells are in each cluster). You can then rename the 'Enterocyte matrue' string to the particular cluster you'd like to subcluster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants