You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The liana_tensor_c2c took 4.5 hours to run but failed with the error: 'PreBuiltTensor' object has no attribute 'elbow_metric_raw' . But the code of liana_tensor_c2c showed that elbow_metric_raw should be something that is defined right here in this step. Why would this happen?
sce <- liana_tensor_c2c(sce = sce,
score_col = 'LRscore',
rank = NULL, # set to NULL to estimate for you data!
how='outer', # defines how the tensor is built
conda_env = "liana_env", # used to pass an existing conda env with cell2cell
use_available = FALSE # detect & load cell2cell if available
)
[1] 0
Loading liana_env Conda Environment
Building the tensor using LRscore...
Estimating ranks...
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 25/25 [4:37:40<00:00, 666.43s/it]
The rank at the elbow is: 3
Error in py_get_attr(x, name) :
AttributeError: 'PreBuiltTensor' object has no attribute 'elbow_metric_raw'
Run reticulate::py_last_error() for details.
reticulate::py_last_error()
── Python Exception Message ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
AttributeError: 'PreBuiltTensor' object has no attribute 'elbow_metric_raw'
── R Traceback ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
▆
I think there is a bug in the code for rank estimation. I tried with the above estimate rank 3, and the function reported no errors. It seems that the estimated rank, elbow_metric_raw, is not assigned to the tensor, but an undefined/unused orphan variable py$temp. Please check the code liana_tensor_c2c.
Dear authors,
The liana_tensor_c2c took 4.5 hours to run but failed with the error: 'PreBuiltTensor' object has no attribute 'elbow_metric_raw' . But the code of liana_tensor_c2c showed that elbow_metric_raw should be something that is defined right here in this step. Why would this happen?
── Python Exception Message ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
AttributeError: 'PreBuiltTensor' object has no attribute 'elbow_metric_raw'
── R Traceback ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
▆
$.python.builtin.object
(tensor, "elbow_metric_raw")See
reticulate::py_last_error()$r_trace$full_call
for more details.The text was updated successfully, but these errors were encountered: