CrossTalkeR icon indicating copy to clipboard operation
CrossTalkeR copied to clipboard

Group comparison

Open JDavies95 opened this issue 4 years ago • 2 comments

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!

JDavies95 avatar Apr 22 '21 10:04 JDavies95

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

jsnagai avatar Apr 28 '21 17:04 jsnagai

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

zhanglab2008 avatar May 07 '21 21:05 zhanglab2008