xuranw / MuSiC

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

Prop_comp_multi/Abs_diff_multi: Fix text annotation #73

Closed mschilli87 closed 3 years ago

mschilli87 commented 3 years ago

Without these fixes, Prop_comp_multi and Abs_diff_multi throw the following error:

Error: Aesthetics must be either length 1 or the same as the data (9): `label`

(see issue #52).

The solution for Prop_comp_multi (see 0da621caf044b10fc2b53538261ea3ade4c37984) was suggested by @mxcai here. The adjustments to Abs_diff_multi (see e4f72c96bbff1fb2d9c67153c4084698e45c538b) were added by me but are conceptually based on @mxcai's work.