echo" -f In sbatch mode, will use the fast QOS (jobs limited to 2 hours)"
echo" -f In sbatch mode, will use the fast QOS (jobs limited to 2 hours)"
echo" ${bold}WARNING:${normal}: be sure the jobs will run under 2 hours otherwise they will fail."
echo" ${bold}WARNING:${normal}: be sure the jobs will run under 2 hours otherwise they will fail."
echo" default: off"
echo" default: off"
echo" -n If turned on, the MMseqs output file will be erased to save disk space."
echo" default: off"
echo""
echo""
echo"${bold}DESCRIPTION:${normal}"
echo"${bold}DESCRIPTION:${normal}"
echo"This pipeline will do all proteins pairwise comparisons using the MMseqs2 software and then process "
echo"This pipeline will do all proteins pairwise comparisons using the MMseqs2 software and then process "
...
@@ -121,18 +123,22 @@ IDLIST="N.O.L.I.S.T" ## -l
...
@@ -121,18 +123,22 @@ IDLIST="N.O.L.I.S.T" ## -l
BATCHFLAG=0 ## Are we in a sbatch job?
BATCHFLAG=0 ## Are we in a sbatch job?
QT=0 ## Queing time (for Maestro)
QT=0 ## Queing time (for Maestro)
MAXJOBS=0 ## -m
MAXJOBS=0 ## -m
MMS_DEF_MAX_SEQS=300
MIDENT=0
MMS_MAX_SEQ_PARAM=""
TESTRUN=0 ## -T
TESTRUN=0 ## -T
FAST=0 ## -f
FAST=0 ## -f
SKIP=0 ## -s
SKIP=0 ## -s
JACCARD=0 ## -j
JACCARD=0 ## -j
COVT=0.5 ## -C
COVT=0.5 ## -C
IDT=0.35 ## -I
IDT=0.35 ## -I
NOM8=0 ## -n
MMS_DEF_MAX_SEQS=300
MIDENT=0
MMS_MAX_SEQ_PARAM=""
EST_M8_SIZE=0
tmp="wgrrtmp"
## catch option values
## catch option values
while getopts :fTsji:p:o:t:a:m:l:C:I: option ;do
while getopts :fTsji:p:o:t:a:m:l:C:I:c:n: option ;do
case$optionin
case$optionin
i)PRT="$OPTARG";if[[!-s$PRT]];then printf"${bold}${red}%-17s -- %s\n${normal}""[ERROR]""Fasta file '$PRT' not found or empty (option -i).";exit 1 ;fi;;
i)PRT="$OPTARG";if[[!-s$PRT]];then printf"${bold}${red}%-17s -- %s\n${normal}""[ERROR]""Fasta file '$PRT' not found or empty (option -i).";exit 1 ;fi;;
p)MMPATH="$OPTARG";;
p)MMPATH="$OPTARG";;
...
@@ -145,6 +151,7 @@ while getopts :fTsji:p:o:t:a:m:l:C:I: option ; do
...
@@ -145,6 +151,7 @@ while getopts :fTsji:p:o:t:a:m:l:C:I: option ; do
f)FAST=1 ;;
f)FAST=1 ;;
s)SKIP=1 ;;
s)SKIP=1 ;;
j)JACCARD=1 ;;
j)JACCARD=1 ;;
n)NOM8=1 ;;
C)COVT="$OPTARG";if[[${COVT}-gt 1 ]]||[[${COVT}-lt 0 ]];then printf"${bold}${red}%-17s -- %s\n${normal}""[ERROR]""Coverage threshold must be between 0 and 1 (option -C).";exit 1 ;fi;;
C)COVT="$OPTARG";if[[${COVT}-gt 1 ]]||[[${COVT}-lt 0 ]];then printf"${bold}${red}%-17s -- %s\n${normal}""[ERROR]""Coverage threshold must be between 0 and 1 (option -C).";exit 1 ;fi;;
I)IDT="$OPTARG";if[[${IDT}-gt 1 ]]||[[${IDT}-lt 0 ]];then printf"${bold}${red}%-17s -- %s\n${normal}""[ERROR]""Identity threshold must be between 0 and 1 (option -C).";exit 1 ;fi;;
I)IDT="$OPTARG";if[[${IDT}-gt 1 ]]||[[${IDT}-lt 0 ]];then printf"${bold}${red}%-17s -- %s\n${normal}""[ERROR]""Identity threshold must be between 0 and 1 (option -C).";exit 1 ;fi;;
printf"${bold}${yellow}%-17s -- %s\n${normal}""[WARNING]""Unable to estimate the MMseqs output file size." | tee-a${OUT}.wgrr.log
elif[[${EST_M8_SIZE}-gt 10 ]];then
if[[${NOM8}== 0 ]];then
printf"${bold}${yellow}%-17s -- %s\n${normal}""[WARNING]""MMseqs output file could exceed 10GB. Consider using the -n option to save disk space." | tee-a${OUT}.wgrr.log