<?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="other" 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.14492.1</article-id>
            <article-categories>
                <subj-group subj-group-type="heading">
                    <subject>Software Tool Article</subject>
                </subj-group>
                <subj-group>
                    <subject>Articles</subject>
                </subj-group>
            </article-categories>
            <title-group>
                <article-title>
                    <italic>epicontacts</italic>: Handling, visualisation and analysis of epidemiological contacts</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>Nagraj</surname>
                        <given-names>VP</given-names>
                    </name>
                    <role content-type="http://credit.niso.org/">Conceptualization</role>
                    <role content-type="http://credit.niso.org/">Software</role>
                    <role content-type="http://credit.niso.org/">Writing &#x2013; Original Draft Preparation</role>
                    <uri content-type="orcid">https://orcid.org/0000-0003-0060-566X</uri>
                    <xref ref-type="corresp" rid="c1">a</xref>
                    <xref ref-type="aff" rid="a1">1</xref>
                </contrib>
                <contrib contrib-type="author" corresp="no">
                    <name>
                        <surname>Randhawa</surname>
                        <given-names>Nistara</given-names>
                    </name>
                    <role content-type="http://credit.niso.org/">Conceptualization</role>
                    <role content-type="http://credit.niso.org/">Software</role>
                    <role content-type="http://credit.niso.org/">Writing &#x2013; Original Draft Preparation</role>
                    <xref ref-type="aff" rid="a2">2</xref>
                </contrib>
                <contrib contrib-type="author" corresp="no">
                    <name>
                        <surname>Campbell</surname>
                        <given-names>Finlay</given-names>
                    </name>
                    <role content-type="http://credit.niso.org/">Conceptualization</role>
                    <role content-type="http://credit.niso.org/">Software</role>
                    <role content-type="http://credit.niso.org/">Writing &#x2013; Original Draft Preparation</role>
                    <uri content-type="orcid">https://orcid.org/0000-0002-1849-1886</uri>
                    <xref ref-type="aff" rid="a3">3</xref>
                </contrib>
                <contrib contrib-type="author" corresp="no">
                    <name>
                        <surname>Crellen</surname>
                        <given-names>Thomas</given-names>
                    </name>
                    <role content-type="http://credit.niso.org/">Conceptualization</role>
                    <role content-type="http://credit.niso.org/">Software</role>
                    <uri content-type="orcid">https://orcid.org/0000-0003-2934-1063</uri>
                    <xref ref-type="aff" rid="a4">4</xref>
                </contrib>
                <contrib contrib-type="author" corresp="no">
                    <name>
                        <surname>Sudre</surname>
                        <given-names>Bertrand</given-names>
                    </name>
                    <role content-type="http://credit.niso.org/">Conceptualization</role>
                    <xref ref-type="aff" rid="a5">5</xref>
                </contrib>
                <contrib contrib-type="author" corresp="no">
                    <name>
                        <surname>Jombart</surname>
                        <given-names>Thibaut</given-names>
                    </name>
                    <role content-type="http://credit.niso.org/">Conceptualization</role>
                    <role content-type="http://credit.niso.org/">Software</role>
                    <role content-type="http://credit.niso.org/">Writing &#x2013; Original Draft Preparation</role>
                    <uri content-type="orcid">https://orcid.org/0000-0003-2226-8692</uri>
                    <xref ref-type="aff" rid="a3">3</xref>
                </contrib>
                <aff id="a1">
                    <label>1</label>Research Computing, University of Virginia School of Medicine, Charlottesville, VA, 22903, USA</aff>
                <aff id="a2">
                    <label>2</label>One Health Institute, University of California, Davis, Davis, CA, 95616, USA</aff>
                <aff id="a3">
                    <label>3</label>MRC Centre for Outbreak Analysis and Modelling, Department of Infectious Disease Epidemiology, School of Public Health, Imperial College London, London, W2 1PG, UK</aff>
                <aff id="a4">
                    <label>4</label>Mahidol-Oxford Tropical Medicine Research Unit, Bangkok, 10400, Thailand</aff>
                <aff id="a5">
                    <label>5</label>European Centre for Disease Prevention and Control, Stockholm, Sweden</aff>
            </contrib-group>
            <author-notes>
                <corresp id="c1">
                    <label>a</label>
                    <email xlink:href="mailto:vpnagraj@virginia.edu">vpnagraj@virginia.edu</email>
                </corresp>
                <fn fn-type="conflict">
                    <p>No competing interests were disclosed.</p>
                </fn>
            </author-notes>
            <pub-date pub-type="epub">
                <day>10</day>
                <month>5</month>
                <year>2018</year>
            </pub-date>
            <pub-date pub-type="collection">
                <year>2018</year>
            </pub-date>
            <volume>7</volume>
            <elocation-id>566</elocation-id>
            <history>
                <date date-type="accepted">
                    <day>12</day>
                    <month>4</month>
                    <year>2018</year>
                </date>
            </history>
            <permissions>
                <copyright-statement>Copyright: &#x00a9; 2018 Nagraj V et al.</copyright-statement>
                <copyright-year>2018</copyright-year>
                <license xlink:href="https://creativecommons.org/licenses/by/4.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/7-566/pdf"/>
            <abstract>
                <p>Epidemiological outbreak data is often captured in line list and contact format to facilitate contact tracing for outbreak control. 
                    <monospace>epicontacts</monospace> is an R package that provides a unique data structure for combining these data into a single object in order to facilitate more efficient visualisation and analysis. The package incorporates interactive visualisation functionality as well as network analysis techniques. Originally developed as part of the Hackout3 event, it is now developed, maintained and featured as part of the R Epidemics Consortium (RECON). The package is available for download from the 
                    <ext-link ext-link-type="uri" xlink:href="https://cran.r-project.org/package=epicontacts">Comprehensive R Archive Network (CRAN)</ext-link> and 
                    <ext-link ext-link-type="uri" xlink:href="https://github.com/reconhub/epicontacts">GitHub</ext-link>.</p>
            </abstract>
            <kwd-group kwd-group-type="author">
                <kwd>contact tracing</kwd>
                <kwd>outbreaks</kwd>
                <kwd>R</kwd>
            </kwd-group>
            <funding-group>
                <funding-statement>The author(s) declared that no grants were involved in supporting this work.</funding-statement>
            </funding-group>
        </article-meta>
    </front>
    <body>
        <sec sec-type="intro">
            <title>Introduction</title>
            <p>In order to study, prepare for, and intervene against disease outbreaks, infectious disease modellers and public health professionals need an extensive data analysis toolbox. Disease outbreak analytics involve a wide range of tasks that need to be linked together, from data collection and curation to exploratory analyses, and more advanced modelling techniques used for incidence forecasting
                <sup>
                    <xref ref-type="bibr" rid="ref-1">1</xref>,
                    <xref ref-type="bibr" rid="ref-2">2</xref>
                </sup> or to predict the impact of specific interventions
                <sup>
                    <xref ref-type="bibr" rid="ref-3">3</xref>,
                    <xref ref-type="bibr" rid="ref-4">4</xref>
                </sup>. Recent outbreak responses suggest that for such analyses to be as informative as possible, they need to rely on a wealth of available data, including timing of symptoms, characterisation of key delay distributions (e.g. incubation period, serial interval), and data on contacts between patients
                <sup>
                    <xref ref-type="bibr" rid="ref-5">5</xref>&#x2013;
                    <xref ref-type="bibr" rid="ref-8">8</xref>
                </sup>.</p>
            <p>The latter type of data is particularly important for outbreak analysis, not only because contacts between patients are useful for unravelling the drivers of an epidemic
                <sup>
                    <xref ref-type="bibr" rid="ref-9">9</xref>,
                    <xref ref-type="bibr" rid="ref-10">10</xref>
                </sup> , but also because identifying new cases early can reduce ongoing transmission via contact tracing, i.e. follow-up of individuals who reported contacts with known cases
                <sup>
                    <xref ref-type="bibr" rid="ref-11">11</xref>,
                    <xref ref-type="bibr" rid="ref-12">12</xref>
                </sup>. However, curating contact data and linking them to existing line lists of cases is often challenging, and tools for storing, handling, and visualising contact data are often missing
                <sup>
                    <xref ref-type="bibr" rid="ref-13">13</xref>,
                    <xref ref-type="bibr" rid="ref-14">14</xref>
                </sup>.</p>
            <p>Here, we introduce 
                <monospace>epicontacts</monospace>, an R
                <sup>
                    <xref ref-type="bibr" rid="ref-15">15</xref>
                </sup> package providing a suite of tools aimed at merging line lists and contact data, and providing basic functionality for handling, visualising and analysing epidemiological contact data. Maintained as part of the R Epidemics Consortium (
                <ext-link ext-link-type="uri" xlink:href="http://www.repidemicsconsortium.org/">RECON</ext-link>), the package is integrated into an ecosystem of tools for outbreak response using the R language.</p>
        </sec>
        <sec sec-type="methods">
            <title>Methods</title>
            <sec>
                <title>Operation</title>
                <p>
                    <monospace>epicontacts</monospace> is released as an open-source R package. A stable release is available for Windows, Mac and Linux operating systems via the CRAN repository. The latest development version of the package is available through the RECON Github organization. At minimum users must have R installed. No other system dependencies are required.</p>
                <p>
                    <preformat orientation="portrait" position="float" preformat-type="computer code" xml:space="preserve">
                        <styled-content style="font-size:15px;color:#8F5903"># install from CRAN</styled-content>

                        <styled-content style="font-size:15px;color:#214A87">install.packages</styled-content>
                        <styled-content style="font-size:15px;">(</styled-content>
                        <styled-content style="font-size:15px;color:#4F9905">"epicontacts"</styled-content>
                        <styled-content style="font-size:15px;">)</styled-content>


                        <styled-content style="font-size:15px;color:#8F5903"># install from Github</styled-content>

                        <styled-content style="font-size:15px;color:#214A87">install.packages</styled-content>
                        <styled-content style="font-size:15px;">(</styled-content>
                        <styled-content style="font-size:15px;color:#4F9905">"devtools"</styled-content>
                        <styled-content style="font-size:15px;">)</styled-content>

                        <styled-content style="font-size:15px;">devtools</styled-content>
                        <styled-content style="font-size:15px;color:#CF5C00">::</styled-content>
                        <styled-content style="font-size:15px;color:#214A87">install_github</styled-content>
                        <styled-content style="font-size:15px;">(</styled-content>
                        <styled-content style="font-size:15px;color:#4F9905">"reconhub/epicontacts"</styled-content>
                        <styled-content style="font-size:15px;">)</styled-content>
                    </preformat>
                </p>
                <p>
                    <preformat orientation="portrait" position="float" preformat-type="computer code" xml:space="preserve">
                        <styled-content style="font-size:15px;color:#8F5903"># load and attach the package</styled-content>

                        <styled-content style="font-size:15px;color:#214A87">library</styled-content>
                        <styled-content style="font-size:15px;">(</styled-content>
                        <styled-content style="font-size:15px;">epicontacts</styled-content>
                        <styled-content style="font-size:15px;">)</styled-content>
                    </preformat>
                </p>
            </sec>
            <sec>
                <title>Implementation</title>
                <p>
                    <bold>
                        <italic toggle="yes">Data handling.</italic>
                    </bold> 
                    <monospace>epicontacts</monospace> includes a novel data structure to accommodate line list and contact list datasets in a single object. This object is constructed with the 
                    <monospace>make_epiconctacts()</monospace> function and includes attributes from the original datasets. Once combined, these are mapped internally in a graph paradigm as nodes and edges. The 
                    <monospace>epicontacts</monospace> data structure also includes a 
                    <monospace>logical</monospace> attribute for whether or not this resulting network is directed.</p>
                <p>The package takes advantage of R&#x2019;s generic functions, which call specific methods depending on the class of an object. This is implemented in several places, including the 
                    <monospace>summary.epicontacts()</monospace> and 
                    <monospace>print.epicontacts()</monospace> methods, both of which are respectively called when the 
                    <monospace>summary()</monospace> or 
                    <monospace>print()</monospace> functions are used on an 
                    <monospace>epicontacts</monospace> object. The package does not include built-in data, as exemplary contact and line list datasets are available in the 
                    <monospace>outbreaks</monospace> package
                    <sup>
                        <xref ref-type="bibr" rid="ref-16">16</xref>
                    </sup>.</p>
                <p>
                    <preformat orientation="portrait" position="float" preformat-type="computer code" xml:space="preserve">
                        <styled-content style="font-size:15px;color:#8F5903"># install the outbreaks package for data</styled-content>

                        <styled-content style="font-size:15px;color:#214A87">install.packages</styled-content>
                        <styled-content style="font-size:15px;">(</styled-content>
                        <styled-content style="font-size:15px;color:#4F9905">"outbreaks"</styled-content>
                        <styled-content style="font-size:15px;">)</styled-content>
                    </preformat>
                </p>
                <p>
                    <preformat orientation="portrait" position="float" preformat-type="computer code" xml:space="preserve">
                        <styled-content style="font-size:15px;color:#8F5903"># load the outbreaks package</styled-content>

                        <styled-content style="font-size:15px;color:#214A87">library</styled-content>
                        <styled-content style="font-size:15px;">(</styled-content>
                        <styled-content style="font-size:15px;">outbreaks</styled-content>
                        <styled-content style="font-size:15px;">)</styled-content>


                        <styled-content style="font-size:15px;color:#8F5903"># construct an epicontacts object</styled-content>

                        <styled-content style="font-size:15px;">x &lt;-</styled-content> 
                        <styled-content style="font-size:15px;color:#214A87">make_epicontacts</styled-content>
                        <styled-content style="font-size:15px;">(</styled-content>
                        <styled-content style="font-size:15px;color:#214A87">linelist=</styled-content>
                        <styled-content style="font-size:15px;">mers_korea_</styled-content>
                        <styled-content style="font-size:15px;color:#0000CF">2015</styled-content>
                        <styled-content style="font-size:15px;">[[</styled-content>
                        <styled-content style="font-size:15px;color:#0000CF">1</styled-content>
                        <styled-content style="font-size:15px;">]],</styled-content>
                         
                        <styled-content style="font-size:15px;color:#214A87">contacts =</styled-content> 
                        <styled-content style="font-size:15px;">mers_korea_</styled-content>
                        <styled-content style="font-size:15px;color:#0000CF">2015</styled-content>
                        <styled-content style="font-size:15px;">[[</styled-content>
                        <styled-content style="font-size:15px;color:#0000CF">2</styled-content>
                        <styled-content style="font-size:15px;">]],</styled-content>
                         
                        <styled-content style="font-size:15px;color:#214A87">directed=</styled-content>
                        <styled-content style="font-size:15px;color:#8F5903">TRUE</styled-content>
                        <styled-content style="font-size:15px;">)</styled-content>


                        <styled-content style="font-size:15px;color:#8F5903"># print the object</styled-content>

                        <styled-content style="font-size:15px;">x</styled-content>
                    </preformat>
                </p>
                <p>
                    <preformat orientation="portrait" position="float" preformat-type="computer code" xml:space="preserve">

                        <styled-content style="font-size:15px;">
## 
## /// Epidemiological Contacts // 
## 
##   // class: epicontacts 
##   // 162 cases in linelist; 98 contacts;  directed 
## 
##   // linelist 
## 
## # A tibble: 162 x 15 
##    id      age age_class sex    place_infect  reporting_ctry loc_hosp 
##  * &lt;chr&gt; &lt;int&gt; &lt;chr&gt;     &lt;fct&gt;  &lt;fct&gt;         &lt;fct&gt;          &lt;fct&gt; 
##  1 SK_1     68 60-69     M      Middle East   South Korea    Pyeongtaek St&#x02dc;
##  2 SK_2     63 60-69     F      Outside Midd&#x02dc; South Korea    Pyeongtaek St&#x02dc; 
##  3 SK_3     76 70-79     M      Outside Midd&#x02dc; South Korea    Pyeongtaek St&#x02dc; 
##  4 SK_4     46 40-49     F      Outside Midd&#x02dc; South Korea    Pyeongtaek St&#x02dc; 
##  5 SK_5     50 50-59     M      Outside Midd&#x02dc; South Korea    365 Yeollin C&#x02dc; 
##  6 SK_6     71 70-79     M      Outside Midd&#x02dc; South Korea    Pyeongtaek St&#x02dc; 
##  7 SK_7     28 20-29     F      Outside Midd&#x02dc; South Korea    Pyeongtaek St&#x02dc; 
##  8 SK_8     46 40-49     F      Outside Midd&#x02dc; South Korea    Seoul Clinic,&#x02dc; 
##  9 SK_9     56 50-59     M      Outside Midd&#x02dc; South Korea    Pyeongtaek St&#x02dc; 
## 10 SK_10    44 40-49     M      Outside Midd&#x02dc; China          Pyeongtaek St&#x02dc; 
## # ... with 152 more rows, and 8 more variables: dt_onset &lt;date&gt;,  dt_report
## #   &lt;date&gt;, week_report &lt;fct&gt;, dt_start_exp &lt;date&gt;, dt_end_exp  &lt;date&gt;,
## #   dt_diag &lt;date&gt;, outcome &lt;fct&gt;, dt_death &lt;date&gt;
##
##   // contacts
##
## # A tibble: 98 x 4
##    from  to     exposure      diff_dt_onset
##    &lt;chr&gt; &lt;chr&gt;  &lt;fct&gt;                 &lt;int&gt;
##  1 SK_14 SK_113 Emergency room           10
##  2 SK_14 SK_116 Emergency room           13
##  3 SK_14 SK_41  Emergency room           14
##  4 SK_14 SK_112 Emergency room           14
##  5 SK_14 SK_100 Emergency room           15
##  6 SK_14 SK_114 Emergency room           15
##  7 SK_14 SK_136 Emergency room           15
##  8 SK_14 SK_47  Emergency room           16
##  9 SK_14 SK_110 Emergency room           16
## 10 SK_14 SK_122 Emergency room           16
## # ... with 88 more rows</styled-content>
                    </preformat>
                </p>
                <p>
                    <preformat orientation="portrait" position="float" preformat-type="computer code" xml:space="preserve">
                        <styled-content style="font-size:15px;color:#8F5903"># view a summary of the object</styled-content> 

                        <styled-content style="font-size:15px;color:#214A87">summary</styled-content>
                        <styled-content style="font-size:15px;">(x)</styled-content>
                    </preformat>
                </p>
                <p>
                    <preformat orientation="portrait" position="float" preformat-type="computer code" xml:space="preserve">
                        <styled-content style="font-size:15px;">
