<scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8="crossorigin="anonymous"></script><!-- Font Awesome icons --><linkrel="stylesheet"href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"integrity="sha256-eZrrJcwDc/3uDhsdt61sL2oOBY362qM3lon1gyExkL0="crossorigin="anonymous">
<p><em>(<helptitle="Too Long, Didn't Read">TLDR</help> - to find out how to conduct AMR analysis, please <ahref="./articles/AMR.html">continue reading here to get started</a>.</em></p>
<p><code>AMR</code> is a free and open-source <ahref="https://www.r-project.org">R package</a> to simplify the analysis and prediction of Antimicrobial Resistance (AMR) and to work with microbial and antimicrobial properties by using evidence-based methods. It supports any data format, including WHONET/EARS-Net data.</p>
<p>After installing this package, R knows almost all ~20,000 microorganisms and ~500 antibiotics by name and code, and knows all about valid RSI and MIC values.</p>
<p><strong>Used to SPSS?</strong> Read our <ahref="./articles/SPSS.html">tutorial on how to import data from SPSS, SAS or Stata</a> and learn in which ways R outclasses any of these statistical packages.</p>
<p>We created this package for both academic research and routine analysis at the Faculty of Medical Sciences of the University of Groningen, the Netherlands, and the Medical Microbiology & Infection Prevention (MMBI) department of the University Medical Center Groningen (UMCG). This R package is actively maintained and is free software; you can freely use and distribute it for both personal and commercial (but <strong>not</strong> patent) purposes under the terms of the GNU General Public License version 2.0 (GPL-2), as published by the Free Software Foundation. Read the full license <ahref="./LICENSE-text.html">here</a>.</p>
<ahref="#latest-released-version"class="anchor"></a>Latest released version</h4>
<p>This package is available <ahref="https://cran.r-project.org/package=AMR">on the official R network (CRAN)</a>, which has a peer-reviewed submission process. Install this package in R with:</p>
<p>It will be downloaded and installed automatically. For RStudio, click on the menu <em>Tools</em>><em>Install Packages…</em> and then type in “AMR” and press <kbd>Install</kbd>.</p>
<p>To find out how to conduct AMR analysis, please <ahref="./articles/AMR.html">continue reading here to get started</a> or click the links in the ‘How to’ menu.</p>
<p>We support WHONET and EARS-Net data. Exported files from WHONET can be imported into R and can be analysed easily using this package. For education purposes, we created an <ahref="./reference/WHONET.html">example data set <code>WHONET</code></a> with the exact same structure as a WHONET export file. Furthermore, this package also contains a <ahref="./reference/antibiotics.html">data set <code>antibiotics</code></a> with all EARS-Net antibiotic abbreviations, and knows almost all WHONET abbreviations for microorganisms. When using WHONET data as input for analysis, all input parameters will be set automatically.</p>
<p>This package contains <strong>all ~500 antimicrobial drugs</strong> and their Anatomical Therapeutic Chemical (ATC) codes, ATC groups and Defined Daily Dose (DDD) from the World Health Organization Collaborating Centre for Drug Statistics Methodology (WHOCC, <ahref="https://www.whocc.no"class="uri">https://www.whocc.no</a>) and the <ahref="http://ec.europa.eu/health/documents/community-register/html/atc.htm">Pharmaceuticals Community Register of the European Commission</a>.</p>
<p>This package contains the complete taxonomic tree of almost all microorganisms from the authoritative and comprehensive Catalogue of Life (<ahref="http://www.catalogueoflife.org">www.catalogueoflife.org</a>). This data is updated annually - check the included version with <code><ahref="reference/catalogue_of_life_version.html">catalogue_of_life_version()</a></code>.</p>
<p>Included are:</p>
<ul>
<li>All ~55,000 species from the kingdoms of Archaea, Bacteria, Protozoa and Viruses</li>
<li>All ~3,000 (sub)species from these orders of the kingdom of Fungi: Eurotiales, Onygenales, Pneumocystales, Saccharomycetales and Schizosaccharomycetales. The kingdom of Fungi is a very large taxon with almost 300,000 different species, of which most are not microbial. Including everything tremendously slows down our algortihms, and not all fungi fit the scope of this package. By only including the aforementioned taxonomic orders, the most relevant species are covered (like genera <em>Aspergillus</em>, <em>Candida</em>, <em>Pneumocystis</em>, <em>Saccharomyces</em> and <em>Trichophyton</em>).</li>
<li>All ~15,000 previously accepted names of species that have been taxonomically renamed</li>
<li>The responsible author(s) and year of scientific publication</li>
</ul>
<p>The Catalogue of Life (<ahref="http://www.catalogueoflife.org">www.catalogueoflife.org</a>) is the most comprehensive and authoritative global index of species currently available. It holds essential information on the names, relationships and distributions of over 1.6 million species. The Catalogue of Life is used to support the major biodiversity and conservation information services such as the Global Biodiversity Information Facility (GBIF), Encyclopedia of Life (EoL) and the International Union for Conservation of Nature Red List. It is recognised by the Convention on Biological Diversity as a significant component of the Global Taxonomy Initiative and a contribution to Target 1 of the Global Strategy for Plant Conservation.</p>
<p>Read more about the data from the Catalogue of Life <ahref="./reference/catalogue_of_life.html">in our manual</a>.</p>
<p>It <strong>cleanses existing data</strong> by providing new <em>classes</em> for microoganisms, antibiotics and antimicrobial results (both S/I/R and MIC). By installing this package, you teach R everything about microbiology that is needed for analysis. These functions all use artificial intelligence to guess results that you would expect:</p>
<li>Use <code><ahref="reference/as.mo.html">as.mo()</a></code> to get an ID of a microorganism. The IDs are human readable for the trained eye - the ID of <em>Klebsiella pneumoniae</em> is “B_KLBSL_PNE” (B stands for Bacteria) and the ID of <em>S. aureus</em> is “B_STPHY_AUR”. The function takes almost any text as input that looks like the name or code of a microorganism like “E. coli”, “esco” or “esccol” and tries to find expected results using artificial intelligence (AI) on the included ITIS data set, consisting of almost 20,000 microorganisms. It is <em>very</em> fast, please see our <ahref="./articles/benchmarks.html">benchmarks</a>. Moreover, it can group <em>Staphylococci</em> into coagulase negative and positive (CoNS and CoPS, see <ahref="./reference/as.mo.html#source">source</a>) and can categorise <em>Streptococci</em> into Lancefield groups (like beta-haemolytic <em>Streptococcus</em> Group B, <ahref="./reference/as.mo.html#source">source</a>).</li>
<li>Use <code><ahref="reference/as.rsi.html">as.rsi()</a></code> to transform values to valid antimicrobial results. It produces just S, I or R based on your input and warns about invalid values. Even values like “<=0.002; S” (combined MIC/RSI) will result in “S”.</li>
<li>Use <code><ahref="reference/as.mic.html">as.mic()</a></code> to cleanse your MIC values. It produces a so-called factor (called <em>ordinal</em> in SPSS) with valid MIC values as levels. A value like “<=0.002; S” (combined MIC/RSI) will result in “<=0.002”.</li>
<li>Use <code><ahref="reference/as.atc.html">as.atc()</a></code> to get the ATC code of an antibiotic as defined by the WHO. This package contains a database with most LIS codes, official names, DDDs and even trade names of antibiotics. For example, the values “Furabid”, “Furadantin”, “nitro” all return the ATC code of Nitrofurantoine.</li>
<li>Use <code><ahref="reference/eucast_rules.html">eucast_rules()</a></code> to apply <ahref="http://www.eucast.org/expert_rules_and_intrinsic_resistance/">EUCAST expert rules to isolates</a>.</li>
<li>Use <code><ahref="reference/first_isolate.html">first_isolate()</a></code> to identify the first isolates of every patient <ahref="https://clsi.org/standards/products/microbiology/documents/m39/">using guidelines from the CLSI</a> (Clinical and Laboratory Standards Institute).
<ul>
<li>You can also identify first <em>weighted</em> isolates of every patient, an adjusted version of the CLSI guideline. This takes into account key antibiotics of every strain and compares them.</li>
</ul>
</li>
<li>Use <code><ahref="reference/mdro.html">mdro()</a></code> (abbreviation of Multi Drug Resistant Organisms) to check your isolates for exceptional resistance with country-specific guidelines or EUCAST rules. Currently, national guidelines for Germany and the Netherlands are supported.</li>
<li>The <ahref="./reference/microorganisms.html">data set <code>microorganisms</code></a> contains the complete taxonomic tree of almost 20,000 microorganisms (bacteria, fungi/yeasts and protozoa). Furthermore, the colloquial name and Gram stain are available, which enables resistance analysis of e.g.different antibiotics per Gram stain. The package also contains functions to look up values in this data set like <code><ahref="reference/mo_property.html">mo_genus()</a></code>, <code><ahref="reference/mo_property.html">mo_family()</a></code>, <code><ahref="reference/mo_property.html">mo_gramstain()</a></code> or even <code><ahref="reference/mo_property.html">mo_phylum()</a></code>. As they use <code><ahref="reference/as.mo.html">as.mo()</a></code> internally, they also use artificial intelligence. For example, <code><ahref="reference/mo_property.html">mo_genus("MRSA")</a></code> and <code><ahref="reference/mo_property.html">mo_genus("S. aureus")</a></code> will both return <code>"Staphylococcus"</code>. They also come with support for German, Dutch, Spanish, Italian, French and Portuguese. These functions can be used to add new variables to your data.</li>
<li>The <ahref="./reference/antibiotics.html">data set <code>antibiotics</code></a> contains almost 500 antimicrobial drugs with their ATC code, EARS-Net code, common LIS codes, official name, trivial name and DDD of both oral and parenteral administration. It also contains hundreds of trade names. Use functions like <code><ahref="reference/atc_property.html">atc_name()</a></code> and <code><ahref="reference/atc_property.html">atc_tradenames()</a></code> to look up values. The <code>atc_*</code> functions use <code><ahref="reference/as.atc.html">as.atc()</a></code> internally so they support AI to guess your expected result. For example, <code><ahref="reference/atc_property.html">atc_name("Fluclox")</a></code>, <code><ahref="reference/atc_property.html">atc_name("Floxapen")</a></code> and <code><ahref="reference/atc_property.html">atc_name("J01CF05")</a></code> will all return <code>"Flucloxacillin"</code>. These functions can again be used to add new variables to your data.</li>
<li>Calculate the resistance (and even co-resistance) of microbial isolates with the <code><ahref="reference/portion.html">portion_R()</a></code>, <code><ahref="reference/portion.html">portion_IR()</a></code>, <code><ahref="reference/portion.html">portion_I()</a></code>, <code><ahref="reference/portion.html">portion_SI()</a></code> and <code><ahref="reference/portion.html">portion_S()</a></code> functions. Similarly, the <em>number</em> of isolates can be determined with the <code><ahref="reference/count.html">count_R()</a></code>, <code><ahref="reference/count.html">count_IR()</a></code>, <code><ahref="reference/count.html">count_I()</a></code>, <code><ahref="reference/count.html">count_SI()</a></code> and <code><ahref="reference/count.html">count_S()</a></code> functions. All these functions can be used with the <code>dplyr</code> package (e.g.in conjunction with <code>summarise()</code>)</li>
<li>Plot AMR results with <code><ahref="reference/ggplot_rsi.html">geom_rsi()</a></code>, a function made for the <code>ggplot2</code> package</li>
<li>Predict antimicrobial resistance for the nextcoming years using logistic regression models with the <code><ahref="reference/resistance_predict.html">resistance_predict()</a></code> function</li>
<li>Conduct descriptive statistics to enhance base R: calculate <code><ahref="reference/kurtosis.html">kurtosis()</a></code>, <code><ahref="reference/skewness.html">skewness()</a></code> and create frequency tables with <code><ahref="reference/freq.html">freq()</a></code>
<li>The <ahref=".reference/WHONET.html"><code>WHONET</code> data set</a>. This data set only contains fake data, but with the exact same structure as files exported by WHONET. Read more about WHONET <ahref="./articles/WHONET.html">on its tutorial page</a>.</li>
<ahref="https://www.rug.nl/staff/c.f.luz/">Christian F. Luz</a><br><smallclass="roles"> Author </small><ahref="https://orcid.org/0000-0001-5809-5995"target="orcid.widget"><imgsrc="https://members.orcid.org/sites/default/files/vector_iD_icon.svg"class="orcid"alt="ORCID"height="16"></a></li>
<ahref="https://www.rug.nl/staff/a.w.friedrich/">Alex W. Friedrich</a><br><smallclass="roles"> Author, thesis advisor </small><ahref="https://orcid.org/0000-0003-4881-038X"target="orcid.widget"><imgsrc="https://members.orcid.org/sites/default/files/vector_iD_icon.svg"class="orcid"alt="ORCID"height="16"></a></li>
<li>
<ahref="https://www.rug.nl/staff/b.sinha/">Bhanu N. M. Sinha</a><br><smallclass="roles"> Author, thesis advisor </small><ahref="https://orcid.org/0000-0003-1634-0010"target="orcid.widget"><imgsrc="https://members.orcid.org/sites/default/files/vector_iD_icon.svg"class="orcid"alt="ORCID"height="16"></a></li>
<li><ahref="authors.html">All authors...</a></li>
</ul>
</div>
</div>
</div>
<footer><divclass="copyright">
<p>Developed by <ahref="https://www.rug.nl/staff/m.s.berends/">Matthijs S. Berends</a>, <ahref="https://www.rug.nl/staff/c.f.luz/">Christian F. Luz</a>, <ahref="https://www.rug.nl/staff/c.glasner/">Corinna Glasner</a>, <ahref="https://www.rug.nl/staff/a.w.friedrich/">Alex W. Friedrich</a>, <ahref="https://www.rug.nl/staff/b.sinha/">Bhanu N. M. Sinha</a>.</p>
</div>
<divclass="pkgdown">
<p>Site built with <ahref="https://pkgdown.r-lib.org/">pkgdown</a> 1.3.0.</p>