Open vjcitn opened 6 months ago
Also looks like git is needed in container for sc.external.pp.magic(gene_matrix, solver="approximate")
141 from magic import MAGIC, __version__
142 except ImportError:
--> 143 raise ImportError(
144 "Please install magic package via `pip install --user "
145 "git+git://github.com/KrishnaswamyLab/MAGIC.git#subdirectory=python`"
146 )
I will take a look at these errors this weekend. Thanks for your patience!
Thanks for rapid response! Do you intend to put the container in a registry like dockerhub? I saw a size of 7.1GB on the image I made, so it seems reasonable to do this once the compatibility issues are sorted.
@vjcitn I've submitted a PR to address the issues you've encountered. After it is merged, you would need to wait until the latest version of SnapAtac2
is published to PyPi
(see: https://pypi.org/project/snapatac2/#history) and then re-run the docker image build step while changing the --build-arg SNAP_ATAC_VERSION=v2.6.*
.
I'm only a volunteer helping out with some Docker related things so I don't know about plans for publishing containers to Dockerhub. I will say it's probably best to either build them yourself or wait for official images to be published. The possibility of supply chain attacks makes it hard for me to recommend pulling from random docker repositories that happen to have snapatac2
images.
EDIT: As a short-term workaround in the top of any Jupyter
notebooks in a new cell you can run !pip install scanpy[scanorama, skmisc, magic, harmony]
, restart your python kernel, and then proceed to run the rest of the notebook's cells. Note that because this install step is not persisted, you would need to re-run it every time you start a new docker container.
this is being run within the recommended container
for
snap.pl.umap(data, color='leiden', interactive=False, height=500)