echo" -m <integer> Max number of simulteaneous tasks."
echo" -m <integer> Max number of simulteaneous tasks."
echo" Only applicable to Maestro, for the wGRR calculation step."
echo" Only applicable to Maestro, for the wGRR calculation step."
echo" default: not set"
echo" default: not set"
echo" -T Test run. Useful to get stats on the input file and correctly set the -a parameter."
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 "
...
@@ -97,13 +98,13 @@ ARRAYSIZE=10000 ## -a
...
@@ -97,13 +98,13 @@ ARRAYSIZE=10000 ## -a
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
DEFAULT_MAIN_RAM="10G"## RAM for the main script (on Maestro)
MMS_DEF_MAX_SEQS=300
MMS_DEF_MAX_SEQS=300
MIDENT=0
MIDENT=0
MMS_MAX_SEQ_PARAM=""
MMS_MAX_SEQ_PARAM=""
TESTRUN=0 ## -T
## catch option values
## catch option values
while getopts :f:p:o:t:a:m: option ;do
while getopts :Tf:p:o:t:a:m: option ;do
case$optionin
case$optionin
f)PRT="$OPTARG";if[!-f$PRT];then echo"[ERROR] -- fasta file '$PRT' not found (option -f).";exit 1 ;fi;;
f)PRT="$OPTARG";if[!-f$PRT];then echo"[ERROR] -- fasta file '$PRT' not found (option -f).";exit 1 ;fi;;
p)MMPATH="$OPTARG";;
p)MMPATH="$OPTARG";;
...
@@ -111,6 +112,7 @@ while getopts :f:p:o:t:a:m: option ; do
...
@@ -111,6 +112,7 @@ while getopts :f:p:o:t:a:m: option ; do
t)THREADS="$OPTARG";if[[!$THREADS=~ ^[0-9]+$ ]];then echo"[ERROR] -- number of threads $THREADS must be an integer (option -t).";exit 1 ;fi;;
t)THREADS="$OPTARG";if[[!$THREADS=~ ^[0-9]+$ ]];then echo"[ERROR] -- number of threads $THREADS must be an integer (option -t).";exit 1 ;fi;;
a)ARRAYSIZE="$OPTARG";if[[!$ARRAYSIZE=~ ^[0-9]+$ ]];then echo"[ERROR] -- number of genomes comparisons $ARRAYSIZE must be an integer (option -a).";exit 1 ;fi;;
a)ARRAYSIZE="$OPTARG";if[[!$ARRAYSIZE=~ ^[0-9]+$ ]];then echo"[ERROR] -- number of genomes comparisons $ARRAYSIZE must be an integer (option -a).";exit 1 ;fi;;
m)MAXJOBS="$OPTARG";if[[!$MAXJOBS=~ ^[0-9]+$ ]];then echo"[ERROR] -- max number of simulteaneous jobs $MAXJOBS must be an integer (option -m).";exit 1 ;fi;;
m)MAXJOBS="$OPTARG";if[[!$MAXJOBS=~ ^[0-9]+$ ]];then echo"[ERROR] -- max number of simulteaneous jobs $MAXJOBS must be an integer (option -m).";exit 1 ;fi;;