Skip to content

Instantly share code, notes, and snippets.

@alanorth
Created September 2, 2014 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alanorth/11fc56b42006ff5fc838 to your computer and use it in GitHub Desktop.
Save alanorth/11fc56b42006ff5fc838 to your computer and use it in GitHub Desktop.
SLURM batch script to run Ray assembler with MPI on paired-end MiSeq reads.
#!/bin/env bash
#SBATCH -p batch
# will use 15 CPUs
#SBATCH -n 15
# will use 2-3 different nodes
#SBATCH --nodes=2-3
#SBATCH -J ray
module load ray/2.3.1
readonly DATADIR=~/data/bfusca
readonly OUTDIR=~/data/bfusca/ray-aug31-2
# mpirun gets the number of processors from SLURM
mpirun Ray -k 27 -p ${DATADIR}/1_S1_L001_R1_001-qc.fastq ${DATADIR}/1_S1_L001_R2_001-qc.fastq -o ${OUTDIR}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment