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
{{ message }}
Repository navigation
AttributeError: module 'virtualenv.create.via_global_ref.builtin.cpython.mac_os' has no attribute 'CPython2macOsFramework #36
While creating environment I get the following error: Can you please help?
pipenv install
Creating a virtualenv for this project...
Pipfile: /home/subudhak/Documents/zena_scrnaseq_singleR/extra_analysis_June2023/Margaret/Pipfile
Using /usr/bin/python3.8 (3.8.10) to create virtualenv...
⠏ Creating virtual environment...AttributeError: module 'virtualenv.create.via_global_ref.builtin.cpython.mac_os' has no attribute 'CPython2macOsFramework'
✘ Failed creating virtual environment
[pipenv.exceptions.VirtualenvCreationException]:
Failed to create virtual environment.
Hi I tried installation of individual dependencies for Margaret but there seems to be conflict between the packages used by Margaret and additional packages used in the tutorial. Truth be told, it has become a nightmare and it's been over 4 days and I am unable to figure out what should be done. Besides, your Dockerfile is empty (please remove it in next update or populate it, that would be helpful).
mamba create -n margaret -c conda-forge -c bioconda -c hcc -c grst c-blosc2 click cython dca gprofiler-official hnswlib jupyter notebook leidenalg louvain matplotlib mygene msgpack-python numpy numexpr pandas phate phenograph pybind11 pygam python-igraph pytorch scanpy scikit-learn scipy sh termcolor tqdm umap-learn -y
mamba activate margaret
pip install palantir #Note: It downgrades pandas 2.0.3 to 1.5.8
pip install magic-impute ## install this package using pip coz the high priority channel conda-forge otherwise download wrong magic package
Edit 1: I think from utils.util import run_pcahere must be changed to from margaret.utils.util import run_pca when user is running the notebook from git cloned Margaret directory because it is not straightforward for first timers to know if run_pca is a function of utils package.
Edit 2: If you are using method above using latest python 3.11, make the following changes in the util.py script. Line 191 change np.int to np.int_. Also watch out here
Edit 3: Is X_met_embedding same as metric_embedding because while following your tutorial and when I try plotting connectivity graph, I get the following error:
Activity
Rohit-Satyam commentedon Jun 26, 2023
Hi I tried installation of individual dependencies for Margaret but there seems to be conflict between the packages used by Margaret and additional packages used in the tutorial. Truth be told, it has become a nightmare and it's been over 4 days and I am unable to figure out what should be done. Besides, your Dockerfile is empty (please remove it in next update or populate it, that would be helpful).
Rohit-Satyam commentedon Jul 2, 2023
Currently managing the dependencies like this:
Edit 1: I think
from utils.util import run_pcahere must be changed tofrom margaret.utils.util import run_pcawhen user is running the notebook from git cloned Margaret directory because it is not straightforward for first timers to know if run_pca is a function of utils package.Edit 2: If you are using method above using latest python 3.11, make the following changes in the
util.pyscript. Line 191 changenp.inttonp.int_. Also watch out hereEdit 3: Is
X_met_embeddingsame asmetric_embeddingbecause while following your tutorial and when I try plotting connectivity graph, I get the following error:Edit 4: Use of this PCA calculation code chunk?
When using
magic_key=X_magic_pcain theplot_connectivity_graph_with_gene_expressionsfunction (see trajectory Visualization), I get an errorI ended up using
all_genesrather thanpca_only