Skip to content
Snippets Groups Projects
Commit 49b1228c authored by Amandine  PERRIN's avatar Amandine PERRIN
Browse files

Add information on iqtree installation

parent 9304ecb0
No related branches found
No related tags found
No related merge requests found
Pipeline #34364 passed
...@@ -124,11 +124,12 @@ def install_all(install_dir, target, dev=False, user=False): ...@@ -124,11 +124,12 @@ def install_all(install_dir, target, dev=False, user=False):
msg += ("\t- mafft (to align persistent genomes in order to infer a phylogenetic tree " msg += ("\t- mafft (to align persistent genomes in order to infer a phylogenetic tree "
"after)\n") "after)\n")
if "trees" in to_install_user: if "trees" in to_install_user:
msg += ("\t- One of the 3 following softwares, used to infer a phylogenetic tree:\n" msg += ("\t- One of the 4 following softwares, used to infer a phylogenetic tree:\n"
"\t\t* FastTree (see README or documentation for more information on how to " "\t\t* FastTree (see README or documentation for more information on how to "
"install it)\n" "install it)\n"
"\t\t* FastME\n" "\t\t* FastME\n"
"\t\t* Quicktree\n") "\t\t* Quicktree\n"
"\t\t* IQtree (or IQtree2)")
msg += ("See more information on how to download/install those softwares in README or in " msg += ("See more information on how to download/install those softwares in README or in "
"documentation.") "documentation.")
logger.warning(msg) logger.warning(msg)
...@@ -160,7 +161,7 @@ def check_dependencies(target): ...@@ -160,7 +161,7 @@ def check_dependencies(target):
if not cmd_exists("mafft"): if not cmd_exists("mafft"):
to_install_user.append("mafft") to_install_user.append("mafft")
if not cmd_exists("FastTreeMP") and not cmd_exists("fastme") and not cmd_exists( if not cmd_exists("FastTreeMP") and not cmd_exists("fastme") and not cmd_exists(
"quicktree"): "quicktree") and not cmd_exists("iqtree") and not cmd_exists("iqtree2"):
to_install_user.append("trees") to_install_user.append("trees")
return to_install_user return to_install_user
......
...@@ -145,6 +145,7 @@ def test_uninstall(install_panacota): ...@@ -145,6 +145,7 @@ def test_uninstall(install_panacota):
assert utils.check_installed("prokka") assert utils.check_installed("prokka")
assert utils.check_installed("mash") assert utils.check_installed("mash")
assert utils.check_installed("quicktree") assert utils.check_installed("quicktree")
assert utils.check_installed("iqtree") or utils.check_installed("iqtree2")
logfile = "install.log" logfile = "install.log"
with open(logfile, "r") as logf: with open(logfile, "r") as logf:
lines = logf.readlines() lines = logf.readlines()
......
...@@ -71,9 +71,9 @@ def test_install(): ...@@ -71,9 +71,9 @@ def test_install():
"- prokka (for annotate subcommand, with syntaxic + functional annotation)", "- prokka (for annotate subcommand, with syntaxic + functional annotation)",
"- prodigal : for annotate subcommand, you at least need prodigal (for syntaxic " "- prodigal : for annotate subcommand, you at least need prodigal (for syntaxic "
"annotation only). If you even need functional annotation, also install prokka", "annotation only). If you even need functional annotation, also install prokka",
"- One of the 3 following softwares, used to infer a phylogenetic tree:", "- One of the 4 following softwares, used to infer a phylogenetic tree:",
"* FastTree (see README or documentation for more information on how to " "* FastTree (see README or documentation for more information on how to "
"install it)", "* FastME", "* Quicktree"] "install it)", "* FastME", "* Quicktree", "* IQtree (or IQtree2)"]
# Check output logfile content. Check that all content is present, in any order. # Check output logfile content. Check that all content is present, in any order.
with open(logfile, "r") as logf: with open(logfile, "r") as logf:
logf_content = "".join(logf.readlines()) logf_content = "".join(logf.readlines())
...@@ -165,9 +165,9 @@ def test_develop(): ...@@ -165,9 +165,9 @@ def test_develop():
"- prokka (for annotate subcommand, with syntaxic + functional annotation). " "- prokka (for annotate subcommand, with syntaxic + functional annotation). "
"If you only need syntaxic annotation, prodigal is enough.", "If you only need syntaxic annotation, prodigal is enough.",
"- prodigal : for annotate subcommand, you at least need prodigal (for syntaxic ", "- prodigal : for annotate subcommand, you at least need prodigal (for syntaxic ",
"- One of the 3 following softwares, used to infer a phylogenetic tree:", "- One of the 4 following softwares, used to infer a phylogenetic tree:",
"* FastTree (see README or documentation for more information on how to " "* FastTree (see README or documentation for more information on how to "
"install it)", "* FastME", "* Quicktree", "DONE"] "install it)", "* FastME", "* Quicktree", "* IQtree (or IQtree2)", "DONE"]
# Check output logfile content. Check that all content is present, in any order. # Check output logfile content. Check that all content is present, in any order.
with open(logfile, "r") as logf: with open(logfile, "r") as logf:
logf_content = "".join(logf.readlines()) logf_content = "".join(logf.readlines())
......
...@@ -76,9 +76,9 @@ def test_install_panacota(): ...@@ -76,9 +76,9 @@ def test_install_panacota():
"- prokka (for annotate subcommand, with syntaxic + functional annotation). " "- prokka (for annotate subcommand, with syntaxic + functional annotation). "
"If you only need syntaxic annotation, prodigal is enough.", "If you only need syntaxic annotation, prodigal is enough.",
"- barrnap. If you use Prokka for functional annotation, it will not predict RNA.", "- barrnap. If you use Prokka for functional annotation, it will not predict RNA.",
"- One of the 3 following softwares, used to infer a phylogenetic tree:", "- One of the 4 following softwares, used to infer a phylogenetic tree:",
"* FastTree (see README or documentation for more information on how to " "* FastTree (see README or documentation for more information on how to "
"install it)", "* FastME", "* Quicktree"] "install it)", "* FastME", "* Quicktree", "* IQtree (or IQtree2)"]
# Check output logfile content. Check that all content is present, in any order. # Check output logfile content. Check that all content is present, in any order.
with open(logfile, "r") as logf: with open(logfile, "r") as logf:
logf_content = "".join(logf.readlines()) logf_content = "".join(logf.readlines())
...@@ -176,9 +176,9 @@ def test_develop(): ...@@ -176,9 +176,9 @@ def test_develop():
"after)", "after)",
"- prokka (for annotate subcommand, with syntaxic + functional annotation). " "- prokka (for annotate subcommand, with syntaxic + functional annotation). "
"If you only need syntaxic annotation, prodigal is enough.", "If you only need syntaxic annotation, prodigal is enough.",
"- One of the 3 following softwares, used to infer a phylogenetic tree:", "- One of the 4 following softwares, used to infer a phylogenetic tree:",
"* FastTree (see README or documentation for more information on how to " "* FastTree (see README or documentation for more information on how to "
"install it)", "* FastME", "* Quicktree", "DONE"] "install it)", "* FastME", "* Quicktree", "* IQtree (or IQtree2)", "DONE"]
# Check output logfile content. Check that all content is present, in any order. # Check output logfile content. Check that all content is present, in any order.
with open(logfile, "r") as logf: with open(logfile, "r") as logf:
logf_content = "".join(logf.readlines()) logf_content = "".join(logf.readlines())
...@@ -224,9 +224,9 @@ def test_install_user(): ...@@ -224,9 +224,9 @@ def test_install_user():
"after)", "after)",
"- prokka (for annotate subcommand, with syntaxic + functional annotation). " "- prokka (for annotate subcommand, with syntaxic + functional annotation). "
"If you only need syntaxic annotation, prodigal is enough.", "If you only need syntaxic annotation, prodigal is enough.",
"- One of the 3 following softwares, used to infer a phylogenetic tree:", "- One of the 4 following softwares, used to infer a phylogenetic tree:",
"* FastTree (see README or documentation for more information on how to " "* FastTree (see README or documentation for more information on how to "
"install it)", "* FastME", "* Quicktree", "DONE"] "install it)", "* FastME", "* Quicktree", "* IQtree (or IQtree2)", "DONE"]
with open(logfile, "r") as logf: with open(logfile, "r") as logf:
logf_content = "".join(logf.readlines()) logf_content = "".join(logf.readlines())
for linec in content: for linec in content:
......
...@@ -38,6 +38,7 @@ def test_install_prokka_quicktree(): ...@@ -38,6 +38,7 @@ def test_install_prokka_quicktree():
assert not utils.check_installed("barrnap") assert not utils.check_installed("barrnap")
assert not utils.check_installed("prodigal") assert not utils.check_installed("prodigal")
assert utils.check_installed("quicktree") assert utils.check_installed("quicktree")
assert not utils.check_installed("iqtree")
assert utils.check_installed("prokka") assert utils.check_installed("prokka")
assert not utils.check_installed("PanACoTA") assert not utils.check_installed("PanACoTA")
assert utils.check_installed('quicktree') assert utils.check_installed('quicktree')
......
...@@ -36,6 +36,8 @@ def test_install_panacota_base_ubuntu(): ...@@ -36,6 +36,8 @@ def test_install_panacota_base_ubuntu():
assert not utils.check_installed("quicktree") assert not utils.check_installed("quicktree")
assert not utils.check_installed("fastme") assert not utils.check_installed("fastme")
assert not utils.check_installed("FastTreeMP") assert not utils.check_installed("FastTreeMP")
assert not utils.check_installed("iqtree")
assert not utils.check_installed("iqtree2")
assert not utils.check_installed("mash") assert not utils.check_installed("mash")
utils.run_cmd(cmd, error) utils.run_cmd(cmd, error)
assert not utils.check_installed("barrnap") assert not utils.check_installed("barrnap")
...@@ -46,6 +48,8 @@ def test_install_panacota_base_ubuntu(): ...@@ -46,6 +48,8 @@ def test_install_panacota_base_ubuntu():
assert not utils.check_installed("quicktree") assert not utils.check_installed("quicktree")
assert not utils.check_installed("fastme") assert not utils.check_installed("fastme")
assert not utils.check_installed("FastTreeMP") assert not utils.check_installed("FastTreeMP")
assert not utils.check_installed("iqtree")
assert not utils.check_installed("iqtree2")
assert not utils.check_installed("mash") assert not utils.check_installed("mash")
assert utils.check_installed("PanACoTA") assert utils.check_installed("PanACoTA")
cmd = "pip3 show PanACoTA" cmd = "pip3 show PanACoTA"
...@@ -75,10 +79,10 @@ def test_install_panacota_base_ubuntu(): ...@@ -75,10 +79,10 @@ def test_install_panacota_base_ubuntu():
"- prokka (for annotate subcommand, with syntaxic + functional annotation). " "- prokka (for annotate subcommand, with syntaxic + functional annotation). "
"If you only need syntaxic annotation, prodigal is enough.", "If you only need syntaxic annotation, prodigal is enough.",
"- barrnap. If you use Prokka for functional annotation, it will not predict RNA.", "- barrnap. If you use Prokka for functional annotation, it will not predict RNA.",
"- mmseqs (for pangenome subcommand)", "* Quicktree", "- mmseqs (for pangenome subcommand)", "* Quicktree", "* IQtree (or IQtree2)",
"- mafft (to align persistent genomes in order to infer a phylogenetic " "- mafft (to align persistent genomes in order to infer a phylogenetic "
"tree after)", "tree after)",
"- One of the 3 following softwares, used to infer a phylogenetic tree:", "- One of the 4 following softwares, used to infer a phylogenetic tree:",
"* FastTree (see README or documentation for more information on how to " "* FastTree (see README or documentation for more information on how to "
"install it)", "* FastME", "See more information on how to " "install it)", "* FastME", "See more information on how to "
"download/install those softwares in README or in documentation."] "download/install those softwares in README or in documentation."]
...@@ -140,9 +144,9 @@ def test_develop(): ...@@ -140,9 +144,9 @@ def test_develop():
"- prokka (for annotate subcommand, with syntaxic + functional annotation). " "- prokka (for annotate subcommand, with syntaxic + functional annotation). "
"If you only need syntaxic annotation, prodigal is enough.", "If you only need syntaxic annotation, prodigal is enough.",
"- prodigal : for annotate subcommand, you at least need prodigal (for syntaxic ", "- prodigal : for annotate subcommand, you at least need prodigal (for syntaxic ",
"- One of the 3 following softwares, used to infer a phylogenetic tree:", "- One of the 4 following softwares, used to infer a phylogenetic tree:",
"* FastTree (see README or documentation for more information on how to " "* FastTree (see README or documentation for more information on how to "
"install it)", "* FastME", "* Quicktree"] "install it)", "* FastME", "* Quicktree", "* IQtree (or IQtree2)"]
# Check output logfile content. Check that all content is present, in any order. # Check output logfile content. Check that all content is present, in any order.
with open(logfile, "r") as logf: with open(logfile, "r") as logf:
logf_content = "".join(logf.readlines()) logf_content = "".join(logf.readlines())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment