This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
howto:bioinformatics:gnu-parallel [2018/09/07 12:59] dane [Advanced Fault tolerant Blast] |
howto:bioinformatics:gnu-parallel [2023/04/17 12:40] (current) ischeepers |
||
|---|---|---|---|
| Line 13: | Line 13: | ||
| #!/bin/bash | #!/bin/bash | ||
| #PBS -e / | #PBS -e / | ||
| - | #PBS -o /mnt/lsutre/ | + | #PBS -o /mnt/lustre/ |
| #PBS -V | #PBS -V | ||
| #PBS -P PROGRAMMESHORTNAME | #PBS -P PROGRAMMESHORTNAME | ||
| Line 24: | Line 24: | ||
| #PBS -mb | #PBS -mb | ||
| - | module add chpc/gnu/parallel-20160422 | + | |
| + | module add chpc/BIOMODULES | ||
| + | module add gnu-parallel | ||
| WORKING_DIR=/ | WORKING_DIR=/ | ||
| Line 120: | Line 122: | ||
| cd ${PBS_O_WORKDIR} | cd ${PBS_O_WORKDIR} | ||
| - | module add chpc/ | ||
| module add chpc/ | module add chpc/ | ||
| - | module add ncbi-blast/2.3.0/gcc | + | module add blast |
| + | module add gnu-parallel | ||
| + | |||
| + | |||
| + | #The module sets the env variable below | ||
| + | # and provides the path to the databases | ||
| + | # | ||
| + | # To blast against eg, simply use -db nt | ||
| + | # To see all databases, "ls $BLASTDB/*.?al" | ||
| - | BLASTDB="/ | ||
| BLASTCMD=$(which blastn) | BLASTCMD=$(which blastn) | ||
| - | BLASTARGS=" | + | BLASTARGS=" |
| INPUTDIRS=" | INPUTDIRS=" | ||
| - | ls ${INPUTDIRS}/ | + | ls ${INPUTDIRS}/ |
| </ | </ | ||
| Line 152: | Line 160: | ||
| cd ${PBS_O_WORKDIR} | cd ${PBS_O_WORKDIR} | ||
| - | module add chpc/ | + | |
| module add chpc/ | module add chpc/ | ||
| - | module add ncbi-blast/2.3.0/gcc | + | module add blast |
| + | module add gnu-parallel | ||
| - | BLASTDBDIR="/ | + | BLASTDB="/mnt/ |
| - | BLASTDB=" | + | DB=" |
| BLASTCMD=$(which blastn) | BLASTCMD=$(which blastn) | ||
| BLASTARGS=" | BLASTARGS=" | ||
| Line 167: | Line 176: | ||
| for node in ${NODES} | for node in ${NODES} | ||
| do | do | ||
| - | ssh ${node} "mkdir -p / | + | ssh ${node} "mkdir -p / |
| done | done | ||
| Line 270: | Line 279: | ||
| #PBS -r n | #PBS -r n | ||
| - | module add chpc/gnu/parallel-20160422 | + | module add chpc/BIOMODULES |
| + | module add gnu-parallel | ||
| JOBSPERNODE=16 | JOBSPERNODE=16 | ||