##
## /// Overview //
##   // number of unique IDs in linelist: 162
##   // number of unique IDs in contacts: 97
##   // number of unique IDs in both: 97
##   // number of contacts: 98
##   // contacts with both cases in linelist: 100 %
##
## /// Degrees of the network //
##   // in-degree summary:
##    Min. 1st Qu.  Median    Mean 3rd Qu.    Max.
##    0.00    1.00    1.00    1.01    1.00    3.00
##
##   // out-degree summary:
##    Min. 1st Qu.  Median    Mean 3rd Qu.    Max.
##    0.00    0.00    0.00    1.01    0.00   38.00
##
##   // in and out degree summary:
##    Min. 1st Qu.  Median    Mean 3rd Qu.    Max.
##   1.000   1.000   1.000   2.021   1.000  39.000
##
## /// Attributes //
##   // attributes in linelist:
##  age age_class sex place_infect reporting_ctry loc_hosp dt_onset dt_report week_report dt_start_exp dt_end_exp dt_diag outcome dt_death
##
##   // attributes in contacts:
##  exposure diff_dt_onset</styled-content>
                    </preformat>
                </p>
                <p>
                    <bold>
                        <italic toggle="yes">Data visualisation.</italic>
                    </bold> 
                    <monospace>epicontacts</monospace> implements two interactive network visualisation packages: 
                    <monospace>visNetwork</monospace> and 
                    <monospace>threejs</monospace>
                    <sup>
                        <xref ref-type="bibr" rid="ref-17">17</xref>,
                        <xref ref-type="bibr" rid="ref-18">18</xref>
                    </sup>. These frameworks provide R interfaces to the 
                    <monospace>vis.js</monospace> and 
                    <monospace>three.js</monospace> JavaScript libraries respectively. Their functionality is incorporated in the generic 
                    <monospace>plot()</monospace> method (
                    <xref ref-type="fig" rid="f1">Figure 1</xref>) for an 
                    <monospace>epicontacts</monospace> object, which can be toggled between either with the &#x201c;type&#x201d; parameter. Alternatively, the 
                    <monospace>visNetwork</monospace> interactivity is accessible via 
                    <monospace>vis_epicontacts()</monospace> (
                    <xref ref-type="fig" rid="f2">Figure 2</xref>), and 
                    <monospace>threejs</monospace> through 
                    <monospace>graph3D()</monospace> (
                    <xref ref-type="fig" rid="f3">Figure 3</xref>). Each function has a series of arguments that can also be passed through 
                    <monospace>plot()</monospace>. Both share a color palette, and users can specify node, edge and background colors. However, 
                    <monospace>vis_epicontacts()</monospace> includes a specification for &#x201c;node_shape&#x201d; by a line list attribute as well as a customization of that shape with an icon from the Font Awesome icon library. The principal distinction between the two is that 
                    <monospace>graph3D()</monospace> is a three-dimensional visualisation, allowing users to rotate clusters of nodes to better inspect their relationships.</p>
                <fig fig-type="figure" id="f1" orientation="portrait" position="float">
                    <label>Figure 1. </label>
                    <caption>
                        <title>The generic plot() method for an epicontacts object will use the visNetwork method by default.</title>
                    </caption>
                    <graphic orientation="portrait" position="float" xlink:href="https://f1000research-files.f1000.com/manuscripts/15777/e3dae988-06ad-4991-98b7-e9f5f82fe54b_figure1.gif"/>
                </fig>
                <fig fig-type="figure" id="f2" orientation="portrait" position="float">
                    <label>Figure 2. </label>
                    <caption>
                        <title>The vis_epicontacts() function explicitly calls visNetwork to make an interactive plot of the contact network.</title>
                    </caption>
                    <graphic orientation="portrait" position="float" xlink:href="https://f1000research-files.f1000.com/manuscripts/15777/e3dae988-06ad-4991-98b7-e9f5f82fe54b_figure2.gif"/>
                </fig>
                <fig fig-type="figure" id="f3" orientation="portrait" position="float">
                    <label>Figure 3. </label>
                    <caption>
                        <title>The graph3D() function generates a three-dimensional network plot.</title>
                    </caption>
                    <graphic orientation="portrait" position="float" xlink:href="https://f1000research-files.f1000.com/manuscripts/15777/e3dae988-06ad-4991-98b7-e9f5f82fe54b_figure3.gif"/>
                </fig>
                <p>
                    <preformat orientation="portrait" position="float" preformat-type="computer code" xml:space="preserve">
                        <styled-content style="font-size:15px;color:#214A87">plot</styled-content>
                        <styled-content style="font-size:15px;">(x)</styled-content>
                    </preformat>
                </p>
                <p>
                    <preformat orientation="portrait" position="float" preformat-type="computer code" xml:space="preserve">
                        <styled-content style="font-size:15px;color:#214A87">vis_epicontacts</styled-content>
                        <styled-content style="font-size:15px;">(x,</styled-content>
		  
                        <styled-content style="font-size:15px;color:#214A87">node_shape =</styled-content> 
                        <styled-content style="font-size:15px;color:#4F9905">"sex"</styled-content>
                        <styled-content style="font-size:15px;">,</styled-content>
		  
                        <styled-content style="font-size:15px;color:#214A87">shapes = c</styled-content>
                        <styled-content style="font-size:15px;">(</styled-content>
                        <styled-content style="font-size:15px;color:#214A87">F =</styled-content> 
                        <styled-content style="font-size:15px;color:#4F9905">"female"</styled-content>
                        <styled-content style="font-size:15px;">,</styled-content> 
                        <styled-content style="font-size:15px;color:#214A87">M =</styled-content> 
                        <styled-content style="font-size:15px;color:#4F9905">"male"</styled-content>
                        <styled-content style="font-size:15px;">),</styled-content>
		  
                        <styled-content style="font-size:15px;color:#214A87">edge_label =</styled-content> 
                        <styled-content style="font-size:15px;color:#4F9905">"exposure"</styled-content>
                        <styled-content style="font-size:15px;">)</styled-content>
                    </preformat>
                </p>
                <p>
                    <preformat orientation="portrait" position="float" preformat-type="computer code" xml:space="preserve">
                        <styled-content style="font-size:15px;color:#214A87">graph3D</styled-content>
                        <styled-content style="font-size:15px;">(x,</styled-content> 
                        <styled-content style="font-size:15px;color:#214A87">bg_col =</styled-content> 
                        <styled-content style="font-size:15px;color:#4F9905">"black"</styled-content>
                        <styled-content style="font-size:15px;">)</styled-content>
                    </preformat>
                </p>
                <p>
                    <bold>
                        <italic toggle="yes">Data analysis.</italic>
                    </bold> Subsetting is a typical preliminary step in data analysis. 
                    <monospace>epicontacts</monospace> leverages a customized 
                    <monospace>subset</monospace> method to filter line list or contacts based on values of particular attributes from nodes, edges or both. If users are interested in returning only contacts that appear in the line list (or vice versa), the 
                    <monospace>thin()</monospace> function implements such logic.</p>
                <p>
                    <preformat orientation="portrait" position="float" preformat-type="computer code" xml:space="preserve">
                        <styled-content style="font-size:15px;color:#8F5903;"># subset for males</styled-content>

                        <styled-content style="font-size:15px;color:#214A87;">subset</styled-content>
                        <styled-content style="font-size:15px;">(x,</styled-content> 
                        <styled-content style="font-size:15px;color:#214A87;">node_attribute = list</styled-content>
                        <styled-content style="font-size:15px;">(</styled-content>
                        <styled-content style="font-size:15px;color:#4F9905;">"sex"</styled-content> 
                        <styled-content style="font-size:15px;">=</styled-content> 
                        <styled-content style="font-size:15px;color:#4F9905;">"M"</styled-content>
                        <styled-content style="font-size:15px;">))</styled-content>


                        <styled-content style="font-size:15px;color:#8F5903;"># subset for exposure in emergency room</styled-content>

                        <styled-content style="font-size:15px;color:#214A87;">subset</styled-content>
                        <styled-content style="font-size:15px;">(x,</styled-content> 
                        <styled-content style="font-size:15px;color:#214A87;">edge_attribute = list</styled-content>
                        <styled-content style="font-size:15px;">(</styled-content>
                        <styled-content style="font-size:15px;color:#4F9905;">"exposure"</styled-content> 
                        <styled-content style="font-size:15px;">=</styled-content> 
                        <styled-content style="font-size:15px;color:#4F9905;">"Emergency room"</styled-content>
                        <styled-content style="font-size:15px;">))</styled-content>


                        <styled-content style="font-size:15px;color:#8F5903;"># subset for males who survived and were exposed in emergency room</styled-content>

                        <styled-content style="font-size:15px;color:#214A87;">subset</styled-content>
                        <styled-content style="font-size:15px;">(x,</styled-content>
        
                        <styled-content style="font-size:15px;color:#214A87;">node_attribute = list</styled-content>
                        <styled-content style="font-size:15px;">(</styled-content>
                        <styled-content style="font-size:15px;color:#4F9905;">"sex"</styled-content> 
                        <styled-content style="font-size:15px;">=</styled-content> 
                        <styled-content style="font-size:15px;color:#4F9905;">"M"</styled-content>
                        <styled-content style="font-size:15px;">,</styled-content> 
                        <styled-content style="font-size:15px;color:#4F9905;">"outcome"</styled-content> 
                        <styled-content style="font-size:15px;">=</styled-content> 
                        <styled-content style="font-size:15px;color:#4F9905;">"Alive"</styled-content>
                        <styled-content style="font-size:15px;">),</styled-content>
        
                        <styled-content style="font-size:15px;color:#214A87;">edge_attribute = list</styled-content>
                        <styled-content style="font-size:15px;">(</styled-content>
                        <styled-content style="font-size:15px;color:#4F9905;">"exposure"</styled-content> 
                        <styled-content style="font-size:15px;">=</styled-content> 
                        <styled-content style="font-size:15px;color:#4F9905;">"Emergency room"</styled-content>
                        <styled-content style="font-size:15px;">))</styled-content>


                        <styled-content style="font-size:15px;color:#214A87;">thin</styled-content>
                        <styled-content style="font-size:15px;">(x,</styled-content> 
                        <styled-content style="font-size:15px;color:#4F9905;">"contacts"</styled-content>
                        <styled-content style="font-size:15px;">)</styled-content>

                        <styled-content style="font-size:15px;color:#214A87;">thin</styled-content>
                        <styled-content style="font-size:15px;">(x,</styled-content> 
                        <styled-content style="font-size:15px;color:#4F9905;">"linelist"</styled-content>
                        <styled-content style="font-size:15px;">)</styled-content>
                    </preformat>
                </p>
                <p>For analysis of pairwise contact between individuals, the 
                    <monospace>get_pairwise()</monospace> feature searches the line list based on the specified attribute. If the given column is a numeric or date object, the function will return a vector containing the difference of the values of the corresponding &#x201c;from&#x201d; and &#x201c;to&#x201d; contacts. This can be particularly useful, for example, if the line list includes the date of onset of each case. The subtracted value of the contacts would approximate the serial interval for the outbreak
                    <sup>
                        <xref ref-type="bibr" rid="ref-19">19</xref>
                    </sup>. For factors, character vectors and other non-numeric attributes, the default behavior is to print the associated line list attribute for each pair of contacts. The function includes a further parameter to pass an arbitrary function to process the specified attributes. In the case of a character vector, this can be helpful for tabulating information about different contact pairings with 
                    <monospace>table()</monospace>.</p>
                <p>
                    <preformat orientation="portrait" position="float" preformat-type="computer code" xml:space="preserve">
                        <styled-content style="font-size:15px;color:#8F5903;"># find interval between date onset in cases</styled-content>

                        <styled-content style="font-size:15px;color:#214A87;">get_pairwise</styled-content>
                        <styled-content style="font-size:15px;">(x,</styled-content> 
                        <styled-content style="font-size:15px;color:#4F9905;">"dt_onset"</styled-content>
                        <styled-content style="font-size:15px;">)</styled-content>


                        <styled-content style="font-size:15px;color:#8F5903;"># find pairs of age category contacts</styled-content>

                        <styled-content style="font-size:15px;color:#214A87;">get_pairwise</styled-content>
                        <styled-content style="font-size:15px;">(x,</styled-content> 
                        <styled-content style="font-size:15px;color:#4F9905;">"age_class"</styled-content>
                        <styled-content style="font-size:15px;">)</styled-content>


                        <styled-content style="font-size:15px;color:#8F5903;"># tabulate the pairs of age category contacts</styled-content>

                        <styled-content style="font-size:15px;color:#214A87;">get_pairwise</styled-content>
                        <styled-content style="font-size:15px;">(x,</styled-content> 
                        <styled-content style="font-size:15px;color:#4F9905;">"age_class"</styled-content>
                        <styled-content style="font-size:15px;">,</styled-content> 
                        <styled-content style="font-size:15px;color:#214A87;">f =</styled-content> 
                        <styled-content style="font-size:15px;">table)</styled-content>
                    </preformat>
                </p>
            </sec>
        </sec>
        <sec>
            <title>Use cases</title>
            <p>Those interested in using 
                <monospace>epicontacts</monospace> should have a line list of cases as well as a record of contacts between individuals. Both datasets must be enumerated in tabular format with rows and columns. At minimum the line list requires one column with a unique identifier for every case. The contact list needs two columns for the source and destination of each pair of contacts. The datasets can include arbitrary features of case or contact beyond these columns. Once loaded into R and stored as 
                <monospace>data.frame</monospace> objects, these datasets can be passed to the 
                <monospace>make_epicontacts()</monospace> function (see &#x2018;Methods&#x2019; section for more detail). For an example of data prepared in this format, users can refer to the 
                <monospace>outbreaks</monospace> R package.</p>
            <p>
                <preformat orientation="portrait" position="float" preformat-type="computer code" xml:space="preserve">
                    <styled-content style="font-size:15px;color:#8F5903;"># load the outbreaks package</styled-content>

                    <styled-content style="font-size:15px;color:#214A87;">library</styled-content>
                    <styled-content style="font-size:15px;">(outbreaks)</styled-content>


                    <styled-content style="font-size:15px;color:#8F5903;"># example simulated ebola data

# line list</styled-content>

                    <styled-content style="font-size:15px;color:#214A87;">str</styled-content>
                    <styled-content style="font-size:15px;">(ebola_sim</styled-content>
                    <styled-content style="font-size:15px;color:#CF5C00;">$</styled-content>
                    <styled-content style="font-size:15px;">linelist)</styled-content>


                    <styled-content style="font-size:15px;">## &#x2018;data.frame&#x2019;: 5888 obs. of 9 variables:
##  $ case_id                : chr "d1fafd" "53371b" "f5c3d8" "6c286a" ...
##  $ generation             : int 0 1 1 2 2 0 3 3 2 3 ...
##  $ date_of_infection      : Date, format: NA "2014-04-09" ...
##  $ date_of_onset          : Date, format: "2014-04-07" "2014-04-15" ...
##  $ date_of_hospitalisation: Date, format: "2014-04-17" "2014-04-20" ...
##  $ date_of_outcome        : Date, format: "2014-04-19" NA ...
##  $ outcome                : Factor w/ 2 levels "Death","Recover": NA NA 2 1 2 NA 2 1 2 1 ...
##  $ gender                 : Factor w/ 2 levels "f","m": 1 2 1 1 1 1 1 1 2 2 ...
##  $ hospital               : Factor w/ 11 levels "Connaught Hopital",..: 4 2 7 NA 7 NA 2 9 7 11 ...</styled-content>
                </preformat>
            </p>
            <p>
                <preformat orientation="portrait" position="float" preformat-type="computer code" xml:space="preserve">
                    <styled-content style="font-size:15px;color:#8F5903;"># contact list</styled-content>

                    <styled-content style="font-size:15px;color:#214A87;">str</styled-content>(ebola_sim
                    <styled-content style="font-size:15px;color:#CF5C00;">$</styled-content>contacts)</preformat>
            </p>
            <p>
                <preformat orientation="portrait" position="float" preformat-type="computer code" xml:space="preserve">## &#x2019;data.frame&#x2019;:    3800 obs. of  3 variables:
##  $ infector: chr  "d1fafd" "cac51e" "f5c3d8" "0f58c4" ...
##  $ case_id : chr  "53371b" "f5c3d8" "0f58c4" "881bd4" ...
##  $ source  : Factor w/ 2 levels "funeral","other": 2 1 2 2 2 1 2 2 2 2 ...</preformat>
            </p>
            <p>
                <preformat orientation="portrait" position="float" preformat-type="computer code" xml:space="preserve">
                    <styled-content style="font-size:15px;color:#8F5903;"># example middle east respiratory syndrome data</styled-content>


                    <styled-content style="font-size:15px;color:#8F5903;"># line list</styled-content>

                    <styled-content style="font-size:15px;color:#214A87;">str</styled-content>(mers_korea_
                    <styled-content style="font-size:15px;color:#0000CF;">2015</styled-content>
                    <styled-content style="font-size:15px;color:#CF5C00;">$</styled-content>linelist)</preformat>
            </p>
            <p>
                <preformat orientation="portrait" position="float" preformat-type="computer code" xml:space="preserve">## &#x2019;data.frame&#x2019;:    162 obs. of 15 variables:
##  $ id            : chr "SK_1" "SK_2" "SK_3" "SK_4" ...
##  $ age           : int 68 63 76 46 50 71 28 46 56 44 ...
##  $ age_class     : chr "60-69" "60-69" "70-79" "40-49" ...
##  $ sex           : Factor w/ 2 levels "F","M": 2 1 2 1 2 2 1 1 2 2 ...
##  $ place_infect  : Factor w/ 2 levels "Middle East",..: 1 2 2 2 2 2 2 2 2 2 ...
##  $ reporting_ctry: Factor w/ 2 levels "China","South Korea": 2 2 2 2 2 2 2 2 2 1 ...
##  $ loc_hosp      : Factor w/ 13 levels "365 Yeollin Clinic, Seoul",..: 10 10 10 10 1 10 10 13 10 10 ...
##  $ dt_onset      : Date, format: "2015-05-11" "2015-05-18" ...
##  $ dt_report     : Date, format: "2015-05-19" "2015-05-20" ...
##  $ week_report   : Factor w/ 5 levels "2015_21","2015_22",..: 1 1 1 2 2 2 2 2 2 2 ...
##  $ dt_start_exp  : Date, format: "2015-04-18" "2015-05-15" ...
##  $ dt_end_exp    : Date, format: "2015-05-04" "2015-05-20" ...
##  $ dt_diag       : Date, format: "2015-05-20" "2015-05-20" ...
##  $ outcome       : Factor w/ 2 levels "Alive","Dead": 1 1 2 1 1 2 1 1 1 1 ...
##  $ dt_death      : Date, format: NA NA ...</preformat>
            </p>
            <p>
                <preformat orientation="portrait" position="float" preformat-type="computer code" xml:space="preserve">
                    <styled-content style="font-size:15px;color:#8F5903;"># contact list</styled-content>

                    <styled-content style="font-size:15px;color:#214A87;">str</styled-content>(mers_korea_
                    <styled-content style="font-size:15px;color:#0000CF;">2015</styled-content>
                    <styled-content style="font-size:15px;color:#CF5C00;">$</styled-content>contacts)</preformat>
            </p>
            <p>
                <preformat orientation="portrait" position="float" preformat-type="computer code" xml:space="preserve">## &#x2019;data.frame&#x2019;:    98 obs. of  4 variables:
##  $ from         : chr  "SK_14" "SK_14" "SK_14" "SK_14" ...
##  $ to           : chr  "SK_113" "SK_116" "SK_41" "SK_112" ...
##  $ exposure     : Factor w/ 5 levels "Contact with HCW",..: 2 2 2 2 2 2 2 2 2 2 ...
##  $ diff_dt_onset: int  10 13 14 14 15 15 15 16 16 16 ...</preformat>
            </p>
        </sec>
        <sec sec-type="discussion">
            <title>Discussion</title>
            <sec>
                <title>Benefits</title>
                <p>While there are software packages available for epidemiological contact visualisation and analysis, none aim to accommodate line list and contact data as purposively as 
                    <monospace>epicontacts</monospace>
                    <sup>
                        <xref ref-type="bibr" rid="ref-20">20</xref>&#x2013;
                        <xref ref-type="bibr" rid="ref-22">22</xref>
                    </sup>. Furthermore, this package strives to solve a problem of plotting dense graphs by implementing interactive network visualisation tools. A static plot of a network with many nodes and edges may be difficult to interpret. However, by rotating or hovering over an 
                    <monospace>epicontacts</monospace> visualisation, a user may better understand the data.</p>
            </sec>
            <sec>
                <title>Future considerations</title>
                <p>The maintainers of 
                    <monospace>epicontacts</monospace> anticipate new features and functionality. Future development could involve performance optimization for visualising large networks, as generating these interactive plots is resource intensive. Additionally, attention may be directed towards inclusion of alternative visualisation methods.</p>
            </sec>
        </sec>
        <sec sec-type="conclusions">
            <title>Conclusions</title>
            <p>
                <monospace>epicontacts</monospace> provides a unified interface for processing, visualising and analyzing disease outbreak data in the R language. The package and its source are freely available on CRAN and GitHub. By developing functionality with line list and contact list data in mind, the authors aim to enable more efficient epidemiological outbreak analyses.</p>
        </sec>
        <sec>
            <title>Software availability</title>
            <p>Software available from: 
                <ext-link ext-link-type="uri" xlink:href="https://CRAN.R-project.org/package=epicontacts">https://CRAN.R-project.org/package=epicontacts</ext-link>
            </p>
            <p>Source code available from: 
                <ext-link ext-link-type="uri" xlink:href="https://github.com/reconhub/epicontacts">https://github.com/reconhub/epicontacts</ext-link>
            </p>
            <p>Archived source code as at time of publication: 
                <ext-link ext-link-type="uri" xlink:href="https://zenodo.org/record/1210993">https://zenodo.org/record/1210993</ext-link>
                <sup>
                    <xref ref-type="bibr" rid="ref-23">23</xref>
                </sup>
            </p>
            <p>Software license: GPL 2</p>
        </sec>
    </body>
    <back>
        <ack>
            <title>Acknowledgements</title>
            <p>The authors would like to thank all of the organizers and participants of the Hackout3 event held in Berkeley, California June 20&#x2013;24, 2016. In particular, the authors acknowledge the support of the following organizations: MRC Centre for Outbreak Analysis, and Modelling at Imperial College London, the NIHR&#x2019;s Modelling Methodology Health Protection Research Unit at Imperial College London, and the Berkeley Institute for Data Science.</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>Funk</surname>
                            <given-names>S</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Camacho</surname>
                            <given-names>A</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Kucharski</surname>
                            <given-names>AJ</given-names>
                        </name>
						
                        <etal/>
					</person-group>:
                    <article-title>Real-time forecasting of infectious disease dynamics with a stochastic semi-mechanistic model.</article-title>
                    <source>
						
                        <italic toggle="yes">Epidemics.</italic>
					</source>
                    <year>2018</year>;<volume>22</volume>:<fpage>56</fpage>&#x2013;<lpage>61</lpage>.
                    <pub-id pub-id-type="pmid">28038870</pub-id>
                    <pub-id pub-id-type="doi">10.1016/j.epidem.2016.11.003</pub-id>
                    <pub-id pub-id-type="pmcid">5871642</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>Nouvellet</surname>
                            <given-names>P</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Cori</surname>
                            <given-names>A</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Garske</surname>
                            <given-names>T</given-names>
                        </name>
						
                        <etal/>
					</person-group>:
                    <article-title>A simple approach to measure transmissibility and forecast incidence.</article-title>
                    <source>
						
                        <italic toggle="yes">Epidemics.</italic>
					</source>
                    <year>2018</year>;<volume>22</volume>:<fpage>29</fpage>&#x2013;<lpage>35</lpage>.
                    <pub-id pub-id-type="pmid">28351674</pub-id>
                    <pub-id pub-id-type="doi">10.1016/j.epidem.2017.02.012</pub-id>
                    <pub-id pub-id-type="pmcid">5871640</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>Nouvellet</surname>
                            <given-names>P</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Garske</surname>
                            <given-names>T</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Mills</surname>
                            <given-names>HL</given-names>
                        </name>
						
                        <etal/>
					</person-group>:
                    <article-title>The role of rapid diagnostics in managing Ebola epidemics.</article-title>
                    <source>
						
                        <italic toggle="yes">Nature.</italic>
					</source>
                    <year>2015</year>;<volume>528</volume>(<issue>7580</issue>):<fpage>S109</fpage>&#x2013;<lpage>116</lpage>.
                    <pub-id pub-id-type="pmid">26633764</pub-id>
                    <pub-id pub-id-type="doi">10.1038/nature16041</pub-id>
                    <pub-id pub-id-type="pmcid">4823022</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>Parker</surname>
                            <given-names>EP</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Molodecky</surname>
                            <given-names>NA</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Pons-Salort</surname>
                            <given-names>M</given-names>
                        </name>
						
                        <etal/>
					</person-group>:
                    <article-title>Impact of inactivated poliovirus vaccine on mucosal immunity: implications for the polio eradication endgame.</article-title>
                    <source>
						
                        <italic toggle="yes">Expert Rev Vaccines.</italic>
					</source>
                    <year>2015</year>;<volume>14</volume>(<issue>8</issue>):<fpage>1113</fpage>&#x2013;<lpage>1123</lpage>.
                    <pub-id pub-id-type="pmid">26159938</pub-id>
                    <pub-id pub-id-type="doi">10.1586/14760584.2015.1052800</pub-id>
                    <pub-id pub-id-type="pmcid">4673562</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>Cauchemez</surname>
                            <given-names>S</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Fraser</surname>
                            <given-names>C</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Van Kerkhove</surname>
                            <given-names>MD</given-names>
                        </name>
						
                        <etal/>
					</person-group>:
                    <article-title>Middle East respiratory syndrome coronavirus: quantification of the extent of the epidemic, surveillance biases, and transmissibility.</article-title>
                    <source>
						
                        <italic toggle="yes">Lancet Infect Dis.</italic>
					</source>
                    <year>2014</year>;<volume>14</volume>(<issue>1</issue>):<fpage>50</fpage>&#x2013;<lpage>56</lpage>.
                    <pub-id pub-id-type="pmid">24239323</pub-id>
                    <pub-id pub-id-type="doi">10.1016/S1473-3099(13)70304-9</pub-id>
                    <pub-id pub-id-type="pmcid">3895322</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-6">
                <label>6</label>
                <mixed-citation publication-type="journal">
                    <collab>WHO Ebola Response Team</collab>,
                    <person-group person-group-type="author">
						
                        <name name-style="western">
                            <surname>Aylward</surname>
                            <given-names>B</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Barboza</surname>
                            <given-names>P</given-names>
                        </name>
						
                        <etal/>
					</person-group>:
                    <article-title>Ebola virus disease in West Africa--the first 9 months of the epidemic and forward projections.</article-title>
                    <source>
						
                        <italic toggle="yes">N Engl J Med.</italic>
					</source>
                    <year>2014</year>;<volume>371</volume>(<issue>16</issue>):<fpage>1481</fpage>&#x2013;<lpage>1495</lpage>.
                    <pub-id pub-id-type="pmid">25244186</pub-id>
                    <pub-id pub-id-type="doi">10.1056/NEJMoa1411100</pub-id>
                    <pub-id pub-id-type="pmcid">4235004</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-7">
                <label>7</label>
                <mixed-citation publication-type="journal">
                    <collab>WHO Ebola Response Team</collab>,
                    <person-group person-group-type="author">
						
                        <name name-style="western">
                            <surname>Agua-Agum</surname>
                            <given-names>J</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Ariyarajah</surname>
                            <given-names>A</given-names>
                        </name>
						
                        <etal/>
					</person-group>:
                    <article-title>West African Ebola epidemic after one year--slowing but not yet under control.</article-title>
                    <source>
						
                        <italic toggle="yes">N Engl J Med.</italic>
					</source>
                    <year>2015</year>;<volume>372</volume>(<issue>6</issue>):<fpage>584</fpage>&#x2013;<lpage>587</lpage>.
                    <pub-id pub-id-type="pmid">25539446</pub-id>
                    <pub-id pub-id-type="doi">10.1056/NEJMc1414992</pub-id>
                    <pub-id pub-id-type="pmcid">4368109</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>Cori</surname>
                            <given-names>A</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Donnelly</surname>
                            <given-names>CA</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Dorigatti</surname>
                            <given-names>I</given-names>
                        </name>
						
                        <etal/>
					</person-group>:
                    <article-title>Key data for outbreak evaluation: building on the Ebola experience.</article-title>
                    <source>
						
                        <italic toggle="yes">Philos Trans R Soc Lond B Biol Sci.</italic>
					</source>
                    <year>2017</year>;<volume>372</volume>(<issue>1721</issue>).
                    <pub-id pub-id-type="pmid">28396480</pub-id>
                    <pub-id pub-id-type="doi">10.1098/rstb.2016.0371</pub-id>
                    <pub-id pub-id-type="pmcid">5394647</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-9">
                <label>9</label>
                <mixed-citation publication-type="journal">
                    <collab>International Ebola Response Team</collab>,
                    <person-group person-group-type="author">
						
                        <name name-style="western">
                            <surname>Agua-Agum</surname>
                            <given-names>J</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Ariyarajah</surname>
                            <given-names>A</given-names>
                        </name>
						
                        <etal/>
					</person-group>:
                    <article-title>Exposure Patterns Driving Ebola Transmission in West Africa: A Retrospective Observational Study.</article-title>
                    <source>
						
                        <italic toggle="yes">PLoS Med.</italic>
					</source>
                    <year>2016</year>;<volume>13</volume>(<issue>11</issue>):<fpage>e1002170</fpage>.
                    <pub-id pub-id-type="pmid">27846234</pub-id>
                    <pub-id pub-id-type="doi">10.1371/journal.pmed.1002170</pub-id>
                    <pub-id pub-id-type="pmcid">5112802</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-10">
                <label>10</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
						
                        <name name-style="western">
                            <surname>Cauchemez</surname>
                            <given-names>S</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Nouvellet</surname>
                            <given-names>P</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Cori</surname>
                            <given-names>A</given-names>
                        </name>
						
                        <etal/>
					</person-group>:
                    <article-title>Unraveling the drivers of MERS-CoV transmission.</article-title>
                    <source>
						
                        <italic toggle="yes">Proc Natl Acad Sci U S A.</italic>
					</source>
                    <year>2016</year>;<volume>113</volume>(<issue>32</issue>):<fpage>9081</fpage>&#x2013;<lpage>9086</lpage>.
                    <pub-id pub-id-type="pmid">27457935</pub-id>
                    <pub-id pub-id-type="doi">10.1073/pnas.1519235113</pub-id>
                    <pub-id pub-id-type="pmcid">4987807</pub-id>
                </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>Senga</surname>
                            <given-names>M</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Koi</surname>
                            <given-names>A</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Moses</surname>
                            <given-names>L</given-names>
                        </name>
						
                        <etal/>
					</person-group>:
                    <article-title>Contact tracing performance during the Ebola virus disease outbreak in Kenema district, Sierra Leone.</article-title>
                    <source>
						
                        <italic toggle="yes">Philos Trans R Soc Lond B Biol Sci.</italic>
					</source>
                    <year>2017</year>;<volume>372</volume>(<issue>1721</issue>).
                    <pub-id pub-id-type="pmid">28396471</pub-id>
                    <pub-id pub-id-type="doi">10.1098/rstb.2016.0300</pub-id>
                    <pub-id pub-id-type="pmcid">5394638</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>Saurabh</surname>
                            <given-names>S</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Prateek</surname>
                            <given-names>S</given-names>
                        </name>
					</person-group>:
                    <article-title>Role of contact tracing in containing the 2014 Ebola outbreak: a review.</article-title>
                    <source>
						
                        <italic toggle="yes">Afr Health Sci.</italic>
					</source>
                    <year>2017</year>;<volume>17</volume>(<issue>1</issue>):<fpage>225</fpage>&#x2013;<lpage>236</lpage>.
                    <pub-id pub-id-type="pmid">29026397</pub-id>
                    <pub-id pub-id-type="doi">10.4314/ahs.v17i1.28</pub-id>
                    <pub-id pub-id-type="pmcid">5636234</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-13">
                <label>13</label>
                <mixed-citation publication-type="book">
                    <collab>World Health Organization</collab>:
                    <article-title>Response to Measles Outbreaks in Measles Mortality Reduction Settings: Immunization, Vaccines and Biologicals</article-title>.<year>2009</year>.
                    <pub-id pub-id-type="pmid">23785742</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-14">
                <label>14</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
						
                        <name name-style="western">
                            <surname>Rakesh</surname>
                            <given-names>P</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Sherin</surname>
                            <given-names>D</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Sankar</surname>
                            <given-names>H</given-names>
                        </name>
						
                        <etal/>
					</person-group>:
                    <article-title>Investigating a community-wide outbreak of hepatitis a in India.</article-title>
                    <source>
						
                        <italic toggle="yes">J Glob Infect Dis.</italic>
					</source>
                    <year>2014</year>;<volume>6</volume>(<issue>2</issue>):<fpage>59</fpage>&#x2013;<lpage>64</lpage>.
                    <pub-id pub-id-type="pmid">24926165</pub-id>
                    <pub-id pub-id-type="doi">10.4103/0974-777X.132040</pub-id>
                    <pub-id pub-id-type="pmcid">4049041</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-15">
                <label>15</label>
                <mixed-citation publication-type="book">
                    <collab>R Core Team</collab>:
                    <article-title>R: A Language and Environment for Statistical Computing</article-title>. R Foundation for Statistical Computing, Vienna, Austria.<year>2017</year>.
                    <ext-link ext-link-type="uri" xlink:href="https://www.R-project.org/">Reference Source</ext-link>
                </mixed-citation>
            </ref>
            <ref id="ref-16">
                <label>16</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
						
                        <name name-style="western">
                            <surname>Jombart</surname>
                            <given-names>T</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Frost</surname>
                            <given-names>S</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Nouvellet</surname>
                            <given-names>P</given-names>
                        </name>
						
                        <etal/>
					</person-group>:
                    <article-title>outbreaks: A Collection of Disease Outbreak Data</article-title>. R package version 1.3.0.<year>2017</year>.
                    <ext-link ext-link-type="uri" xlink:href="https://cran.r-project.org/web/packages/outbreaks/index.html">Reference Source</ext-link>
                </mixed-citation>
            </ref>
            <ref id="ref-17">
                <label>17</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
						
                        <name name-style="western">
                            <surname>Almende</surname>
                            <given-names>BV</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Thieurmel</surname>
                            <given-names>B</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Robert</surname>
                            <given-names>T</given-names>
                        </name>
					</person-group>:
                    <article-title>visNetwork: Network Visualization using &#x2018;vis.js&#x2019; Library</article-title>. R package version 2.0.3.<year>2018</year>.
                    <ext-link ext-link-type="uri" xlink:href="https://cran.r-project.org/web/packages/visNetwork/index.html">Reference Source</ext-link>
                </mixed-citation>
            </ref>
            <ref id="ref-18">
                <label>18</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
						
                        <name name-style="western">
                            <surname> Lewis</surname>
                            <given-names>BW</given-names>
                        </name>
					</person-group>:
                    <article-title>threejs: Interactive 3D Scatter Plots, Networks and Globes</article-title>. R package version 0.3.1.<year>2017</year>.
                    <ext-link ext-link-type="uri" xlink:href="https://CRAN.R-project.org/package=threejs">Reference Source</ext-link>
                </mixed-citation>
            </ref>
            <ref id="ref-19">
                <label>19</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
						
                        <name name-style="western">
                            <surname>Fine</surname>
                            <given-names>PE</given-names>
                        </name>
					</person-group>:
                    <article-title>The interval between successive cases of an infectious disease.</article-title>
                    <source>
						
                        <italic toggle="yes">Am J Epidemiol.</italic>
					</source>
                    <year>2003</year>;<volume>158</volume>(<issue>11</issue>):<fpage>1039</fpage>&#x2013;<lpage>1047</lpage>.
                    <pub-id pub-id-type="pmid">14630599</pub-id>
                    <pub-id pub-id-type="doi">10.1093/aje/kwg251</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-20">
                <label>20</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
						
                        <name name-style="western">
                            <surname>N&#x00f6;remark</surname>
                            <given-names>M</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Widgren</surname>
                            <given-names>S</given-names>
                        </name>
					</person-group>:
                    <article-title>EpiContactTrace: an R-package for contact tracing during livestock disease outbreaks and for risk-based surveillance.</article-title>
                    <source>
						
                        <italic toggle="yes">BMC Vet Res.</italic>
					</source>
                    <year>2014</year>;<volume>10</volume>:<fpage>71</fpage>.
                    <pub-id pub-id-type="pmid">24636731</pub-id>
                    <pub-id pub-id-type="doi">10.1186/1746-6148-10-71</pub-id>
                    <pub-id pub-id-type="pmcid">3974595</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-21">
                <label>21</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
						
                        <name name-style="western">
                            <surname>Carroll</surname>
                            <given-names>LN</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Au</surname>
                            <given-names>AP</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Detwiler</surname>
                            <given-names>LT</given-names>
                        </name>
						
                        <etal/>
					</person-group>:
                    <article-title>Visualization and analytics tools for infectious disease epidemiology: a systematic review.</article-title>
                    <source>
						
                        <italic toggle="yes">J Biomed Inform.</italic>
					</source>
                    <year>2014</year>;<volume>51</volume>:<fpage>287</fpage>&#x2013;<lpage>298</lpage>.
                    <pub-id pub-id-type="pmid">24747356</pub-id>
                    <pub-id pub-id-type="doi">10.1016/j.jbi.2014.04.006</pub-id>
                    <pub-id pub-id-type="pmcid">5734643</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-22">
                <label>22</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
						
                        <name name-style="western">
                            <surname>Guthrie</surname>
                            <given-names>JL</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Alexander</surname>
                            <given-names>DC</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Marchand-Austin</surname>
                            <given-names>A</given-names>
                        </name>
						
                        <etal/>
					</person-group>:
                    <article-title>Technology and tuberculosis control: the OUT-TB Web experience.</article-title>
                    <source>
						
                        <italic toggle="yes">J Am Med Inform Assoc.</italic>
					</source>
                    <year>2017</year>;<volume>24</volume>(<issue>e1</issue>):<fpage>e136</fpage>&#x2013;<lpage>e142</lpage>.
                    <pub-id pub-id-type="pmid">27589943</pub-id>
                    <pub-id pub-id-type="doi">10.1093/jamia/ocw130</pub-id>
                </mixed-citation>
            </ref>
            <ref id="ref-23">
                <label>23</label>
                <mixed-citation publication-type="journal">
                    <person-group person-group-type="author">
						
                        <name name-style="western">
                            <surname>Nagraj</surname>
                            <given-names>VP</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Jombart</surname>
                            <given-names>T</given-names>
                        </name>
						
                        <name name-style="western">
                            <surname>Randhawa</surname>
                            <given-names>N</given-names>
                        </name>
						
                        <etal/>
					</person-group>:
                    <article-title>epicontacts (Version 1.1.1).</article-title>
                    <source>
						
                        <italic toggle="yes">Zenodo.</italic>
					</source>
                    <year>2018</year>.
                    <ext-link ext-link-type="uri" xlink:href="http://dx.doi.org/10.5281/zenodo.1210993">Data Source</ext-link>
                </mixed-citation>
            </ref>
        </ref-list>
    </back>
    <sub-article article-type="reviewer-report" id="report36044">
        <front-stub>
            <article-id pub-id-type="doi">10.5256/f1000research.15777.r36044</article-id>
            <title-group>
                <article-title>Reviewer response for version 1</article-title>
            </title-group>
            <contrib-group>
                <contrib contrib-type="author">
                    <name>
                        <surname>Adewuyi</surname>
                        <given-names>Peter Adebayo</given-names>
                    </name>
                    <xref ref-type="aff" rid="r36044a1">1</xref>
                    <xref ref-type="aff" rid="r36044a2">2</xref>
                    <role>Referee</role>
                </contrib>
                <aff id="r36044a1">
                    <label>1</label>African Field Epidemiology Network (AFENET), Kampala, Uganda</aff>
                <aff id="r36044a2">
                    <label>2</label>Liberia Field Epidemiology Training Program, Monrovia, Liberia</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>2</day>
                <month>8</month>
                <year>2018</year>
            </pub-date>
            <permissions>
                <copyright-statement>Copyright: &#x00a9; 2018 Adewuyi PA</copyright-statement>
                <copyright-year>2018</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="relatedArticleReport36044" related-article-type="peer-reviewed-article" xlink:href="10.12688/f1000research.14492.1"/>
            <custom-meta-group>
                <custom-meta>
                    <meta-name>recommendation</meta-name>
                    <meta-value>approve</meta-value>
                </custom-meta>
            </custom-meta-group>
        </front-stub>
        <body>
            <p>This is a good software developed which could help in continuous visualization of contacts and their progression in disease tracking.&#x00a0;</p>
            <p> </p>
            <p> It is user friendly for those who are not computer specialist and still want to visualize data.</p>
            <p> </p>
            <p> Data visualization is pertinent to disease monitoring and what the authors have done will aid in helping epidemiologist and public health specialist involved in outbreak response to quickly visualize progression and spread of disease from primary to secondary contacts and how the disease is evolving among contacts.</p>
            <p> </p>
            <p> The software will actually achieve its purpose as stated in the conclusion of the write-up. Good work done.</p>
            <p>Are the conclusions about the tool and its performance adequately supported by the findings presented in the article?</p>
            <p>Yes</p>
            <p>Is the rationale for developing the new software tool clearly explained?</p>
            <p>Yes</p>
            <p>Is the description of the software tool technically sound?</p>
            <p>Yes</p>
            <p>Are sufficient details of the code, methods and analysis (if applicable) provided to allow replication of the software development and its use by others?</p>
            <p>Yes</p>
            <p>Is sufficient information provided to allow interpretation of the expected output datasets and any results generated using the tool?</p>
            <p>Yes</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="report34084">
        <front-stub>
            <article-id pub-id-type="doi">10.5256/f1000research.15777.r34084</article-id>
            <title-group>
                <article-title>Reviewer response for version 1</article-title>
            </title-group>
            <contrib-group>
                <contrib contrib-type="author">
                    <name>
                        <surname>Rolfes</surname>
                        <given-names>Melissa A.</given-names>
                    </name>
                    <xref ref-type="aff" rid="r34084a1">1</xref>
                    <role>Referee</role>
                </contrib>
                <aff id="r34084a1">
                    <label>1</label>Centers for Disease Control and Prevention&#x00a0;(CDC)&#x00a0;, Atlanta, GA, 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>31</day>
                <month>5</month>
                <year>2018</year>
            </pub-date>
            <permissions>
                <copyright-statement>Copyright: &#x00a9; 2018 Rolfes MA</copyright-statement>
                <copyright-year>2018</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="relatedArticleReport34084" related-article-type="peer-reviewed-article" xlink:href="10.12688/f1000research.14492.1"/>
            <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>The article describes an R-based software tool aimed to facilitate analysis of data from outbreaks that include line lists of cases and case-contact data. The R package, epicontacts, is part of a larger suite of tools housed at the R Epidemics Consortium (RECON). The epicontacts package has the ability to merge data about cases in a line list with case-contact details, which then allows the user to describe and visualize contact networks, incubation periods, and serial intervals within an outbreak.</p>
            <p> </p>
            <p> The codes and methods for analysis are partly described in the article, and the authors should provide a link to the packages documentation, either at CRAN or RECON webpages, where readers could learn more about the package and its options.</p>
            <p> </p>
            <p> The output of the package provided in the article was interesting and intriguing. I felt that it was only partly explained and the article could benefit from the authors annotating the output and its interpretation a bit further. I have explored the RECON website and found the RECON Learn modules to be quite helpful in providing annotation of the epicontacts output and some guidance on interpretation. I would recommend that the authors consider either expanding the annotation of the output in this article or explicitly direct readers to the RECON Learn website for further instruction.&#x00a0;</p>
            <p> </p>
            <p> Additional suggestions: 
                <list list-type="bullet">
                    <list-item>
                        <p>Consider moving the section&#x00a0;of the article called "Use cases" to before the&#x00a0;"Data handling"&#x00a0;subsection&#x00a0;of the "Implementation" section. I felt that the&#x00a0;description of the input datasets&#x00a0;under "Use cases" was very informative and would have been organizational more helpful had it been placed earlier in the article.</p>
                    </list-item>
                    <list-item>
                        <p>&#x00a0;Consider describing the sample outbreak data in a bit further detail. It appears to be data describing the MERS outbreak that occurred in South Korea in 2015. I think the description should include whether the data are simulated or from a real outbreak (if from a real outbreak, then a reference to the outbreak description should be included), the scenario of the outbreak, how many cases, how many contacts, place of the outbreak, duration of the outbreak, and a brief description of the demographic details included in the dataset. This amount of detail would allow the reader to translate the details of the outbreak from your text to the output provided by epicontacts.</p>
                    </list-item>
                </list>
            </p>
            <p>Are the conclusions about the tool and its performance adequately supported by the findings presented in the article?</p>
            <p>Yes</p>
            <p>Is the rationale for developing the new software tool clearly explained?</p>
            <p>Yes</p>
            <p>Is the description of the software tool technically sound?</p>
            <p>Yes</p>
            <p>Are sufficient details of the code, methods and analysis (if applicable) provided to allow replication of the software development and its use by others?</p>
            <p>Partly</p>
            <p>Is sufficient information provided to allow interpretation of the expected output datasets and any results generated using the tool?</p>
            <p>Partly</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>
