Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
panacota
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Amandine PERRIN
panacota
Commits
9e67ecf8
Commit
9e67ecf8
authored
4 years ago
by
Amandine PERRIN
Browse files
Options
Downloads
Patches
Plain Diff
Func test tree module when not verbose
parent
6d9d6899
No related branches found
No related tags found
No related merge requests found
Pipeline
#40109
passed
4 years ago
Stage: test
Stage: coverage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/test_functional/test_tree.py
+37
-0
37 additions, 0 deletions
test/test_functional/test_tree.py
with
37 additions
and
0 deletions
test/test_functional/test_tree.py
+
37
−
0
View file @
9e67ecf8
...
...
@@ -121,6 +121,43 @@ def test_main_quicktree(capsys):
assert
"
END
"
in
out
def
test_main_quicktree_notverbose
(
capsys
):
"""
Test that when giving the alignment file, running with quicktree, no bootstraps,
it creates expected files
"""
outdir
=
GENEPATH
soft
=
"
quicktree
"
model
=
None
threads
=
1
cmd
=
"
cmd: test_main_quicktree
"
tree
.
main
(
cmd
,
ALIGNMENT
,
outdir
,
soft
,
model
,
threads
)
# Check output files
# stockholm alignments
stockholm
=
os
.
path
.
join
(
outdir
,
"
exp_pers4genomes.grp.aln.stockholm
"
)
assert
os
.
path
.
isfile
(
stockholm
)
# quicktree logfile
log_file
=
stockholm
+
"
.quicktree.log
"
assert
os
.
path
.
isfile
(
log_file
)
with
open
(
log_file
,
"
r
"
)
as
logf
:
assert
logf
.
readlines
()
==
[]
# tree file
tree_file
=
stockholm
+
"
.quicktree_tree.nwk
"
assert
os
.
path
.
isfile
(
tree_file
)
assert
tutils
.
is_tree_lengths
(
tree_file
)
assert
not
tutils
.
is_tree_bootstrap
(
tree_file
)
# log files
logs_base
=
os
.
path
.
join
(
outdir
,
"
PanACoTA-tree-quicktree.log
"
)
assert
os
.
path
.
isfile
(
logs_base
)
assert
os
.
path
.
isfile
(
logs_base
+
"
.details
"
)
assert
os
.
path
.
isfile
(
logs_base
+
"
.err
"
)
# Check logs
out
,
err
=
capsys
.
readouterr
()
assert
"
Converting fasta alignment to stockholm format.
"
in
out
assert
"
Running Quicktree...
"
in
out
assert
"
END
"
in
out
def
test_main_fastme
(
capsys
):
"""
Test that when giving the alignment file, running with fastme, no bootstraps,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment