Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
miniannotator
Commits
b7badedd
Commit
b7badedd
authored
Jul 23, 2018
by
Floreal Cabanettes
Browse files
Check input parameters
parent
5e5e81d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
miniannotator.py
View file @
b7badedd
...
...
@@ -278,10 +278,15 @@ if __name__ == "__main__":
args
=
parser
.
parse_args
()
if
args
.
min_qoverlap
<
0
or
args
.
min_qoverlap
>
100
:
print
(
"Error: min qoverlap (-q/--min-qoverlap) needs to be between 0 and 100"
,
file
=
sys
.
stderr
)
exit
(
1
)
if
not
os
.
path
.
exists
(
args
.
output_dir
):
os
.
makedirs
(
args
.
output_dir
)
elif
not
os
.
path
.
isdir
(
args
.
output_dir
):
print
(
"Error: output folder %s exists but is not a folder"
%
args
.
output_dir
,
file
=
sys
.
stderr
)
exit
(
1
)
# Map:
if
args
.
map
is
None
:
...
...
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