xuranw / MuSiC

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

Update music2.R #104

Closed xoelmb closed 10 months ago

xoelmb commented 1 year ago

Add a patch to include missing column cluster names in predictions from music_prop, filled with 0

When the results from music_prop do not contain the same column names as unique cluster classes in the SCE object, the operations between matrices will fail because MOD0, e.g., is created using n_cells (the number of cluster classes), but mod0 is created using proportions of music_prop.

Not sure this is the way to solve it, just proposing a workaround, which I haven't fully tested.