Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
metaclade2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Riccardo Vicedomini
metaclade2
Commits
17895f2f
Commit
17895f2f
authored
May 09, 2020
by
Riccardo Vicedomini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
job set to 1 for local run, -j will be used only for --sge
parent
e90ce415
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
metaclade2
metaclade2
+9
-5
No files found.
metaclade2
View file @
17895f2f
...
...
@@ -35,8 +35,8 @@ MCLADE_USESGE=false
MCLADE_WORKDIR
=
${
PWD
}
MCLADE_OUTFILE
=
""
MCLADE_RMTMP
=
false
NTHREADS
=
1
NJOBS
=
1
6
NTHREADS
=
4
NJOBS
=
1
function
print_usage
()
{
echo
-en
"
\n
USAGE:
${
CMD_NAME
}
-i <input_fasta> -N <name> [options]
\n
"
...
...
@@ -71,13 +71,14 @@ function print_usage() {
"
| column
-t
-s
$'
\t
'
echo
-en
"
\n
"
echo
-en
" OTHER OPTIONS:
\n
-j, --jobs <num>
\t
Number of jobs to be created (default:
${
NJOBS
}
)
\n
-t, --threads <num>
\t
Number of threads for each job (default:
${
NTHREADS
}
)
\n
-t, --threads <num>
\t
Number of threads (default:
${
NTHREADS
}
)
\n
-h, --help
\t
Print this help message
\n
-V, --version
\t
Print version
\n
"
| column
-t
-s
$'
\t
'
echo
-en
"
\n
"
echo
-en
" SGE OPTIONS:
\n
--sge
\t
Run MetaCLADE jobs on a SGE HPC environment
\n
-j, --jobs <num>
\t
Number of jobs to be created/submitted (default:
${
NJOBS
}
)
\n
\t
Use -t|--threads to define the number of threads for each job
\n
--pe <name>
\t
Parallel environment to use (mandatory)
\n
--queue <name>
\t
Name of a specific queue where jobs are submitted
\n
--time-limit <hh:mm:ss>
\t
Time limit for submitted jobs formatted as hh:mm:ss
\n
...
...
@@ -231,7 +232,7 @@ if ! [[ "${NTHREADS}" =~ ^[0-9]+$ ]] || [ ${NTHREADS} -lt 1 ] ; then
fi
if
!
[[
"
${
NJOBS
}
"
=
~ ^[0-9]+
$
]]
||
[
${
NJOBS
}
-lt
1
]
;
then
print_
warning
"-j|--max-jobs parameter should be a positive integer"
print_
error
"-j|--max-jobs parameter should be a positive integer"
exit
1
fi
...
...
@@ -251,6 +252,9 @@ if [ "${MCLADE_USESGE}" = true ] ; then
fi
fi
# set number of job to 1 if run on a single computer
if
[
"
${
MCLADE_USESGE
}
"
=
false
]
;
then
NJOBS
=
1
;
fi
# Create Working directory
MCLADE_WORKDIR
=
${
MCLADE_WORKDIR
}
"/"
${
MCLADE_JOBNAME
}
mkdir
-p
"
${
MCLADE_WORKDIR
}
"
"
${
MCLADE_WORKDIR
}
/log"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment