#$ -N compleasm
#$ -cwd
#$ -o ./$JOB_NAME.$JOB_ID.out
#$ -e ./$JOB_NAME.$JOB_ID.err
#$ -pe smp 20
#$ -l h_vmem=12.5g
#$ -t 1:11
#$ -tc 11

############################
INPUT=/mnt/data/arslan/Teas/02_Assembly_QA/Input
export PATH=/mnt/bin/minibusco/minibusco_kit/:$PATH

ls /mnt/data/arslan/4Teas/02_Assembly_QA/Input/ | sed -e 's/.fasta//g' >basenames.txt

SEEDFILE="basenames.txt"
SEED=$(awk "NR==$SGE_TASK_ID" $SEEDFILE)

mkdir -p Compleasm_results
cd Compleasm_results

minibusco.py run \
-a ${INPUT}/${SEED}.fasta \
-l eudicots \
-L /mnt/bin/minibusco/mb_downloads \
-t ${NSLOTS} \
-o ${SEED}
