<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.2 20190208//EN" "http://jats.nlm.nih.gov/publishing/1.2/JATS-journalpublishing1.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="web-tools" dtd-version="1.2" xml:lang="en">
    <front>
        <journal-meta>
            <journal-id journal-id-type="pmc">F1000Research</journal-id>
            <journal-title-group>
                <journal-title>F1000Research</journal-title>
            </journal-title-group>
            <issn pub-type="epub">2046-1402</issn>
            <publisher>
                <publisher-name>F1000 Research Limited</publisher-name>
                <publisher-loc>London, UK</publisher-loc>
            </publisher>
        </journal-meta>
        <article-meta>
            <article-id pub-id-type="doi">10.12688/f1000research.3-49.v1</article-id>
            <article-categories>
                <subj-group subj-group-type="heading">
                    <subject>Web Tool</subject>
                </subj-group>
                <subj-group>
                    <subject>Articles</subject>
                    <subj-group>
                        <subject>Bioinformatics</subject>
                    </subj-group>
                </subj-group>
            </article-categories>
            <title-group>
                <article-title>
                    <italic>treeWidget</italic>: a BioJS component to visualise phylogenetic trees</article-title>
                <fn-group content-type="pub-status">
                    <fn>
                        <p>[version 1; peer review: 1 approved, 1 approved with reservations]</p>
                    </fn>
                </fn-group>
            </title-group>
            <contrib-group>
                <contrib contrib-type="author" corresp="yes">
                    <name>
                        <surname>Schreiber</surname>
                        <given-names>Fabian</given-names>
                    </name>
                    <xref ref-type="corresp" rid="c1">a</xref>
                    <xref ref-type="aff" rid="a1">1</xref>
                    <xref ref-type="aff" rid="a2">2</xref>
                </contrib>
                <aff id="a1">
                    <label>1</label>The Wellcome Trust Sanger Institute, Hinxton, Cambridge, CB10 1SD, UK</aff>
                <aff id="a2">
                    <label>2</label>European Molecular Biology Laboratory, European Bioinformatics Institute (EMBL-EBI), Wellcome Trust Genome Campus, Hinxton, Cambridge, CB10 1SD, UK</aff>
            </contrib-group>
            <author-notes>
                <corresp id="c1">
                    <label>a</label>
                    <email xlink:href="mailto:fs@ebi.ac.uk">fs@ebi.ac.uk</email>
                </corresp>
                <fn fn-type="conflict">
                    <p>
                        <bold>Competing interests: </bold>No competing interests were disclosed.</p>
                </fn>
            </author-notes>
            <pub-date pub-type="epub">
                <day>13</day>
                <month>2</month>
                <year>2014</year>
            </pub-date>
            <pub-date pub-type="collection">
                <year>2014</year>
            </pub-date>
            <volume>3</volume>
            <elocation-id>49</elocation-id>
            <history>
                <date date-type="accepted">
                    <day>3</day>
                    <month>2</month>
                    <year>2014</year>
                </date>
            </history>
            <permissions>
                <copyright-statement>Copyright: &#x00a9; 2014 Schreiber F</copyright-statement>
                <copyright-year>2014</copyright-year>
                <license xlink:href="https://creativecommons.org/licenses/by/3.0/">
                    <license-p>This is an open access article distributed under the terms of the Creative Commons Attribution Licence, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.</license-p>
                </license>
            </permissions>
            <self-uri content-type="pdf" xlink:href="https://f1000research.com/articles/3-49/pdf"/>
            <abstract>
                <p>
                    <bold>Summary:</bold> Phylogenetic trees are widely used to represent the evolution of gene families. As the history of gene families can be complex (including lots of gene duplications), its visualisation can become a difficult task. A good/accurate visualisation of phylogenetic trees - especially on the web - allows easier understanding and interpretation of trees to help to reveal the mechanisms that shape the evolution of a specific set of gene/species. Here, I present 
                    <italic toggle="yes">treeWidget</italic>, a modular BioJS component to visualise phylogenetic trees on the web. Through its modularity, 
                    <italic toggle="yes">treeWidget</italic> can be easily customized to allow the display of sequence information, e.g. protein domains and alignment conservation patterns.</p>
            </abstract>
            <funding-group>
                <funding-statement>Wellcome Trust [WT077044/Z/05/Z] to FS.</funding-statement>
            </funding-group>
        </article-meta>
    </front>
    <body>
        <sec sec-type="intro">
            <title>Introduction</title>
            <p>A phylogenetic tree is a branching diagram showing the inferred relationships of genes or species. Reconstructing a phylogenetic tree is a routine task in most evolutionary-related analyses and a number of databases exist containing precomputed phylogenetic trees (e.g. TreeFam
                <sup>
                    <xref ref-type="bibr" rid="ref-1">1</xref>
                </sup>, Ensembl Gene Trees
                <sup>
                    <xref ref-type="bibr" rid="ref-2">2</xref>
                </sup>, Panther
                <sup>
                    <xref ref-type="bibr" rid="ref-3">3</xref>
                </sup>). These reconstructed trees can vary considerably in the number of gene/species shown and in their complexity. While there are many offline tools available to visualise phylogenetic trees (e.g. ETE
                <sup>
                    <xref ref-type="bibr" rid="ref-4">4</xref>
                </sup>), the number of online tools for this purpose is rather limited. Some of them are written in Java and tend to become slow when the number of nodes/edges increases (e.g. Archaeopteryx
                <sup>
                    <xref ref-type="bibr" rid="ref-5">5</xref>
                </sup>). Others written in JavaScript, are therefore faster and more scalable, but do not allow the additional display of useful sequence annotation, e.g. protein domains and alignments. (e.g. phyloWidget
                <sup>
                    <xref ref-type="bibr" rid="ref-6">6</xref>
                </sup>, jsPhyloSVG
                <sup>
                    <xref ref-type="bibr" rid="ref-7">7</xref>
                </sup>). Yet other tools offer that functionality but are not available for download, customization or to be embedded into the users&#x2019; own websites (e.g. iTol
                <sup>
                    <xref ref-type="bibr" rid="ref-8">8</xref>
                </sup>). Despite its widespread use in Bioinformatics, biological web applications for viewing phylogenetic trees are usually implemented with no standard reutilisation guidelines in mind.</p>
            <p>Here I present 
                <italic toggle="yes">treeWidget</italic>, a BioJS
                <sup>
                    <xref ref-type="bibr" rid="ref-9">9</xref>
                </sup> component written in JavaScript to visualise phylogenetic trees on the web. 
                <italic toggle="yes">treeWidget</italic> can be easily integrated into websites and customized. To my knowledge, this is the first modular tree visualisation component.</p>
        </sec>
        <sec>
            <title>The 
                <italic toggle="yes">treeWidget</italic> component</title>
            <p>The 
                <italic toggle="yes">treeWidget</italic> component has been developed as part of the TreeFam project and follows the standards set by the BioJS registry (
                <sup>
                    <xref ref-type="bibr" rid="ref-1">1</xref>
                </sup>, see 
                <xref ref-type="fig" rid="f2">Figure 2</xref> for an example).</p>
            <p>The BioJS registry is a centralised repository of BioJS components hosted at the European Bioinformatics Institute. 
                <italic toggle="yes">treeWidget</italic> uses the JavaScript library D3 for building trees
                <sup>
                    <xref ref-type="bibr" rid="ref-10">10</xref>
                </sup>. It reads trees in JSON format (
                <ext-link ext-link-type="uri" xlink:href="http://www.json.org/">http://www.json.org/</ext-link>) and plots them as scalable vector graphics (SVG, see the 
                <italic toggle="yes">treeWidget</italic> component documentation for a working example of a JSON-formatted tree). Additionally, 
                <italic toggle="yes">treeWidget</italic> can plot annotation in a separate SVG. This way the tree diagram stays fixed whenever the annotation changes (e.g. switching from a domain to a sequence alignment view). 
                <italic toggle="yes">treeWidget</italic> automatically scales the SVG according to the tree&#x2019;s height and so will work with small trees containing only 3 leaves up to trees with several hundreds of leaves by plotting the tree size according to the tree height (number of internal nodes).</p>
            <p>To make the leaf names of gene trees more meaningful, users can add additional information (e.g. gene name, source species, common name, gene function, etc) to the JSON file. 
                <italic toggle="yes">treeWidget</italic> will then plot this information next to the tree leaves (see 
                <xref ref-type="fig" rid="f2">Figure 2</xref>). 
                <italic toggle="yes">treeWidget</italic> can either draw an ultrametric tree (all leaves have the same branch length) or a tree with estimated branch lengths and inner nodes can be labelled with taxon names and bootstrap values.</p>
            <p>In cases where the gene trees contain too many leaves, it is useful to start looking at the gene tree by focussing on a specific part of the tree. This could be, for example, a pig gene that the user is particularly interested in. 
                <italic toggle="yes">treeWidget</italic> allows highlighting of a specific gene and collapsing of sister clades to hide less relevant parts of the tree display (see 
                <xref ref-type="fig" rid="f1">Figure 1</xref>). These collapsed clades can be expanded/collapsed by a mouse click. To make the identification of related species in a gene tree easier, 
                <italic toggle="yes">treeWidget</italic> colours pre-selected taxonomic clades (see 
                <xref ref-type="fig" rid="f2">Figure 2</xref>).</p>
            <fig fig-type="figure" id="f1" orientation="portrait" position="float">
                <label>Figure 1. </label>
                <caption>
                    <title>Gene tree with focus on the CCNC gene in pig.</title>
                    <p>The surrounding sister clades (Carnivora, Cetartiodactyla, Laurasiatheria) are collapsed. They can be expanded by clicking on the node.</p>
                </caption>
                <graphic orientation="portrait" position="float" xlink:href="https://f1000research-files.f1000.com/manuscripts/3676/95b23eb8-002c-4fa5-a112-e5ff19e79604_figure1.gif"/>
            </fig>
            <sec>
                <title>Application</title>
                <p>
                    <italic toggle="yes">treeWidget</italic> can be used to visualise the evolution of species but also that of genes as it is done on the TreeFam website (
                    <ext-link ext-link-type="uri" xlink:href="http://www.treefam.org">http://www.treefam.org</ext-link>). TreeFam&#x2019;s main goal is to present phylogenetic trees of gene families across the animal tree of life. TreeFam also predicts orthology/parology relationships: we speak of orthologs when two genes in different species are the result of a speciation event, whereas paralogs are genes stemming from a duplication event. The 
                    <italic toggle="yes">treeWidget</italic> component allows the display of this information by labelling the internal nodes of each gene tree as either speciation or duplication events. Additionally, the 
                    <italic toggle="yes">treeWidget</italic> component displays patterns of alignment conservation as well as matches of Pfam
                    <sup>
                        <xref ref-type="bibr" rid="ref-11">11</xref>
                    </sup> protein domains on each sequence in the database. In 
                    <xref ref-type="fig" rid="f2">Figure 2</xref> the conserved alignment pattern from the underlying protein sequence alignment is shown. The white alignment parts represent gaps and green parts are aligned parts. Visualising alignment conservation in conjunction with Pfam domains along a gene tree gives useful insights about the evolution of domain architectures
                    <sup>
                        <xref ref-type="bibr" rid="ref-12">12</xref>
                    </sup>. Furthermore, this view can be used to spot problems with assembled genes (split genes or falsely assembled genes).</p>
                <fig fig-type="figure" id="f2" orientation="portrait" position="float">
                    <label>Figure 2. </label>
                    <caption>
                        <title>The 
                            <italic toggle="yes">treeWidget</italic> view showing a part of the 
                            <italic toggle="yes">BRCA2</italic> gene tree with clades coloured according to taxonomy.</title>
                    </caption>
                    <graphic orientation="portrait" position="float" xlink:href="https://f1000research-files.f1000.com/manuscripts/3676/95b23eb8-002c-4fa5-a112-e5ff19e79604_figure2.gif"/>
                </fig>
            </sec>
        </sec>
        <sec sec-type="conclusions">
            <title>Conclusions</title>
            <p>The 
                <italic toggle="yes">treeWidget</italic> component provides a platform for the exploration of complex phylogenetic trees depicting the evolution of large gene families with many duplication/speciation events as well as displaying sequence annotation features. Visualising such complex data allows researchers to see interesting features for further study. I expect this component to be particularly useful to developers and users alike, requiring little technical knowledge for its full functioning.</p>
        </sec>
        <sec>
            <title>Software availability</title>
            <p>Zenodo: BioJS TreeWidget component, doi: 
                <ext-link ext-link-type="uri" xlink:href="http://dx.doi.org/10.5281/zenodo.7751">10.5281/zenodo.7751</ext-link>
                <sup>
                    <xref ref-type="bibr" rid="ref-13">13</xref>
                </sup>
            </p>
            <p>GitHub: BioJS, 
                <ext-link ext-link-type="uri" xlink:href="http://github.com/biojs/biojs">http://github.com/biojs/biojs</ext-link>
            </p>
        </sec>
    </body>
    <back>
        <ack>
            <title>Acknowledgements</title>
            <p>The author thanks Mateus Patricio, Miguel Pignatelli, Matthieu Muffato as well as Alex Bateman for useful feedback.</p>
        </ack>
        <ref-list>
            <ref id="ref-1">
                <label>1</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
						
                        <name name-style="western">
                            <surname>Schreiber</surname>
                            <given-names>F</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Patricio</surname>
                            <given-names>M</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Muffato</surname>
                            <given-names>M</given-names>
                        </name>
						
                        <etal/>
					</person-group>:
                    <article-title>TreeFam v9: a new website, more species and orthology-on-the-fly.</article-title>
                    <source>
						
                        <italic toggle="yes">Nucleic Acids Res.</italic>
					</source>
                    <year>2014</year>;<volume>42</volume>(<issue>Database issue</issue>):<fpage>D922</fpage>&#x2013;<lpage>D925</lpage>.
                    <pub-id pub-id-type="pmid">24194607</pub-id>
                    <pub-id pub-id-type="doi">10.1093/nar/gkt1055</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-2">
                <label>2</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
						
                        <name name-style="western">
                            <surname>Vilella</surname>
                            <given-names>AJ</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Severin</surname>
                            <given-names>J</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Ureta-Vidal</surname>
                            <given-names>A</given-names>
                        </name>
						
                        <etal/>
					</person-group>:
                    <article-title>EnsemblCompara GeneTrees: Complete, duplication-aware phylogenetic trees in vertebrates.</article-title>
                    <source>
						
                        <italic toggle="yes">Genome Res.</italic>
					</source>
                    <year>2009</year>;<volume>19</volume>(<issue>2</issue>):<fpage>327</fpage>&#x2013;<lpage>335</lpage>.
                    <pub-id pub-id-type="pmid">19029536</pub-id>
                    <pub-id pub-id-type="doi">10.1101/gr.073585.107</pub-id>
                    <pub-id pub-id-type="pmcid">2652215</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-3">
                <label>3</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
						
                        <name name-style="western">
                            <surname>Mi</surname>
                            <given-names>H</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Muruganujan</surname>
                            <given-names>A</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Thomas</surname>
                            <given-names>PD</given-names>
                        </name>
					</person-group>:
                    <article-title>PANTHER in 2013: modeling the evolution of gene function, and other gene attributes, in the context of phylogenetic trees.</article-title>
                    <source>
						
                        <italic toggle="yes">Nucleic Acids Res.</italic>
					</source>
                    <year>2013</year>;<volume>41</volume>(<issue>Database issue</issue>):<fpage>D377</fpage>&#x2013;<lpage>D386</lpage>.
                    <pub-id pub-id-type="pmid">23193289</pub-id>
                    <pub-id pub-id-type="doi">10.1093/nar/gks1118</pub-id>
                    <pub-id pub-id-type="pmcid">3531194</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-4">
                <label>4</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
						
                        <name name-style="western">
                            <surname>Huerta-Cepas</surname>
                            <given-names>J</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Dopazo</surname>
                            <given-names>J</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Gabald&#x00f3;n</surname>
                            <given-names>T</given-names>
                        </name>
					</person-group>:
                    <article-title>ETE: a python Environment for Tree Exploration.</article-title>
                    <source>
						
                        <italic toggle="yes">BMC Bioinformatics.</italic>
					</source>
                    <year>2010</year>;<volume>11</volume>(<issue>1</issue>):<fpage>24</fpage>.
                    <pub-id pub-id-type="pmid">20070885</pub-id>
                    <pub-id pub-id-type="doi">10.1186/1471-2105-11-24</pub-id>
                    <pub-id pub-id-type="pmcid">2820433</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-5">
                <label>5</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
						
                        <name name-style="western">
                            <surname>Han</surname>
                            <given-names>MV</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Zmasek</surname>
                            <given-names>CM</given-names>
                        </name>
					</person-group>:
                    <article-title>phyloXML: XML for evolutionary biology and comparative genomics.</article-title>
                    <source>
						
                        <italic toggle="yes">BMC Bioinformatics.</italic>
					</source>
                    <year>2009</year>;<volume>10</volume>:<fpage>356</fpage>.
                    <pub-id pub-id-type="pmid">19860910</pub-id>
                    <pub-id pub-id-type="doi">10.1186/1471-2105-10-356</pub-id>
                    <pub-id pub-id-type="pmcid">2774328</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-6">
                <label>6</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
						
                        <name name-style="western">
                            <surname>Jordan</surname>
                            <given-names>GE</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Piel</surname>
                            <given-names>WH</given-names>
                        </name>
					</person-group>:
                    <article-title>PhyloWidget: web-based visualizations for the tree of life.</article-title>
                    <source>
						
                        <italic toggle="yes">Bioinformatics.</italic>
					</source>
                    <year>2008</year>;<volume>24</volume>(<issue>14</issue>):<fpage>1641</fpage>&#x2013;<lpage>1642</lpage>.
                    <pub-id pub-id-type="pmid">18487241</pub-id>
                    <pub-id pub-id-type="doi">10.1093/bioinformatics/btn235</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-7">
                <label>7</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
						
                        <name name-style="western">
                            <surname>Smits</surname>
                            <given-names>SA</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Ouverney</surname>
                            <given-names>CC</given-names>
                        </name>
					</person-group>:
                    <article-title>jsPhyloSVG: a javascript library for visualizing interactive and vector-based phylogenetic trees on the web.</article-title>
                    <source>
						
                        <italic toggle="yes">PLoS One.</italic>
					</source>
                    <year>2010</year>;<volume>5</volume>(<issue>8</issue>):<fpage>e12267</fpage>.
                    <pub-id pub-id-type="pmid">20805892</pub-id>
                    <pub-id pub-id-type="doi">10.1371/journal.pone.0012267</pub-id>
                    <pub-id pub-id-type="pmcid">2923619</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-8">
                <label>8</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
						
                        <name name-style="western">
                            <surname>Letunic</surname>
                            <given-names>I</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Bork</surname>
                            <given-names>P</given-names>
                        </name>
					</person-group>:
                    <article-title>Interactive Tree Of Life v2: online annotation and display of phylogenetic trees made easy.</article-title>
                    <source>
						
                        <italic toggle="yes">Nucleic Acids Res.</italic>
					</source>
                    <year>2011</year>;<volume>39</volume>(<issue>Web Server issue</issue>):<fpage>W475</fpage>&#x2013;<lpage>8</lpage>.
                    <pub-id pub-id-type="pmid">21470960</pub-id>
                    <pub-id pub-id-type="doi">10.1093/nar/gkr201</pub-id>
                    <pub-id pub-id-type="pmcid">3125724</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-9">
                <label>9</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
						
                        <name name-style="western">
                            <surname>G&#x00f3;mez</surname>
                            <given-names>J</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Garc&#x00ed;a</surname>
                            <given-names>LJ</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Salazar</surname>
                            <given-names>GA</given-names>
                        </name>
						
                        <etal/>
					</person-group>:
                    <article-title>BioJS: an open source JavaScript framework for biological data visualization.</article-title>
                    <source>
						
                        <italic toggle="yes">Bioinformatics.</italic>
					</source>
                    <year>2013</year>;<volume>29</volume>(<issue>8</issue>):<fpage>1103</fpage>&#x2013;<lpage>1104</lpage>.
                    <pub-id pub-id-type="pmid">23435069</pub-id>
                    <pub-id pub-id-type="doi">10.1093/bioinformatics/btt100</pub-id>
                    <pub-id pub-id-type="pmcid">3624812</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-10">
                <label>10</label>
                <mixed-citation publication-type="book">
                    <article-title>D3.js - Data-Driven Documents</article-title>.
                    <ext-link ext-link-type="uri" xlink:href="http://d3js.org/">Reference Source</ext-link>
                </mixed-citation>
            </ref>
            <ref id="ref-11">
                <label>11</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
						
                        <name name-style="western">
                            <surname>Punta</surname>
                            <given-names>M</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Coggill</surname>
                            <given-names>PC</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Eberhardt</surname>
                            <given-names>RY</given-names>
                        </name>
						
                        <etal/>
					</person-group>:
                    <article-title>The Pfam protein families database.</article-title>
                    <source>
						
                        <italic toggle="yes">Nucleic Acids Res.</italic>
					</source>
                    <year>2012</year>;<volume>40</volume>(<issue>Database issue</issue>):<fpage>D290</fpage>&#x2013;<lpage>D301</lpage>.
                    <pub-id pub-id-type="pmid">22127870</pub-id>
                    <pub-id pub-id-type="doi">10.1093/nar/gkr1065</pub-id>
                    <pub-id pub-id-type="pmcid">3245129</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-12">
                <label>12</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
						
                        <name name-style="western">
                            <surname>Forslund</surname>
                            <given-names>K</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Sonnhammer</surname>
                            <given-names>EL</given-names>
                        </name>
					</person-group>:
                    <article-title>Evolution of protein domain architectures.</article-title>
                    <source>
						
                        <italic toggle="yes">Methods Mol Biol.</italic>
					</source>
                    <year>2012</year>;<volume>856</volume>(<issue>Chapter 8</issue>):<fpage>187</fpage>&#x2013;<lpage>216</lpage>.
                    <pub-id pub-id-type="pmid">22399460</pub-id>
                    <pub-id pub-id-type="doi">10.1007/978-1-61779-585-5_8</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-13">
                <label>13</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
						
                        <name name-style="western">
                            <surname>Schreiber</surname>
                            <given-names>F</given-names>
                        </name>
					</person-group>:
                    <article-title>BioJS TreeWidget component.</article-title>
                    <source>
						
                        <italic toggle="yes">Zenodo.</italic>
					</source>
                    <year>2014</year>.
                    <ext-link ext-link-type="uri" xlink:href="http://dx.doi.org/10.5281/zenodo.7751">Data Source</ext-link>
                </mixed-citation>
            </ref>
        </ref-list>
    </back>
    <sub-article article-type="reviewer-report" id="report4248">
        <front-stub>
            <article-id pub-id-type="doi">10.5256/f1000research.3676.r4248</article-id>
            <title-group>
                <article-title>Reviewer response for version 1</article-title>
            </title-group>
            <contrib-group>
                <contrib contrib-type="author">
                    <name>
                        <surname>Smith</surname>
                        <given-names>Stephen A.</given-names>
                    </name>
                    <xref ref-type="aff" rid="r4248a1">1</xref>
                    <role>Referee</role>
                </contrib>
                <aff id="r4248a1">
                    <label>1</label>Ecology and Evolutionary Biology, University of Michigan, Ann Arbor, MI, USA</aff>
            </contrib-group>
            <author-notes>
                <fn fn-type="conflict">
                    <p>
                        <bold>Competing interests: </bold>No competing interests were disclosed.</p>
                </fn>
            </author-notes>
            <pub-date pub-type="epub">
                <day>24</day>
                <month>3</month>
                <year>2014</year>
            </pub-date>
            <permissions>
                <copyright-statement>Copyright: &#x00a9; 2014 Smith SA</copyright-statement>
                <copyright-year>2014</copyright-year>
                <license xlink:href="https://creativecommons.org/licenses/by/4.0/">
                    <license-p>This is an open access peer review report distributed under the terms of the Creative Commons Attribution Licence, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.</license-p>
                </license>
            </permissions>
            <related-article ext-link-type="doi" id="relatedArticleReport4248" related-article-type="peer-reviewed-article" xlink:href="10.12688/f1000research.3-49.v1"/>
            <custom-meta-group>
                <custom-meta>
                    <meta-name>recommendation</meta-name>
                    <meta-value>approve</meta-value>
                </custom-meta>
            </custom-meta-group>
        </front-stub>
        <body>
            <p>
                <italic>treeWidget</italic> is a nice feature full JavaScript tree viewer. This is a relatively straightforward announcement of the tool and I see no major problems. Below are some comments for the author's consideration.</p>
            <p>
                <bold>Major</bold>
            </p>
            <p>The discussion of the license is not in the manuscript. I believe it is Apache 2.0 but it would be good to mention that. Also, I understand it is open source but I might also mention that clearly as well.</p>
            <p>I feel like the author overstates the originality of the library. There is mention of 
                <ext-link ext-link-type="uri" xlink:href="http://www.jsphylosvg.com/">jsphyloSVG</ext-link> which of course is a modular tree visualisation component (negating the last sentence of the introduction). Furthermore, there are others. In particular, Roderic Page has been developing a number of different options that are simple and perhaps not as feature-full but serve to have trees in the BioNames project 
                <ext-link ext-link-type="uri" xlink:href="http://(http://bionames.org">(http://bionames.org</ext-link>/). In fact, this has been around for a few years and available for experimentation (here is one of the early posts about this 
                <ext-link ext-link-type="uri" xlink:href="http://iphylo.blogspot.com/2012/12/viewing-phylogenies-on-web-javascript.htm">http://iphylo.blogspot.com/2012/12/viewing-phylogenies-on-web-javascript.htm</ext-link>
                <ext-link ext-link-type="uri" xlink:href="http://iphylo.blogspot.com/2012/12/viewing-phylogenies-on-web-javascript.html">l</ext-link>). Of course not all of these would be considered more than experimentation, but I would note that it has been an area of long discussion in the bioinformatics field for a while now.</p>
            <p>The documentation is pretty difficult to navigate. There is a fair bit of (also unclear at this point) documentation of the BioJS library with some specific language that is not well defined (what is the registry for exactly?). If&#x00a0; 
                <italic>treeWidget</italic> is in fact going to be particularly useful for web developers to drop into a website, I would suggest making a tutorial specifically designed to show a developer how to incorporate just 
                <italic>treeWidget</italic> and not the entire BioJS package.</p>
            <p>I was unable to generate dynamic examples. This is related to the above comment, but I would generate some more examples and tutorials that explore these options in more detail. Please distribute the code used to make the figures as part of the distribution or in another package. That would be helpful.</p>
            <p>
                <bold>Minor</bold>
            </p>
            <p>I feel like a few edits would improve the manuscript quite a bit. For example, in the introduction, you state:</p>
            <p>"
                <italic>Reconstructing a phylogenetic tree is a routine task in most evolutionary-related analyses and a number of databases exist containing precomputed phylogenetic trees (e.g. TreeFam
                    <sup>1</sup>, Ensembl Gene Trees
                    <sup>2</sup>, Panther
                    <sup>3</sup>). These reconstructed trees can vary considerably in the number of gene/species shown and in their complexity</italic>"</p>
            <p>For the first sentence, I am not entirely sure I understand the relevance of the existence of precomputed trees and if that is important, this is an odd assortment of those resources. Of course there are many more. For the second sentence, I am not certain what you mean by varying in their complexity. I don't think you mean in their complexity in computational sense (but perhaps you do?).</p>
            <p>Because JSON is not often used in phylogenetics packages, I suspect that you will attract more users if you can take newick formats. You can see some examples using other packages here: 
                <ext-link ext-link-type="uri" xlink:href="http://bl.ocks.org/rdmpage/raw/4224658/">http://bl.ocks.org/rdmpage/raw/4224658/</ext-link>.</p>
            <p>Reviewer Expertise:</p>
            <p>NA</p>
            <p>I confirm that I have read this submission and believe that I have an appropriate level of expertise to confirm that it is of an acceptable scientific standard.</p>
        </body>
    </sub-article>
    <sub-article article-type="reviewer-report" id="report3713">
        <front-stub>
            <article-id pub-id-type="doi">10.5256/f1000research.3676.r3713</article-id>
            <title-group>
                <article-title>Reviewer response for version 1</article-title>
            </title-group>
            <contrib-group>
                <contrib contrib-type="author">
                    <name>
                        <surname>Huerta-Cepas</surname>
                        <given-names>Jaime</given-names>
                    </name>
                    <xref ref-type="aff" rid="r3713a1">1</xref>
                    <role>Referee</role>
                </contrib>
                <aff id="r3713a1">
                    <label>1</label>Structural and Computational Biology Unit, EMBL European Bioinformatics Institute, Heidelberg, Germany</aff>
            </contrib-group>
            <author-notes>
                <fn fn-type="conflict">
                    <p>
                        <bold>Competing interests: </bold>No competing interests were disclosed.</p>
                </fn>
            </author-notes>
            <pub-date pub-type="epub">
                <day>25</day>
                <month>2</month>
                <year>2014</year>
            </pub-date>
            <permissions>
                <copyright-statement>Copyright: &#x00a9; 2014 Huerta-Cepas J</copyright-statement>
                <copyright-year>2014</copyright-year>
                <license xlink:href="https://creativecommons.org/licenses/by/4.0/">
                    <license-p>This is an open access peer review report distributed under the terms of the Creative Commons Attribution Licence, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.</license-p>
                </license>
            </permissions>
            <related-article ext-link-type="doi" id="relatedArticleReport3713" related-article-type="peer-reviewed-article" xlink:href="10.12688/f1000research.3-49.v1"/>
            <custom-meta-group>
                <custom-meta>
                    <meta-name>recommendation</meta-name>
                    <meta-value>approve-with-reservations</meta-value>
                </custom-meta>
            </custom-meta-group>
        </front-stub>
        <body>
            <p>
                <italic>TreeWidget</italic> is a handy JavaScript component for the visualization of phylogenetic data.&#x00a0;It is currently used to display trees in the 
                <ext-link ext-link-type="uri" xlink:href="http://www.treefam.org/">TreeFam</ext-link> database and allows for inline representation of rectangular trees, alignments and sequence domains.&#x00a0;After testing the application with trees of different sizes I came out with the following comments that may serve the author to improve this publication:&#x00a0;</p>
            <p>
                <underline>
                    <bold>Major</bold>
                </underline>
            </p>
            <p>
                <italic>
                    <bold>Usability&#x00a0;</bold>
                </italic>
            </p>
            <p>Apart from domain and alignment annotation, the documented functionality of 
                <italic>TreeWidget</italic> looks quite limited as compared with other JavaScript components. In my tests, I could only represent static trees with tip labels and motif structure. I have the impression that the application is capable of much more, but I could not find any reference to it in the help pages. For instance:&#x00a0;Would it be possible to add or modify OnClick and MouseOver events? Search for nodes in large trees? What about zooming or showing bootstrap and branch length values? These are basic features present in the TreeFam version and in most tree viewers, but not in the current version of 
                <italic>TreeWidget</italic>. Note that although Figure 1 shows bootstrap support values in the tree, I could not find that option in the documentation. It would be useful to have the example code that generates the figures in the paper.&#x00a0;</p>
            <p>JSON is not a common format for phylogenetic data, but it seems to be the only way to load trees into the application. Can 
                <italic>TreeWidget</italic> read the newick or extended-newick formats? If so, please document it. In my case, I had to write a&#x00a0;little parser to convert regular trees into treewidget/d3 format (
                <ext-link ext-link-type="uri" xlink:href="http://gist.github.com/jhcepas/9205262">gist.github.com/jhcepas/9205262</ext-link>) to test the software, but it would be great to have this feature as a built-in option. The same applies for alignments. I think that providing Newick and Fasta files would be much more convenient for end users than pointing them to create a new JSON structure on top of the original data.&#x00a0;</p>
            <p>
                <bold>
                    <italic>Manuscript</italic>&#x00a0;</bold>
            </p>
            <p>Although I acknowledge the potential usefulness of 
                <italic>TreeWidget</italic>, I think the text goes a bit too far when states that this is the "
                <italic>first modular tree visualization component"</italic>. Even if we restrict to the JavaScript context, several libraries do provide online tree visualization from some time ago. In fact, the same d3 back-end library used by 
                <italic>TreeWidget</italic> is a JavaScript modular library that supports tree and network visualization by itself (
                <ext-link ext-link-type="uri" xlink:href="http://bl.ocks.org/mbostock/4063570">bl.ocks.org/mbostock/4063570</ext-link>) . Of note, the nice performance and responsiveness obtained when drawing large trees is a d3 feature available for the representation of any type of hierarchical data. Similarly, 
                <ext-link ext-link-type="uri" xlink:href="http://www.jsphylosvg.com/">jsPhyloSVG</ext-link> is a modular JavaScript library that allows online representation of phylogenetic trees, providing interesting features such as newick support and circular tree drawing.&#x00a0;This should not prevent 
                <italic>TreeWidget</italic> from being published in 
                <italic>F1000Research</italic>, but the emphasis should be put on the possibility of representing phylogenetic information (i.e. duplication and speciation events) together with alignments and domain structure, in a very easy way.</p>
            <p>There are also several mistakes regarding the literature cited in the introduction: 1) The ETE package is not only an offline tool, but a programming library offering a&#x00a0;
                <ext-link ext-link-type="uri" xlink:href="http://etetoolkit.org/treeview">webplugin</ext-link>&#x00a0;module that can be used for online interactive visualization of custom phylogenetic data (i.e. the 
                <ext-link ext-link-type="uri" xlink:href="http://phylomedb.org/">PhylomeDB </ext-link>database uses ETE to render&#x00a0;
                <ext-link ext-link-type="uri" xlink:href="http://phylomedb.org/?q=search_tree&amp;seqid=TP53">interactive tree images with alignments and PFam domain annotations</ext-link>). 2) To my knowledge, 
                <ext-link ext-link-type="uri" xlink:href="http://www.phylowidget.org/">PhyloWidget</ext-link> is not JavaScript but Java. 3) I would not say that Archeopteryx is that slow for medium/large trees, and it also offers web integration and alignment and domain visualization.&#x00a0;</p>
            <p>
                <underline>
                    <bold>Minor</bold>
                </underline>
            </p>
            <p>
                <bold>
                    <italic>Documentation</italic>&#x00a0;</bold>
            </p>
            <p>While testing the library I had the feeling that the documentation was not very clear.&#x00a0;First, I could not find the relevant code, documentation or examples within the github repository provided as the main link in manuscript. It seems that the so called '
                <ext-link ext-link-type="uri" xlink:href="https://docs.google.com/document/d/1oS4M0EKAMre4IDERV61VVTDXJH9F-HGbHxKwNXqjWuo/edit">registry installation</ext-link>' step is necessary to start using the library. This will install the whole BioJS package, making the code and examples available at ./biojs/target/registry/, which is in fact the base path assumed by the examples provided in the online example. This is not a big deal, but I had to guess it by browsing different pages and files of the BioJS project. It would be useful to point readers to the specific installation and help pages of 
                <italic>TreeWidget</italic>,&#x00a0;clarifying whether it can be used independently or requires the BioJS project to be downloaded and compiled as a whole. Note, that it is also not clearly mentioned in the manuscript, that the examples and documentation of this component can be found at 
                <ext-link ext-link-type="uri" xlink:href="https://www.ebi.ac.uk/Tools/biojs/registry/Biojs.Tree.html">https://www.ebi.ac.uk/Tools/biojs/registry/Biojs.Tree.html</ext-link>.</p>
            <p>Reviewer Expertise:</p>
            <p>NA</p>
            <p>I confirm that I have read this submission and believe that I have an appropriate level of expertise to confirm that it is of an acceptable scientific standard, however I have significant reservations, as outlined above.</p>
        </body>
    </sub-article>
</article>
