-
Notifications
You must be signed in to change notification settings - Fork 19
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: 'connectivities'
when running SAMAP()
#66
Comments
You have to process the datasets with SAM or load in data that has already been processed by another method. The common convention is that the neighborhood graph is stored in adata.obsp[‘connectivities’] the key error means that this graph is missing. Has the data been processed? |
Ah, I see it hasn’t been processed. Instead of loading the data into SAM objects please pass in the paths to the files. So instead of a dictionary of SAM objects, it should be a dictionary of file paths. |
Ah, I see -- that makes sense! It's working now that I passed in the dictionary of file paths. Thanks so much for your quick response. |
Hi @archavan |
Hi @xiangyupan, Instead of passing a dictionary of SAM objects, pass a dictionary of paths to h5ad files, like this:
|
Thank you very much @archavan |
Thanks for the SAMap package! I am using it to align amphioxus and human datasets. I am following the vignette, and I get a KeyError at the step of running the
SAMAP()
function that I am not sure I understand the source of. Does this mean that I need to use thekeys
argument to specify colum inadata.obs
to be used for clustering information?I first created the fasta-header to gene-id mapings
I start with unprocessed h5ad files that have (1) unprocessed counts and (2) metadata, including clustering information.
The I run:
which produces the following error:
The text was updated successfully, but these errors were encountered: