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

tfl.findNeighbors[adata_integrate] gives: KeyError: 'distances' #6

Open
oldvalley49 opened this issue Jun 3, 2024 · 1 comment
Open

Comments

@oldvalley49
Copy link

oldvalley49 commented Jun 3, 2024

Hi!
I was following the tutorial for integrating scRNA-seq data and scATAC-seq data using the dataset provided. However, I get the following error when I run the step: atac = tfl.findNeighbors(adata_integrate)


KeyError Traceback (most recent call last)
Cell In[21], line 1
----> 1 atac=tfl.findNeighbors(adata_integrate)

File ~/anaconda3/envs/scbean/lib/python3.8/site-packages/scbean/tools/transferLabel.py:23, in findNeighbors(adata)
21 ann_atac["pred_max_score"]=0.0
22 querycells = ann[ann['tech']=="atac"]['nid']
---> 23 dist=adata.uns['neighbors']['distances']
24 weights[weights.index]=np.ones(len(weights))
25 weights["Platelets"]=0.001

KeyError: 'distances'

Any help would be greatly appreciated!

@ZhangStudyHard
Copy link
Collaborator

ZhangStudyHard commented Jun 12, 2024

Hi!
Thank you for your email! In order to solve your problem, can you provide a description of the running environment or adata data, otherwise I can't answer your question, you can read the installation instructions carefully and install the latest version, if you still encounter the same problem, you can send me the adata data in the first step of the problem, I will see how to solve this problem.

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