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

Group comparison #30

Open
JDavies95 opened this issue Apr 22, 2021 · 2 comments
Open

Group comparison #30

JDavies95 opened this issue Apr 22, 2021 · 2 comments

Comments

@JDavies95
Copy link

Hi, I am trying to do the analyse comparing disease to control but i keep receiving this error:

R[write to console]: Error in prcomp.default(all_both, center = TRUE, scale = TRUE) :
cannot rescale a constant/zero column to unit variance

Error in prcomp.default(all_both, center = TRUE, scale = TRUE) :
cannot rescale a constant/zero column to unit variance

Any advice on what I may be doing wrong?

Thanks!

@jsnagai
Copy link
Member

jsnagai commented Apr 28, 2021

@JDavies95 Are you using CellPhoneDB input to CrossTalkeR? How many cell types do you have? I need more details about what you have.

@zhanglab2008
Copy link

I came across exactly the same error in one of my comparison. I also want to know what happens. It seems it's due to the prcomp. Maybe all rows have the same variance?
https://stackoverflow.com/questions/40315227/how-to-solve-prcomp-default-cannot-rescale-a-constant-zero-column-to-unit-var

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