Skip to content

Commit 9c798b6

Browse files
authored
Merge pull request #40 from TurakhiaLab/ang037-patch-1
Update README.md
2 parents 53dadc7 + fda03aa commit 9c798b6

1 file changed

Lines changed: 27 additions & 2 deletions

File tree

README.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
- [Using Installation Script](#script)
3232
- [Quick Start](#start)
3333
- [Run ROADIES with your own datasets](#runpipeline)
34+
- [Run ROADIES in a multi-node cluster](#runpipelinenode)
3435
- [Citing ROADIES](#citation)
3536

3637
<br>
@@ -79,10 +80,10 @@ conda config --add channels conda-forge
7980

8081
After this, try running `conda` in your terminal to check if conda is properly installed. Once it is installed, follow the steps below:
8182

82-
1. Create and activate custom conda environment with Python version 3.9
83+
1. Create and activate custom conda environment with Python version 3.9, ETE3 and Seaborn.
8384

8485
```
85-
conda create -n myenv python=3.9
86+
conda create -n myenv python=3.9 ete3 seaborn
8687
conda activate myenv
8788
```
8889

@@ -221,6 +222,30 @@ python run_roadies.py --cores 16 --mode fast
221222

222223
<br>
223224

225+
## <a name="runpipelinenode"></a> Run ROADIES in a multi-node cluster (using SLURM)
226+
227+
To run ROADIES in a multi-node cluster, save the following lines of code as `roadies.slurm` and run `sbatch roadies.slurm`. The following code snippet runs the ROADIES pipeline using 2 nodes with 32 cores each.
228+
```
229+
#!/bin/bash
230+
#SBATCH --partition=compute
231+
#SBATCH --job-name=single_node_pipeline
232+
#SBATCH --nodes=2
233+
#SBATCH --ntasks-per-node=1
234+
#SBATCH --cpus-per-task=32
235+
#SBATCH --mem=40G
236+
#SBATCH -t 00:30:00
237+
#SBATCH --account=csd927
238+
#SBATCH -J job.8
239+
#SBATCH -o job.8.%j.%N.out
240+
#SBATCH -e job.8.%j.%N.err
241+
#SBATCH --export=ALL
242+
243+
source <path_to_miniconda3>/etc/profile.d/conda.sh
244+
conda activate my_env
245+
cd <path_to_miniconda3>/envs/my_env/ROADIES
246+
srun --nodes=1 python run_roadies.py --cores 64 --mode <mode_of_operation>
247+
```
248+
224249
### For troubleshooting and contribution details, refer to [Wiki](https://turakhialab.github.io/ROADIES/)
225250

226251
<br>

0 commit comments

Comments
 (0)