User Tools

Site Tools


diamond-software

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
diamond-software [2017/07/23 14:25]
aorth
diamond-software [2017/08/17 15:46] (current)
aorth
Line 18: Line 18:
 <​code>​$ module load diamond/​0.9.9 <​code>​$ module load diamond/​0.9.9
 $ diamond</​code>​ $ diamond</​code>​
 +
 +An example SLURM submission script might look like:
 +
 +<​code>#​!/​bin/​env bash
 +#SBATCH -p batch
 +#SBATCH -n 4
 +#SBATCH -J diamond
 +
 +# Load diamond module
 +module load diamond/​0.9.9
 +
 +# Set up environment
 +export DATADIR=/​home/​aorth/​data
 +export WORKDIR=/​var/​scratch/​aorth/​diamond-2017-08-17
 +
 +# Create and change to working directory
 +mkdir -p $WORKDIR
 +cd $WORKDIR
 + 
 +diamond blastx -p 4 -q $DATADIR/​test_nt_seq.fa --sensitive -d /​export/​data/​bio/​diamond/​nr -o test_nt_seq.xml -f 5</​code>​
 +
 +Make sure to match the number of CPUs in your SLURM request (''​-n''​) with the amount in your diamond command line (''​-p''​).
  
 ===== Installation ====== ===== Installation ======
diamond-software.txt · Last modified: 2017/08/17 15:46 by aorth