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 revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
diamond-software [2017/07/23 10:24] aorthdiamond-software [2018/11/04 16:06] aorth
Line 5: Line 5:
 ===== Information ===== ===== Information =====
  
-  * Latest Version: 0.9.9+  * Version: 0.9.9
   * Added: November, 2016   * Added: November, 2016
   * Updated: July, 2017   * Updated: July, 2017
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 ======
Line 28: Line 50:
 $ sudo cp diamond diamond_manual.pdf /export/apps/diamond/0.9.9</code> $ sudo cp diamond diamond_manual.pdf /export/apps/diamond/0.9.9</code>
  
-===== Create Databases ===== +Diamond requires specially formatted databases, which you create using the ''diamond makedb'' subcommand. The input must be a FASTA file, but can be gzip compressed, for example the NR database from NCBI:
-Diamond requires specially formatted databases, which you create using ''diamond makedb'' subcommand. The input must be a FASTA file, but can be gzip compressed, for example the NR database from NCBI:+
  
 <code>$ wget ftp://ftp.ncbi.nlm.nih.gov/blast/db/FASTA/nr.gz <code>$ wget ftp://ftp.ncbi.nlm.nih.gov/blast/db/FASTA/nr.gz
 $ diamond makedb --in nr.gz -d nr $ diamond makedb --in nr.gz -d nr
-$ sudo mkdir -p /export/data/bio/diamond</code>+$ sudo mkdir -p /export/data/bio/diamond 
 +$ sudo cp nr.dmnd /export/data/bio/diamond</code>
diamond-software.txt · Last modified: 2022/03/17 09:10 by aorth