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
Amandine PERRIN
pipeline_annotation
Commits
a97016e3
Commit
a97016e3
authored
Dec 16, 2021
by
Amandine PERRIN
Browse files
tests for tol parameter as float
parent
813ea544
Pipeline
#71593
failed with stages
in 28 minutes and 26 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/data/all/init_files/conffile-corepers.ini
0 → 100644
View file @
a97016e3
[DEFAULT]
threads
=
10
#quiet = True
verbose
=
1
[prepare]
verbose
=
4
#NCBI_species_taxid =
#NCBI_species =
#tmp_dir =
#db_dir =
#info_file =
#l90 = 100
#nbcont = 999
#cutn = 5
min_dist
=
0.01
#max_dist = 0.06
norefseq
=
True
#only_mash = False
[annotate]
#prodigal_only = False
#name =
#date =
#nbcont = 999
#cutn = 5
#qc_only = False
[pangenome]
#clust_mode = 1
#outfile = mypan
#spedir = myprots
min_id
=
0.85
[corepers]
tol
=
0.85
#multi = False
#mixed = False
#floor = False
[tree]
#soft = fasttree
#model =
#boot = False
#write_boot = False
#memory =
fast
=
False
\ No newline at end of file
test/test_functional/test_all-parser.py
View file @
a97016e3
...
...
@@ -191,6 +191,28 @@ def test_annot_defvalue(capsys):
assert
not
options
.
boot
def
test_corepers_tol
(
capsys
):
"""
Test when a float value is given for tol parameter of corepers
"""
parser
=
argparse
.
ArgumentParser
(
description
=
"Run all modules"
,
add_help
=
False
)
allm
.
build_parser
(
parser
)
options
=
allm
.
parse
(
parser
,
"-c test/data/all/init_files/conffile-corepers.ini -o out-all -n TEST"
.
split
())
assert
options
.
outdir
==
"out-all"
assert
options
.
threads
==
10
assert
not
options
.
ncbi_species_taxid
assert
options
.
prodigal_only
==
False
assert
options
.
min_dist
==
0.01
assert
options
.
norefseq
assert
options
.
l90
==
100
assert
options
.
clust_mode
==
1
assert
options
.
min_id
==
0.85
assert
options
.
tol
==
0.85
assert
not
options
.
multi
assert
not
options
.
boot
def
test_parser_cutn_l90_nbcont
():
"""
When user gives custom value for cutn, l90 and/or nbcont, it keeps it. No replacement with annotate module.
...
...
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