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

KeyError: 'cluster' after starting containers #1

Open
rchapple2 opened this issue Jan 23, 2024 · 1 comment
Open

KeyError: 'cluster' after starting containers #1

rchapple2 opened this issue Jan 23, 2024 · 1 comment

Comments

@rchapple2
Copy link

Hello,

I successfully ran CellphoneDB using the DEG method, and now I am trying to use the CellphoneDB_Viz Docker container. I keep getting a KeyError: 'cluster' error when loading the project. My column name in the DEGs.txt file is "cell_type" (which was how the jupyter notebook example was labeled), but I noticed that the celltype column of the degs_in_epithelials.tsv DEGs file (provided in the config.yml) was labeled "cluster". Could this be the issue? I changed the column name to 'cluster' in my DEGs file and recreated the Docker image, but this introduced new indexing errors. Could I get some assistance on how to proceed? Thanks.

Rich

@datasome
Copy link
Collaborator

Hi Rich,

Thank you for reaching out and for using CellphoneDB and CellphoneDB Viz.

Yes, CellphoneDB Viz is currently less flexible on column naming than CellphoneDB - I will try to improve it in time. The lack of cluster column in your DEGs.txt file was indeed the first problem you faced. One other thing to check is if you're providing a microenvironments file, it should contain columns: microenvironment and cell_type. If you still get errors, please could you include them in your message and I will comment. Many thanks.

Best,

Robert.

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