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

AttributeError: 'tuple' object has no attribute 'dim' #5

Open
pensive-bubble opened this issue Jan 12, 2025 · 5 comments
Open

AttributeError: 'tuple' object has no attribute 'dim' #5

pensive-bubble opened this issue Jan 12, 2025 · 5 comments

Comments

@pensive-bubble
Copy link

Hello again,

I have run into a further error while trying to run disease critical network demo. Tuple object causing further issues.

DA93AA7A-AB70-483D-9D92-B557BCFBC94E

If you know how to fix this, it would be greatly appreciated!
Natasha

@kexinhuang12345
Copy link
Collaborator

Hi! are you using exactly the same code as in the demo? same model/gwas sumstats as well?

@pensive-bubble
Copy link
Author

Hi! are you using exactly the same code as in the demo? same model/gwas sumstats as well?

Hello! I wasn't, I was using my own GWAS, but I've just tried it with the same model/gwas sumstats and have run into the same error.

@skoc
Copy link
Collaborator

skoc commented Jan 17, 2025

Hi @pensive-bubble , can you make this small change and try again:

x_dict = {i: j[0] for i,j in x_dict.items()}

That line will be:
x_dict = {i: j[0][0] for i,j in x_dict.items()}

@pensive-bubble
Copy link
Author

Hi @pensive-bubble , can you make this small change and try again:

KGWAS/kgwas/utils.py

Line 461 in 68d6f60

x_dict = {i: j[0] for i,j in x_dict.items()}

That line will be:
x_dict = {i: j[0][0] for i,j in x_dict.items()}

Hello, I tried both on my GWAS and on the test one. I ended up with a fun new error.
Image

@Himanshu-at-bayer
Copy link

Hi team, I am also having the same error while running the sample code :(

Image

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

4 participants