Running KOfam script with GNU parallel
0
0
Entering edit mode
24 months ago
AP ▴ 80

Hello everyone,

I am running KOfam analysis on multiple files using the following script. However the process is slow. Is there a way I can speed up the run using GNU-parallel. I have never used GNU-parallel before. My script until now looks like this

#!/bin/sh
source /opt/asn/etc/asn-bash-profiles-special/modules.sh

#load the module
module load kofamscan/1.3.0

#make a forloop with the isolate names
ls *_accessory_proteins.fasta | sed 's/_.*$//' > file_list1.txt

files=`cat file_list1.txt`

for  var in $files
do
echo $var

exec_annotation --cpu=15 -E 0.01 --tmp-dir=${var} -p /apps/bio/unzipped/kofam/profiles -k /apps/bio/unzipped/kofam/ko_list -f mapper -o ${var}_accessory_KOfam.txt ${var}_accessory_proteins.fasta

done

Thanks!!

KOfam GNU-parallel • 379 views
ADD COMMENT

Login before adding your answer.

Traffic: 3148 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6