saezlab / liana

LIANA: a LIgand-receptor ANalysis frAmework
https://saezlab.github.io/liana/
GNU General Public License v3.0
176 stars 31 forks source link

liana_tensor_c2c Errors #157

Closed mainharryHR closed 2 months ago

mainharryHR commented 3 months ago

Dear everyone,

Thanks for great package. I am following the tutorial https://saezlab.github.io/liana/articles/liana_cc2tensor.html, But I encountered errors. My gut feeling is that this error might be related to the names between arguments. After rename, there is another errors:

_Building the tensor using LRs... Error in py_call_impl(callable, call_args$unnamed, callargs$named) : ValueError: Columns must be same length as key

Please help to figure out. Thank you all:)

sce <- liana_tensor_c2c(sce = Sce, score_col = 'LRscore', rank = NULL, how='outer', conda_env = NULL, use_available = FALSE )

_Error in py_call_impl(callable, call_args$unnamed, callargs$named) : ValueError: Expected a 1D array, got an array with shape (0, 5)

reticulate::py_last_error() KeyError: 'LRs'

dbdimitrov commented 3 months ago

Perhaps, it's best if you follow the notebook I referred you to in the other issue. It seems here that there might be some issue with the liana results stored in the sce object.

Let me know if following the other notebook fixes the issue.

Best wishes, Daniel