Closed ImNotaGit closed 9 months ago
Hello @ImNotaGit,
The error message you received suggests that there might be an issue with how the data is being passed between python
and R
.
I often had problems with reticulate
and, similarly often, it was challenging to debug.
If reticulate
can be avoided, I would suggest running Ikarus
in plain python
.
Hi, I was having a simular issue! Have you tried using the copy method on the passed object? like this… adata = ikarus$data$preprocess_adata(adata$copy()) . It should fix the issue.
@CarloManenti Thank you for the comment. I will be closing this issue for now. Feel free to re-open if the suggested approach doesn't work.
I am trying to run ikarus from R with reticulate. To prepare the data I used this line following the tutorial:
This give the error:
BTW, I also wonder what preprocess_adata does internally. If not using this function, would a regular log-normalization (i.e. normalize by total UMI counts, multiplied by a scaling factor, then log-transform with a pseudocount) do the job?
I am using R 4.2.1, python 3.10.13. Since this seems to be an issue happening in python, below I list the python module versions installed: