User Tools

Site Tools


howto:bioinformatics:gnu-parallel

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howto:bioinformatics:gnu-parallel [2021/12/09 16:42]
127.0.0.1 external edit
howto:bioinformatics:gnu-parallel [2023/04/17 12:40] (current)
ischeepers
Line 24: Line 24:
 #PBS -mb #PBS -mb
  
-module add chpc/gnu/parallel-20160422+ 
 +module add chpc/BIOMODULES 
 +module add gnu-parallel
  
 WORKING_DIR=/mnt/lustre/users/USERNAME/test_scripts WORKING_DIR=/mnt/lustre/users/USERNAME/test_scripts
Line 120: Line 122:
 cd ${PBS_O_WORKDIR} cd ${PBS_O_WORKDIR}
  
-module add chpc/gnu/parallel-20160422 
 module add chpc/BIOMODULES module add chpc/BIOMODULES
-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 
 +#BLASTDB="/mnt/lustre/bsp/DB/BLAST" 
 +# To blast against eg, simply use -db nt 
 +# To see all databases, "ls $BLASTDB/*.?al"
  
-BLASTDB="/mnt/lustre/bsp/DB/NCBI/nt" 
 BLASTCMD=$(which blastn) BLASTCMD=$(which blastn)
-BLASTARGS="-evalue 0.005 -num_alignments 20 -outfmt 5 -num_threads 24"+BLASTARGS="-evalue 0.005 -num_alignments 20 -outfmt 5 -num_threads 24 -db nt"
 INPUTDIRS="DATE/*" INPUTDIRS="DATE/*"
  
-ls ${INPUTDIRS}/*.fasta | parallel -M --sshdelay 0.2 -j 1 -u --sshloginfile ${PBS_NODEFILE} "cd ${PBS_O_WORKDIR}; ${BLASTCMD} -db ${BLASTDB} -query {} ${BLASTARGS} -out {}.xml && gzip --best {} {}.xml"+ls ${INPUTDIRS}/*.fasta | parallel -M --sshdelay 0.2 -j 1 -u --sshloginfile ${PBS_NODEFILE} "cd ${PBS_O_WORKDIR}; ${BLASTCMD} -query {} ${BLASTARGS} -out {}.xml && gzip --best {} {}.xml"
 </file> </file>
  
Line 152: Line 160:
 cd ${PBS_O_WORKDIR} cd ${PBS_O_WORKDIR}
  
-module add chpc/gnu/parallel-20160422+
 module add chpc/BIOMODULES module add chpc/BIOMODULES
-module add ncbi-blast/2.3.0/gcc+module add blast 
 +module add gnu-parallel
  
 BLASTDB="/mnt/lustre/bsp/NCBI/BLAST" BLASTDB="/mnt/lustre/bsp/NCBI/BLAST"
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
/app/dokuwiki/data/attic/howto/bioinformatics/gnu-parallel.1639060966.txt.gz · Last modified: 2021/12/09 16:42 by 127.0.0.1