.. _installation: Installation ============ Via pip ------- Python packages can be conveniently installed from the Python Package Index (PyPI) using `pip install `_. CellBender is `available on PyPI `_ and can be installed via .. code-block:: console $ pip install cellbender If your machine has a GPU with appropriate drivers installed, it should be automatically detected, and the appropriate version of PyTorch with CUDA support should automatically be downloaded as a CellBender dependency. We recommend installing CellBender in its own `conda environment `_. This allows for easier installation and prevents conflicts with any other python packages you may have installed. .. code-block:: console $ conda create -n cellbender python=3.12 $ conda activate cellbender (cellbender) $ pip install cellbender Installation from source ------------------------ Create a conda environment and activate it: .. code-block:: console $ conda create -n cellbender python=3.12 $ conda activate cellbender Clone this repository and install CellBender (in editable mode): .. code-block:: console (cellbender) [~/] $ git clone https://github.com/broadinstitute/CellBender.git (cellbender) [~/] $ cd CellBender (cellbender) [~/CellBender] $ make install If you prefer not to use the ``make`` command, you can also install CellBender from source via .. code-block:: console (cellbender) [~/CellBender] $ pip install -e . Install a specific commit directly from GitHub ---------------------------------------------- This can be achieved via .. code-block:: console (cellbender) $ pip install --no-cache-dir -U git+https://github.com/broadinstitute/CellBender.git@ where ```` must be replaced by any reference to a particular git commit, such as a tag, a branch name, or a commit sha. Docker Image ------------ A GPU-enabled docker image is available from the Google Container Registry (GCR) as: ``us.gcr.io/broad-dsde-methods/cellbender:latest`` Older versions are available at the same location, for example as ``us.gcr.io/broad-dsde-methods/cellbender:0.3.2`` Terra Workflow -------------- For `Terra `_ users (or any other users of WDL workflows), the following WDL workflow is publicly available: * `cellbender/remove-background `_ Some documentation for the WDL is available at the above link, and some is visible `on github `_.