Closed neurOnur closed 2 years ago
Hi!
First, it seems that there is a typo in your import statement. It should be from sccoda.util import comp_ana as mod
or import sccoda.util.comp_ana as mod
instead of from sccoda.util.comp_ana import comp_ana as mod
.
From the list of installed packages, I can also see that you did not install all the dependencies of scCODA
. I suppose that your kernel crashes because of this.
Please install the packages via pip, as described in the installation guide.
Thanks! I managed to get it going on the linux server using a fresh environment with python 3.8 as recommended. I am not sure if this was the reason as it may be working well with later installations as well. Something in my environment was causing a problem (the typo was only on github).
(Note: I used pip install --use-feature=2020-resolver sccoda
for installation)
It still does not run on my macbook, but I believe this is some sort of a Tensorflow - M1 issue unrelated to scCODA.
Hi @neurOnur
there is a Mac-optimized Tensorflow version for the Apple M1 chip. I found the following tutorial to install tensorflow for Mac using Miniforge
(not Anaconda
).
https://github.com/apple/tensorflow_macos/issues/153
However, the installation of tensorflow-probability
was not straightforward to me (as it requires a custom build of bazel
), and I could not successfully install scanpy
using Miniforge
on my Mac with M1 chip.
For now, until there is full support of tensorflow and tensorflow-probability for the M1 chip from Apple, I suggest that you resort to a different computer (or Google Colabs).
Hi @mbuttner, Thanks a lot, I indeed installed miniforge and tried to run sccoda, but couldn't finish the installation for a few reasons. It is still good to hear that it was the reasonable path to follow. For now the linux installation is doing the job for me, and I feel the best solution to all Apple M1 (I still love it) problems is simply to wait patiently
I installed scCODA (pip install sccoda) without any problem/warning and performed the basic analysis following the getting started tutorial, until the model setup and inference. Unfortunately I cannot import sccoda.util.comp_ana function into python. Following the tutorial:
doesn't work for my python installation (conda, python 3.9), thus I used
successfully. When I try to import comp_ana using:
import sccoda.util.comp_ana as mod
The kernel crushes. If I import sccoda separately;
import sccoda
And look for the possible functions, but I only can see cell_composition_data and data_visualization, but not comp_ana
comp_ana.py is under the sccoda/util folder where it is supposed to be. I am not sure what exactly the problem is, but somehow comp_ana is 'invisible'.
I have a Macbook pro M1 with 8-core, my environment details are:
I have tried this on a linux server as well with identical results. Thanks for the time