.. _installation: Installation ============ Installation from source ------------------------ 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 CellCap dependency. We recommend installing CellCap in its own `conda environment `_. This allows for easier installation and prevents conflicts with any other python packages you may have installed. Create a conda environment and activate it: .. code-block:: console $ conda create -n cellcap python=3.9 $ conda activate cellcap Install `pytorch `_ via `these instructions `_: .. code-block:: console (cellcap) $ pip install torch and ensure that your installation is appropriate for your hardware (i.e. that the relevant CUDA drivers get installed and that ``torch.cuda.is_available()`` returns ``True`` if you have a GPU available. Clone this repository and install CellCap (in editable ``-e`` mode): .. code-block:: console (cellcap) $ git clone https://github.com/broadinstitute/CellCap.git (cellcap) $ pip install -e CellCap Via pip (coming soon) --------------------- Python packages can be conveniently installed from the Python Package Index (PyPI) using `pip install `_. CellCap is `available on PyPI `_ and can be installed via .. code-block:: console $ pip install cellcap .. code-block:: console $ conda create -n cellcap python=3.9 $ conda activate cellcap (cellcap) $ pip install cellcap