Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated installation instructions #249

Merged
merged 8 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,30 @@ Available workflows:

## Installation and configuration

See [installation instructions here](https://panpipes-pipelines.readthedocs.io/en/latest/install.html)
For detailed installation instructions (including those for Apple Silicon machines), refer to the [installation instructions here](https://panpipes-pipelines.readthedocs.io/en/latest/install.html).

We recommend installing panpipes in a conda environment, we provide a minimal conda config file in `pipeline_env.yaml`
We recommend installing panpipes in a conda environment.
For that, we provide a minimal conda config file in `pipeline_env.yaml`.
First, clone this repository and navigate to the root directory of the repository:

```
conda env create --file=pipeline_env.yaml
git clone https://github.com/DendrouLab/panpipes.git
cd panpipes
```

In this environment, you can install nightly version of panpipes, i.e. cloning this repo and installing it from main.
Then, create the conda environment and install the nightly version of panpipes using the following command:

```
git clone https://github.com/DendrouLab/panpipes.git
cd panpipes
conda env create --file=pipeline_env.yaml
conda activate pipeline_env
pip install -e .
```


Oxford BMRC Rescomp users find additional advice in [docs/installation_rescomp](https://github.com/DendrouLab/panpipes/blob/main/docs/installation_rescomp.md)
Oxford BMRC Rescomp users find additional advice on the installation [here](https://github.com/DendrouLab/panpipes/blob/main/docs/installation_rescomp.md).

## Releases

Since `panpipes v0.4.0` ,the `ingest` workflow expects different headers for the RNA and Protein modalities from the previous releases.
Since `panpipes v0.4.0`, the `ingest` workflow expects different headers for the RNA and Protein modalities from the previous releases.
Check the example [submission file](https://github.com/DendrouLab/panpipes/blob/main/docs/usage/sample_file_qc_mm.md) and the [documentation](https://panpipes-pipelines.readthedocs.io/en/latest/usage/setup_for_qc_mm.html) for more detailed instructions.

## Citation
Expand Down
43 changes: 34 additions & 9 deletions docs/install.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,40 @@

# Installation of panpipes

## Create virtual environment
>Note: Oxford BMRC Rescomp users find additional advice on the installation [here](https://github.com/DendrouLab/panpipes/blob/main/docs/installation_rescomp.md).

## Create virtual environment and install panpipes

We recommend running panpipes within a virtual environment to prevent conflicts.

### Option 1: create conda environment (Recommended)
### Option 1: Installation in conda environment (Recommended)
>Note: For installation instructions on Apple machines with M chips, scroll down.

To Run panpipes, we install it in a conda environment with R and python.
To run panpipes, we install it in a conda environment with R and python.
Panpipes has a lot of dependencies, so you may want to consider the faster [`mamba`](https://mamba.readthedocs.io/en/latest/index.html) instead of `conda` for installation.
Panpipes can be installed via different methods, either from PyPi or from the Github repository.
We recommend using Option 1.1 to install the nightly version of panpipes.

#### Option 1.1: Nightly panpipes version with preconfigured conda config file (Recommended)
We recommend installing a nightly version of panpipes.
For that, we provide a minimal conda config file in `pipeline_env.yaml`.
First, clone this repository and navigate to the root directory of the repository:

```
git clone https://github.com/DendrouLab/panpipes.git
cd panpipes
```

Then, create the conda environment and install the nightly version of panpipes using the following command:

```
conda env create --file=pipeline_env.yaml
conda activate pipeline_env
pip install -e .
```

#### Option 1.2: Manual conda environment creation
As an alternative to the preconfigured conda environment, you can create a conda environment manually.

```bash
#This follows the suggestions made here: [https://www.biostars.org/p/498049/](https://www.biostars.org/p/498049/)
Expand All @@ -20,21 +45,21 @@ conda search r-base
conda create --name pipeline_env python=3.10 r-base=4.3.0
```

now we activate the environment
Next, we activate the environment:

```bash
conda activate pipeline_env
```

Let's first install the R packages
Let's first install the R packages:

```bash
conda install -c conda-forge r-tidyverse r-optparse r-ggforce r-ggraph r-xtable r-hdf5r r-clustree r-cowplot
```

Then we can install panpipes:
Finally, we install panpipes, which you can install either from PyPi or from the Github repository.

#### 1. Installing panpipes from PyPi
##### Installing panpipes from PyPi

You can install `panpipes` directly from `PyPi` with:

Expand All @@ -49,9 +74,9 @@ pip install 'panpipes[spatial]'
```
The extra `[spatial]` includes squidpy, cell2location, and tangram-sc packages.

#### 2. Nightly versions of panpipes
##### Nightly version of panpipes
Lilly-May marked this conversation as resolved.
Show resolved Hide resolved

If you prefer to use the most recent dev version, install from Github
If you prefer to use the most recent dev version, install panpipes from Github:

```bash
git clone https://github.com/DendrouLab/panpipes
Expand Down
Loading