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

ValueError: operands could not be broadcast together with shapes #43

Open
Dannyxu123 opened this issue Oct 19, 2023 · 2 comments
Open

Comments

@Dannyxu123
Copy link

Hi! It's a really nice software to work with. I've been using it on windows with my laptop and it works fine. However, when I turned to use scFEA on MAC OS, I always encountered bugs as bellow:

Traceback (most recent call last):File"/Users/yuhaihui/scFEA/src/scFEA.py",line 370,in
main(args)
File "/Users/yuhaihui/scFEA/src/scFEA.py",line 184,in mainmodule scale = torch,FloatTensor(module scale.values/ moduleLen

ValueError: operands could not be broadcast together with shapes (0,9) (168, )

I am very glad to receive help of any kind from you.

@paolabc
Copy link

paolabc commented Oct 19, 2023

Hi

I had a similar error in my analysis when I was using danio rerio data files retrieve from their website. In my case, it is match string issue. I have gene symbol in my data. The module info file brings gene as EntrezID.

This error appesar for me since there is no match between my single gene expression data and their module info file. In my case, there is an empty object after gene_overlap variable.

    gene_overlap = list(data_gene_all.intersection(module_gene_all))   # fix , it is empty
    print('gene_overlap',gene_overlap)
    #geneoverlap should be non zero, have gene names;

I am convert these entrezID to gene symbol in their module info file, and I will run again.

Hope it can help.
Paola

@YZJenny
Copy link

YZJenny commented May 17, 2024

Hi
I had the same problem. After checking the author's test data “Melissa_full.csv”, I found that the single-cell data was in.csv format, so when I wrote my single-cell data in read.csv instead of the original read.table, the program could run normally.

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

3 participants