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

Too few dimensions in the tensor (issue) #57

Open
AtheerAS opened this issue Jun 6, 2024 · 1 comment
Open

Too few dimensions in the tensor (issue) #57

AtheerAS opened this issue Jun 6, 2024 · 1 comment

Comments

@AtheerAS
Copy link

AtheerAS commented Jun 6, 2024

Hi,
Thank you for developing this useful tool.

The code was working fine but my tensor.tensor.shap was (12, 0). I think this caused an issue in the following steps. When I tried to get the list of metadata for each tensor order/dimension, using this parameter:
metadata_dicts=[context_dict, ppi_functions, None, None]
I got this error message:
AssertionError: metadata_dicts should be of the same size as the number of orders/dimensions in the tensor
I changed the parameter to:
[context_dict, ppi_functions]

And got this error:
ValueError: Too few dimensions in the tensor

What do you think?

Thank you!

@earmingol
Copy link
Owner

From the shape (12, 0) it tells that you have 12 samples, but for some reason none LR pairs is being detected. This issue could be either when specifying the column for the cell types, or with the gene names in your data not matching the gene names in your list of LR pairs.

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