xuranw / MuSiC

Multi-subject Single Cell Deconvolution
https://github.com/xuranw/MuSiC
GNU General Public License v3.0
231 stars 92 forks source link

Error in colMeans(S, na.rm = TRUE) : 'x' must be an array of at least two dimensions #47

Open lila167 opened 4 years ago

lila167 commented 4 years ago

Hi,

I wonder what sampleID is in your analysis. Does it refer to the batches? In my sc data, I only have one batch (replica). So, I set the sampleID to 1 for all cells. However, I got the following error: Error in colMeans(S, na.rm = TRUE) : 'x' must be an array of at least two dimensions

If I set sampleID=cell_ID, then the deconvolution works but I am not sure if this is right.

Thanks for your help

jmuribes commented 3 years ago

Hi! Interested to know if this got solved? I'm encountering the same problem. Thanks!

jmuribes commented 3 years ago

Solved it by splitting cells into "pseudosamples" and creating a "sampleID" column. Saw this in another issue here.