saezlab / liana-py

LIANA+: an all-in-one framework for cell-cell communication
http://liana-py.readthedocs.io/
GNU General Public License v3.0
156 stars 21 forks source link

MOFA talk with multiple samples #101

Closed nicolebussola closed 3 months ago

nicolebussola commented 5 months ago

HI! First of all thanks for this great tool. I am trying to use LIANA to find CCC on a dataset with one condition but multiple samples. Thus, I am referring to the MOFAtalk tutorial (am I right?). However, when I try to create a multi-view structure with lrs_to_view and my sample_key (pt) I get the following error:

Screenshots image

dbdimitrov commented 5 months ago

Hi @nicolebussola,

Thanks for using LIANA :) I assume the error that you're getting has to do with the data that you are passing being a view rather than a copy. Perhaps, you could add .copy() when you subset to blood filt?

Let me know if this works!

Daniel