No retraction, correction or concern found when last checked on Oct 17, 2026.
GToTree: a user-friendly workflow for phylogenomics
Michael D Lee
Bioinformatics · 2019 · CC BY
doi:10.1093/bioinformatics/btz188
Abstract
Summary. Genome-level evolutionary inference (i.e. phylogenomics) is becoming an increasingly essential step in many biologists’ work. Accordingly, there are several tools available for the major steps in a phylogenomics workflow. But for the biologist whose main focus is not bioinformatics, much of the computational work required—such as accessing genomic data on large scales, integrating genomes from different file formats, performing required filtering, stitching different tools together etc.—can be prohibitive. Here I introduce GToTree, a command-line tool that can take any combination of fasta files, GenBank files and/or NCBI assembly accessions as input and outputs an alignment file, estimates of genome completeness and redundancy, and a phylogenomic tree based on a specified single-copy gene (SCG) set. Although GToTree can work with any custom hidden Markov Models (HMMs), also included are 13 newly generated SCG-set HMMs for different lineages and levels of resolution, built based on searches of ∼12 000 bacterial and archaeal high-quality genomes. GToTree aims to give more researchers the capability to make phylogenomic trees.
Availability and implementation. GToTree is open-source and freely available for download from: github.com/AstrobioMike/GToTree. It is implemented primarily in bash with helper scripts written in python.
Supplementary information. Supplementary data are available at Bioinformatics online.
Full text
From PubMed Central, U.S. National Library of Medicine, as current on Oct 17, 2026. Paragraph numbers are ours, so an answer can point at one.
1 Introduction
The number of sequenced genomes is increasing rapidly, largely through the recovery of metagenome-assembled genomes (e.g.; ) and through the generation of single-cell amplified genomes (e.g.; Kashtan ). Phylogenomics (inferring genome-level evolutionary relationships) is becoming a fundamental step in many biologists’ work—such as in the characterization of newly recovered genomes, or in leveraging available reference genomes to guide evolutionary questions.
There are several tools available for the major steps in a typical phylogenomics workflow, and at least one analysis platform that incorporates a phylogenomics workflow amid a larger infrastructure (anvi’o; ). But a complete workflow focused solely on phylogenomics, enabling greater efficiency and scalability, and with flexibility with regard to input formats, is lacking.
GToTree fills a void on three primary fronts: (i) it accepts as input any combination of fasta files, GenBank files and/or NCBI accessions—allowing integration of genomes from various sources and stages of analysis without any computational burden to the user; (ii) it enables the automation of required between-tool tasks such as filtering out hits by gene-length, filtering out genomes with too few hits to a specified target gene-set, and swapping genome identifiers so resulting trees and alignments can be explored more easily; and (iii) its scalability—GToTree can turn ∼1700 input genomes into a tree in 1 h on a standard laptop, and can optionally run many steps in parallel. This software gives more researchers the capability to create phylogenomic trees to aid in their work. At the time of publication, GToTree is primarily implemented in bash, but it will be converted to entirely python and be controlled by a more appropriate workflow language in the near future.
2.1 Input
The required inputs to GToTree are (i) any combination of fasta files, GenBank files and/or NCBI assembly accessions, and (ii) an hidden Markov Model (HMM) file with the target genes. The HMM file can be custom or one of the 13 included HMM files covering varying breadths of diversity (discussed below). Optionally, the user can also provide a mapping file of specific input genome IDs with the labels they would like to have displayed in the final alignment and tree.
2.2 Processing
An overview of the GToTree workflow is presented in Figure 1 and detailed here: Retrieve coding-sequences (CDSs) for input genomes, depending on the input source: fasta files—identify CDSs with prodigal (Hyatt et al., 2010)GenBank files—extract CDSs if annotated, if not identify with prodigal (Hyatt et al., 2010)NCBI accession—download amino acid sequences of CDSs if annotated, if not, download the assembly and identify CDSs with prodigal (Hyatt et al., 2010)Identify target genes in all genomes with HMMER3 using pre-defined model cutoffs (–cut_ga) by default, if a genome has more than one hit to a target gene, no gene will be contributed to the alignment for that target gene from that genome.Report estimates of genome completeness/redundancy using the information from the HMM search (see Supplementary Note S1).Filter out potentially spurious gene-hits based on length, and genomes based on fraction of target-genes detected.Align each gene-set with Muscle, perform automated trimming with Trimal, and concatenate all.Optionally add custom genome labels or lineages (for any that have taxids associated with them whether from NCBI accession or found in provided GenBank files; utilizes TaxonKit; ).Generate tree, currently supported are FastTree (; note: FastTree does not enable incorporation of a specified root in tree generation) and IQ-TREE (; IQ-TREE does enable the incorporation of a specified root).
Retrieve coding-sequences (CDSs) for input genomes, depending on the input source: fasta files—identify CDSs with prodigal (Hyatt et al., 2010)GenBank files—extract CDSs if annotated, if not identify with prodigal (Hyatt et al., 2010)NCBI accession—download amino acid sequences of CDSs if annotated, if not, download the assembly and identify CDSs with prodigal (Hyatt et al., 2010)
fasta files—identify CDSs with prodigal (Hyatt et al., 2010)
GenBank files—extract CDSs if annotated, if not identify with prodigal (Hyatt et al., 2010)
NCBI accession—download amino acid sequences of CDSs if annotated, if not, download the assembly and identify CDSs with prodigal (Hyatt et al., 2010)
Identify target genes in all genomes with HMMER3 using pre-defined model cutoffs (–cut_ga) by default, if a genome has more than one hit to a target gene, no gene will be contributed to the alignment for that target gene from that genome.
by default, if a genome has more than one hit to a target gene, no gene will be contributed to the alignment for that target gene from that genome.
Report estimates of genome completeness/redundancy using the information from the HMM search (see Supplementary Note S1).
Filter out potentially spurious gene-hits based on length, and genomes based on fraction of target-genes detected.
Align each gene-set with Muscle, perform automated trimming with Trimal, and concatenate all.
Optionally add custom genome labels or lineages (for any that have taxids associated with them whether from NCBI accession or found in provided GenBank files; utilizes TaxonKit; ).
Generate tree, currently supported are FastTree (; note: FastTree does not enable incorporation of a specified root in tree generation) and IQ-TREE (; IQ-TREE does enable the incorporation of a specified root).
2.3 Outputs
The primary outputs from GToTree include the full alignment file (fasta), the tree file (newick), and tab-delimited summary tables with information on all genomes and individual ones for each genome input source. Additionally, outputs include report files on filtered or problematic genes/genomes.
2.4 CG-set generation
All 17, 929 Pfam (protein families; ) HMM profiles from release 32.0 (accessed on December 2018) were downloaded from the Pfam ftp site (ftp://ftp.ebi.ac.uk/pub/databases/Pfam/). As Pfam-HMMs actually target-specific domains or protein regions, there are many unique Pfam entries that come from the same functional protein—e.g. Enolase_N (PF03952) and Enolase_C (PF00113). This is not ideal if using them to search for single-copy genes (SCGs) for purposes such as phylogenomics or completion/redundancy estimates). To ensure no two Pfam-HMMs from the same protein were contained in a SCG-set, only Pfams with HMMs that on average covered >50% of the underlying protein sequences that went into building that Pfam’s HMM were retained. This left 8924 Pfams.
To identify target SCGs, amino-acid CDSs of all ‘complete’ genomes with annotations in NCBI were downloaded for bacteria (n = 11, 405; accessed December 9, 2018) and archaea (n = 309; accessed December 15, 2018) (‘Complete’ is a specific classification of genome quality assigned by NCBI, see Supplementary Material Note S2.). All protein sequences were searched against the 8924 filtered Pfam-HMMs with ‘hmmsearch’ (HMMER v3.2.1; ) with default settings other than specifying the ‘–cut_ga’ flag to utilize the gathering thresholds stored in the curated Pfam models. Reported protein hits for each individual Pfam were tallied for each individual genome (Supplementary Table S1; available at figshare.com/articles/Supp_Table_1/7562453). SCG-sets were generated for all Bacteria, all Archaea, and then for each bacterial phylum that held >99 genomes, and each proteobacterial class that had >99 genomes. For each of those taxonomic groups, Pfams that had exactly 1 hit in greater than or equal to 90% of the genomes of that group were retained as the SCG-set for that group. The counts for HMM hits for all genomes assayed are presented in Supplementary Table S2, and the code used to generate the bacterial SCG-set as an example is presented here: github.com/AstrobioMike/GToTree/wiki/SCG-sets.
3 Results
To exemplify GToTree, NCBI assembly accessions were downloaded for all RefSeq, complete, representative genomes (with the search query ‘“latest refseq”[filter] AND “complete genome”[filter] AND “representative genome”[filter] AND all[filter] NOT anomalous[filter]’ performed on Decemeber 20, 2018). This resulted in 1698 genomes spanning Archaea, Bacteria and Eukarya (please see Supplementary MaterialNote S3 on including Eukaryotes with GToTree). Using a SCG-set that spans all three domains, runtime to create this tree (Fig. 1) was ∼60 min on a standard laptop (used was a late 2013 MacBook Pro). The tree was visualized by uploading the output newick file to the web-hosted Interactive Tree of Life, all code to generate it and the results files come packaged with GToTree.
References 16
- 1.
Berube P.M. et al (2018 ) Single cell genomes of Prochlorococcus, Synechococcus, and sympatric microbes from diverse marine environments. Sci. Data, 5, 180154.
Not in our library10.1038/sdata.2018.154
- 2.
Braakman R. et al (2017 ) Metabolic evolution and the self-organization of ecosystems. Proc. Natl. Acad. Sci USA, 114, E3091–E3100.
Not in our library10.1073/pnas.1619573114
- 3.
- 4.
- 5.
- 6.
- 7.
Gutíerrez S.C. et al (2009 ) TrimAl: a Tool for automatic alignment trimming. Bioinformatics, 25, 1972–1973.
Not in our library10.1093/bioinformatics/btp348
- 8.
Hug L.A. et al (2016 ) A new view of the tree of life. Nat. Microbiol., 1, 1–6.
Not in our library10.1038/nmicrobiol.2016.48
- 9.
Hyatt D. et al (2012 ) Gene and translation initiation site prediction in metagenomic sequences. Bioinformatics, 28, 2223–2230.
Not in our library10.1093/bioinformatics/bts429
- 10.
Kashtan N. et al (2014 ) Single-cell genomics reveals hundreds of coexisting subpopulations in wild Prochlorococcus. Science, 344, 416–420.
Not in our library10.1126/science.1248575
- 11.
Letunic I., Bork P. (2016 ) Interactive tree of life (iToL) v3: an online tool for the display and annotation of phylogenetic and other trees. Nucleic Acids Res., 44, W242–W245.
Not in our library10.1093/nar/gkw290
- 12.
Nguyen L.-T. et al (2015 ) IQ-TREE: a fast and effective stochastic algorithm for estimating maximum likelihood phylogenies. Mol. Biol. Evol., 32, 268–274.
Not in our library10.1093/molbev/msu300
- 13.
Parks D.H. et al (2017 ) Recovery of nearly 8, 000 metagenome-assembled genomes substantially expands the tree of life. Nat. Microbiol., 2, 1533–1542.
Not in our library10.1038/s41564-017-0012-7
- 14.
- 15.
Shen W., Xiong J. (2019 ) TaxonKit: a cross-platform and efficient NCBI taxonomy toolkit. bioRxiv, doi: doi.org/10.1101/513523.
Not in our library
- 16.
Towns T. et al (2014 ) XSEDE: Accelerating Scientific Discovery. Comput Sci Eng., 16, 62–74.
Not in our library
Cited by papers we hold 4
- Metagenomes, metatranscriptomes and microbiomes of naturally decomposing deadwood · 2021Not checked
- GABA Production by Human Intestinal Bacteroides spp.: Prevalence, Regulation, and Role in Acid Stress Tolerance · 2021No notice
- CeMbio - The Caenorhabditis elegans Microbiome Resource · 2020No notice
- Precise phylogenetic analysis of microbial isolates and genomes from metagenomes using PhyloPhlAn 3.0 · 2020No notice
Reads
Read by people on this page
None yet.
Checked or read by AI through naulon
None yet.
A person counts once a day per paper. We keep no cookie and no address: a reader is a hash that changes every day. Any month under five reads shows no number.
Are you an author?
Is this your paper?
Claim it to add your note and be paid when agents cite it. Free.