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
7a7a63f8
Commit
7a7a63f8
authored
Nov 08, 2020
by
Riccardo Vicedomini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
metaclade2 now accepts a custom config file to override some default settings
parent
ad11e4b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
metaclade2
metaclade2
+16
-4
No files found.
metaclade2
View file @
7a7a63f8
...
...
@@ -33,6 +33,7 @@ DAMA_OLPMAXDOM=50
MCLADE_USEDAMA
=
false
MCLADE_USESGE
=
false
MCLADE_WORKDIR
=
${
PWD
}
MCLADE_USERCFG_ARG
=
""
MCLADE_OUTFILE
=
""
MCLADE_RMTMP
=
false
NTHREADS
=
4
...
...
@@ -57,6 +58,7 @@ function print_usage() {
-D, --domain-file <path>
\t
File that contains the Pfam accession numbers
\n
\t
of the domains to be considered (one per line)
\n
-W, --work-dir <path>
\t
Working directory (default:current directory)
\n
-U, --user-cfg <path>
\t
User config file for overriding default MetaCLADE2 configuration
\n
--remove-temp
\t
Remove temporary intermediate files, keeping only results and logs
\n
"
| column
-t
-s
$'
\t
'
echo
-en
"
\n
"
...
...
@@ -90,8 +92,8 @@ function print_usage() {
# retrieve provided arguments
opts
=
"N:i:o:ad:D:e:E:W:t:j:hV"
longopts
=
"name:,input:,output:,arch,domain-list:,domain-file:,evalue-cutoff:,evalue-cutconf:,overlappingAA:,overlappingMaxDomain:,work-dir,remove-temp,threads:,jobs:,help,version,sge,pe:,queue:,time-limit:"
opts
=
"N:i:o:ad:D:e:E:W:
U:
t:j:hV"
longopts
=
"name:,input:,output:,arch,domain-list:,domain-file:,evalue-cutoff:,evalue-cutconf:,overlappingAA:,overlappingMaxDomain:,work-dir
:,user-cfg:
,remove-temp,threads:,jobs:,help,version,sge,pe:,queue:,time-limit:"
ARGS
=
$(
getopt
-o
"
${
opts
}
"
-l
"
${
longopts
}
"
-n
"
${
CMD_NAME
}
"
--
"
${
@
}
"
)
if
[
$?
-ne
0
]
||
[
$#
-eq
0
]
;
then
# do not change the order of this test!
print_usage
...
...
@@ -144,6 +146,10 @@ while [ -n "${1}" ]; do
shift
MCLADE_WORKDIR
=
${
1
}
;;
-U
|
--user-cfg
)
shift
MCLADE_USERCFG_ARG
=
"--config
${
1
}
"
;;
--remove-temp
)
MCLADE_RMTMP
=
true
;;
...
...
@@ -272,7 +278,13 @@ print_status "creating MetaCLADE script/job files"
python3
"
${
SCRIPTS_DIR
}
/mclade_create_jobs.py"
\
-i
"
${
INPUT_FASTA
}
"
-N
"
${
MCLADE_JOBNAME
}
"
${
MCLADE_DOMARG
}
-W
"
${
MCLADE_WORKDIR
}
"
\
-e
"
${
MCLADE_EVALUECUTOFF
}
"
-E
"
${
MCLADE_EVALUECUTCONF
}
"
--overlappingAA
${
DAMA_OLPAA
}
--overlappingMaxDomain
${
DAMA_OLPMAXDOM
}
${
MCLADE_DAMAARG
}
\
-j
"
${
NJOBS
}
"
>
"
${
MCLADE_WORKDIR
}
/log/mclade_create_jobs.out"
2>
"
${
MCLADE_WORKDIR
}
/log/mclade_create_jobs.err"
-j
"
${
NJOBS
}
"
\
${
MCLADE_USERCFG_ARG
}
\
>
"
${
MCLADE_WORKDIR
}
/log/mclade_create_jobs.out"
2>
"
${
MCLADE_WORKDIR
}
/log/mclade_create_jobs.err"
if
[
$?
-ne
0
]
;
then
print_error
"cannot create MetaCLADE job files"
exit
1
fi
# Run MetaCLADE scripts (possibly using SGE)
...
...
@@ -290,7 +302,7 @@ for i in $(seq 1 ${NJOBS}); do
pidarr[
$i
]=
$pid
else
${
CMD
}
>
"
${
MCLADE_WORKDIR
}
/log/search_
${
i
}
.out"
2>
"
${
MCLADE_WORKDIR
}
/log/search_
${
i
}
.err"
cmdret
=
$?
;
if
((
cmdret
!=
0
))
;
then
print_error
"search job failed (exit status:
${
cmdret
}
)"
;
exit
1
;
fi
cmdret
=
$?
;
if
[
$cmdret
-ne
0
]
;
then
print_error
"search job failed (exit status:
${
cmdret
}
)"
;
exit
1
;
fi
fi
fi
done
...
...
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