Skip to main content

Setup environment

Setup of the conda environment for pySCENIC
Author

Maximilian Heeg

Published

November 28, 2022

The environments are needed on both your computer and on the TSCC. Here, we assuse you have already have a working conda on your system. If not, I recommend having a look at Mamba and Mambaforge.

Tip

I prefere using mamba instead of conda as this is a lot faster in resolving the package dependencies.

Create a YAML file

Create a file called env.yaml with the following content:

name: pyscenic
channels:
  - anaconda
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=conda_forge
  - _openmp_mutex=4.5=1_gnu
  - adjusttext=0.7.3.1=py_1
  - alabaster=0.7.12=py_0
  - anndata=0.7.8=py37h89c1867_1
  - arpack=3.7.0=hdefa2d7_2
  - attrs=21.4.0=pyhd8ed1ab_0
  - babel=2.9.1=pyh44b312d_0
  - backcall=0.2.0=pyh9f0ad1d_0
  - backports=1.0=py_2
  - backports.functools_lru_cache=1.6.4=pyhd8ed1ab_0
  - bleach=4.1.0=pyhd8ed1ab_0
  - blosc=1.21.0=h9c3ff4c_0
  - brotli=1.0.9=h7f98852_6
  - brotli-bin=1.0.9=h7f98852_6
  - brotlipy=0.7.0=py37h5e8e339_1003
  - bzip2=1.0.8=h7f98852_4
  - c-ares=1.18.1=h7f98852_0
  - ca-certificates=2021.10.8=ha878542_0
  - cached-property=1.5.2=hd8ed1ab_1
  - cached_property=1.5.2=pyha770c72_1
  - cffi=1.15.0=py37h036bc23_0
  - charset-normalizer=2.0.12=pyhd8ed1ab_0
  - colorama=0.4.4=pyh9f0ad1d_0
  - cryptography=36.0.1=py37hf1a17b8_0
  - curl=7.81.0=h2574ce0_0
  - cycler=0.11.0=pyhd8ed1ab_0
  - cytoolz=0.11.0=py37h7b6447c_0
  - debugpy=1.5.1=py37hcd2ae1e_0
  - decorator=5.1.1=pyhd8ed1ab_0
  - defusedxml=0.7.1=pyhd8ed1ab_0
  - docutils=0.17.1=py37h89c1867_1
  - dunamai=1.9.0=pyhd8ed1ab_0
  - entrypoints=0.4=pyhd8ed1ab_0
  - expat=2.4.6=h27087fc_0
  - fastcluster=1.1.26=py37he8f5f7f_3
  - fonttools=4.29.1=py37h5e8e339_0
  - freetype=2.10.4=h0708190_1
  - fribidi=1.0.10=h36c2ea0_0
  - get_version=3.5.4=pyhd8ed1ab_0
  - gettext=0.19.8.1=h73d1719_1008
  - giflib=5.2.1=h36c2ea0_2
  - git=2.35.0=pl5321hc30692c_0
  - glpk=4.65=h9202a9a_1004
  - gmp=6.2.1=h58526e2_0
  - h5py=3.6.0=nompi_py37hd308b1e_100
  - hdf5=1.12.1=nompi_h2750804_103
  - icu=69.1=h9c3ff4c_0
  - idna=3.3=pyhd8ed1ab_0
  - igraph=0.9.6=ha184e22_0
  - imagesize=1.3.0=pyhd8ed1ab_0
  - importlib_metadata=4.11.1=hd8ed1ab_0
  - importlib_resources=5.4.0=pyhd8ed1ab_0
  - ipykernel=6.9.1=py37h6531663_0
  - ipython=7.31.1=py37h89c1867_0
  - ipython_genutils=0.2.0=py_1
  - jbig=2.1=h7f98852_2003
  - jedi=0.18.1=py37h89c1867_0
  - jinja2=3.0.3=pyhd8ed1ab_0
  - joblib=1.1.0=pyhd8ed1ab_0
  - jpeg=9e=h7f98852_0
  - jsonschema=4.4.0=pyhd8ed1ab_0
  - jupyter_client=7.1.2=pyhd8ed1ab_0
  - jupyter_core=4.9.2=py37h89c1867_0
  - jupyterlab_pygments=0.1.2=pyh9f0ad1d_0
  - kiwisolver=1.3.2=py37h2527ec5_1
  - krb5=1.19.2=hcc1bbae_3
  - lcms2=2.12=hddcbb42_0
  - ld_impl_linux-64=2.36.1=hea4e1c9_2
  - legacy-api-wrap=1.2=py_0
  - leidenalg=0.8.9=py37hd23a5d3_0
  - lerc=3.0=h9c3ff4c_0
  - libblas=3.9.0=13_linux64_openblas
  - libbrotlicommon=1.0.9=h7f98852_6
  - libbrotlidec=1.0.9=h7f98852_6
  - libbrotlienc=1.0.9=h7f98852_6
  - libcblas=3.9.0=13_linux64_openblas
  - libcurl=7.81.0=h2574ce0_0
  - libdeflate=1.10=h7f98852_0
  - libedit=3.1.20191231=he28a2e2_2
  - libev=4.33=h516909a_1
  - libffi=3.4.2=h7f98852_5
  - libgcc-ng=11.2.0=h1d223b6_12
  - libgfortran-ng=11.2.0=h69a702a_12
  - libgfortran5=11.2.0=h5c6108e_12
  - libgomp=11.2.0=h1d223b6_12
  - libiconv=1.16=h516909a_0
  - libimagequant=2.17.0=h7f98852_1
  - liblapack=3.9.0=13_linux64_openblas
  - libllvm11=11.1.0=hf817b99_3
  - libnghttp2=1.47.0=h727a467_0
  - libnsl=2.0.0=h7f98852_0
  - libopenblas=0.3.18=pthreads_h8fe5266_0
  - libpng=1.6.37=h21135ba_2
  - libsodium=1.0.18=h36c2ea0_1
  - libssh2=1.10.0=ha56f1ee_2
  - libstdcxx-ng=11.2.0=he4da1e4_12
  - libtiff=4.3.0=h542a066_3
  - libwebp=1.2.2=h3452ae3_0
  - libwebp-base=1.2.2=h7f98852_1
  - libxcb=1.13=h7f98852_1004
  - libxml2=2.9.12=h885dcf4_1
  - libzlib=1.2.11=h36c2ea0_1013
  - lz4-c=1.9.3=h9c3ff4c_1
  - lzo=2.10=h516909a_1000
  - matplotlib-base=3.5.1=py37h1058ff1_0
  - matplotlib-inline=0.1.3=pyhd8ed1ab_0
  - metis=5.1.0=h58526e2_1006
  - mistune=0.8.4=py37h5e8e339_1005
  - mpfr=4.1.0=h9202a9a_1
  - multicore-tsne=0.1_d4ff4aab=py37h796e4cb_2
  - munkres=1.1.4=pyh9f0ad1d_0
  - natsort=8.1.0=pyhd8ed1ab_0
  - nbclient=0.5.11=pyhd8ed1ab_0
  - nbconvert=6.4.2=py37h89c1867_0
  - nbformat=5.1.3=pyhd8ed1ab_0
  - ncurses=6.3=h9c3ff4c_0
  - nest-asyncio=1.5.4=pyhd8ed1ab_0
  - networkx=2.6.3=pyhd8ed1ab_1
  - nomkl=1.0=h5ca1d4c_0
  - numba=0.55.1=py37h2d894fd_0
  - numexpr=2.8.0=py37hfe5f03c_101
  - numpy=1.21.5=py37hf2998dd_0
  - openjpeg=2.4.0=hb52868f_1
  - openssl=1.1.1l=h7f98852_0
  - packaging=21.3=pyhd8ed1ab_0
  - pandoc=2.17.1.1=ha770c72_0
  - pandocfilters=1.5.0=pyhd8ed1ab_0
  - parso=0.8.3=pyhd8ed1ab_0
  - patsy=0.5.2=pyhd8ed1ab_0
  - pcre2=10.37=h032f7d1_0
  - perl=5.32.1=2_h7f98852_perl5
  - pexpect=4.8.0=pyh9f0ad1d_2
  - pickleshare=0.7.5=py_1003
  - pillow=9.0.1=py37hc8ad62e_1
  - pip=22.0.3=pyhd8ed1ab_0
  - prompt-toolkit=3.0.27=pyha770c72_0
  - pthread-stubs=0.4=h36c2ea0_1001
  - ptyprocess=0.7.0=pyhd3deb0d_0
  - pycparser=2.21=pyhd8ed1ab_0
  - pygments=2.11.2=pyhd8ed1ab_0
  - pynndescent=0.5.6=pyh6c4a22f_0
  - pyopenssl=22.0.0=pyhd8ed1ab_0
  - pyparsing=3.0.7=pyhd8ed1ab_0
  - pyrsistent=0.18.1=py37h5e8e339_0
  - pysocks=1.7.1=py37h89c1867_4
  - pytables=3.7.0=py37h5dea08b_0
  - python=3.7.12=hb7a2778_100_cpython
  - python-dateutil=2.8.2=pyhd8ed1ab_0
  - python-igraph=0.9.9=py37h6c76e3a_0
  - python_abi=3.7=2_cp37m
  - pytz=2021.3=pyhd8ed1ab_0
  - pyzmq=22.3.0=py37h336d617_1
  - readline=8.1=h46c0cb4_0
  - requests=2.27.1=pyhd8ed1ab_0
  - scanpy=1.8.2=pyhd8ed1ab_0
  - scikit-learn=1.0.2=py37hf9e9bfc_0
  - scipy=1.7.3=py37hf2a6cf1_0
  - seaborn=0.11.2=hd8ed1ab_0
  - seaborn-base=0.11.2=pyhd8ed1ab_0
  - setuptools=59.8.0=py37h89c1867_0
  - sinfo=0.3.1=py_0
  - six=1.16.0=pyh6c4a22f_0
  - snowballstemmer=2.2.0=pyhd8ed1ab_0
  - sphinx=4.4.0=pyh6c4a22f_1
  - sphinxcontrib-applehelp=1.0.2=py_0
  - sphinxcontrib-devhelp=1.0.2=py_0
  - sphinxcontrib-htmlhelp=2.0.0=pyhd8ed1ab_0
  - sphinxcontrib-jsmath=1.0.1=py_0
  - sphinxcontrib-qthelp=1.0.3=py_0
  - sphinxcontrib-serializinghtml=1.1.5=pyhd8ed1ab_1
  - sqlite=3.37.0=h9cd32fc_0
  - statsmodels=0.13.2=py37hb1e94ed_0
  - stdlib-list=0.7.0=py_2
  - suitesparse=5.10.1=h9e50725_1
  - tbb=2021.5.0=h4bd325d_0
  - testpath=0.6.0=pyhd8ed1ab_0
  - texttable=1.6.4=pyhd8ed1ab_0
  - threadpoolctl=3.1.0=pyh8a188c0_0
  - tk=8.6.11=h27826a3_1
  - toolz=0.11.1=py_0
  - tornado=6.1=py37h5e8e339_2
  - tqdm=4.62.3=pyhd8ed1ab_0
  - traitlets=5.1.1=pyhd8ed1ab_0
  - typing_extensions=4.1.1=pyha770c72_0
  - umap-learn=0.5.2=py37h89c1867_1
  - unicodedata2=14.0.0=py37h5e8e339_0
  - urllib3=1.26.8=pyhd8ed1ab_1
  - wcwidth=0.2.5=pyh9f0ad1d_2
  - webencodings=0.5.1=py_1
  - wheel=0.37.1=pyhd8ed1ab_0
  - xorg-libxau=1.0.9=h7f98852_0
  - xorg-libxdmcp=1.1.3=h7f98852_0
  - xz=5.2.5=h516909a_1
  - zeromq=4.3.4=h9c3ff4c_1
  - zipp=3.7.0=pyhd8ed1ab_1
  - zlib=1.2.11=h36c2ea0_1013
  - zstd=1.5.2=ha95c52a_0
  - pip:
    - aiohttp==3.8.1
    - aiosignal==1.2.0
    - arboreto==0.1.6
    - async-timeout==4.0.2
    - asynctest==0.13.0
    - bokeh==2.4.2
    - boltons==21.0.0
    - certifi==2021.10.8
    - click==8.0.3
    - cloudpickle==2.0.0
    - ctxcore==0.1.1
    - dask==2022.2.0
    - dill==0.3.4
    - distributed==2022.2.0
    - frozendict==2.3.0
    - frozenlist==1.3.0
    - fsspec==2022.1.0
    - heapdict==1.0.1
    - importlib-metadata==4.11.0
    - interlap==0.2.7
    - llvmlite==0.38.0
    - locket==0.2.1
    - loompy==3.0.6
    - markupsafe==2.0.1
    - msgpack==1.0.3
    - multidict==6.0.2
    - multiprocessing-on-dill==3.5.0a4
    - numpy-groupies==0.9.14
    - pandas==1.3.5
    - partd==1.2.0
    - psutil==5.9.0
    - pyarrow==0.16.0
    - pyscenic==0.11.2
    - pyyaml==6.0
    - sortedcontainers==2.4.0
    - tblib==1.7.0
    - yarl==1.7.2
    - zict==2.0.0
prefix: /home/max/mambaforge/envs/pyscenic

Create the environment

Create the conda environment by running

mamba env create -f env.yaml
# or
conda env create -f env.yaml

Activate the environment by running conda activate pyscenic. You are now ready to get started.