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
Laros
barcode
Commits
e7cbb002
Commit
e7cbb002
authored
Sep 03, 2015
by
Laros
Browse files
Added defaults in help.
parent
8309cac2
Changes
2
Show whitespace changes
Inline
Side-by-side
barcode/__init__.py
View file @
e7cbb002
...
...
@@ -22,7 +22,7 @@ Licensed under the MIT license, see the LICENSE file.
RELEASE
=
False
__version_info__
=
(
'0'
,
'5'
,
'
0
'
)
__version_info__
=
(
'0'
,
'5'
,
'
1
'
)
__version__
=
'.'
.
join
(
__version_info__
)
...
...
barcode/barcode.py
View file @
e7cbb002
...
...
@@ -208,7 +208,7 @@ def main():
help
=
"input file"
)
distance_parser
=
argparse
.
ArgumentParser
(
add_help
=
False
)
distance_parser
.
add_argument
(
"-d"
,
dest
=
"distance"
,
type
=
int
,
default
=
3
,
help
=
"minimum distance between the barcodes"
)
help
=
"minimum distance between the barcodes
(int default=%(default)s)
"
)
distance_parser
.
add_argument
(
"-H"
,
dest
=
"hamming"
,
default
=
False
,
action
=
"store_true"
,
help
=
"use Hamming distance"
)
...
...
@@ -222,9 +222,9 @@ def main():
parser_make
=
subparsers
.
add_parser
(
"make"
,
parents
=
[
output_parser
,
distance_parser
],
description
=
docSplit
(
barcode
))
parser_make
.
add_argument
(
"-l"
,
dest
=
"length"
,
type
=
int
,
default
=
8
,
help
=
"lenght of the barcodes"
)
help
=
"lenght of the barcodes
(int default=%(default)s)
"
)
parser_make
.
add_argument
(
"-s"
,
dest
=
"stretch"
,
type
=
int
,
default
=
2
,
help
=
"maximum mononucleotide stretch length"
)
help
=
"maximum mononucleotide stretch length
(int default=%(default)s)
"
)
parser_test
=
subparsers
.
add_parser
(
"test"
,
parents
=
[
input_parser
,
distance_parser
],
description
=
docSplit
(
testBarcodes
))
...
...
Write
Preview
Supports
Markdown
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