1
0
mirror of https://github.com/msberends/AMR.git synced 2024-12-29 12:46:13 +01:00
AMR/docs/news/index.html

1492 lines
123 KiB
HTML
Raw Permalink Normal View History

2018-12-29 22:24:19 +01:00
<!-- Generated by pkgdown: do not edit by hand -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Changelog • AMR (for R)</title>
<!-- favicons -->
<link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png">
<link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png" />
<link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png" />
<link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png" />
<link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png" />
2019-09-25 15:43:22 +02:00
2018-12-29 22:24:19 +01:00
<!-- jquery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Bootstrap -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.7/flatly/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous" />
2019-09-25 15:43:22 +02:00
2018-12-29 22:24:19 +01:00
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha256-U5ZEeKfGNOja007MMD3YBI0A3OSZOQbeG6z2f2Y0hu8=" crossorigin="anonymous"></script>
<!-- Font Awesome icons -->
2019-09-25 15:43:22 +02:00
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/all.min.css" integrity="sha256-nAmazAk6vS34Xqo0BSrTb+abbtFlgsFK7NKSi6o7Y78=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.7.1/css/v4-shims.min.css" integrity="sha256-6qHlizsOWFskGlwVOKuns+D1nB6ssZrHQrNj1wGplHc=" crossorigin="anonymous" />
2018-12-29 22:24:19 +01:00
<!-- clipboard.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" integrity="sha256-FiZwavyI2V6+EXO1U+xzLG3IKldpiTFf3153ea9zikQ=" crossorigin="anonymous"></script>
2019-09-25 15:43:22 +02:00
<!-- headroom.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/headroom.min.js" integrity="sha256-DJFC1kqIhelURkuza0AvYal5RxMtpzLjFhsnVIeuk+U=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.9.4/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script>
2018-12-29 22:24:19 +01:00
<!-- pkgdown -->
<link href="../pkgdown.css" rel="stylesheet">
<script src="../pkgdown.js"></script>
<link href="../extra.css" rel="stylesheet">
<script src="../extra.js"></script>
2019-09-25 15:43:22 +02:00
<meta property="og:title" content="Changelog" />
2019-01-02 23:24:07 +01:00
<meta property="og:image" content="https://msberends.gitlab.io/AMR/logo.png" />
2018-12-29 22:24:19 +01:00
<meta name="twitter:card" content="summary" />
2019-09-25 15:43:22 +02:00
2018-12-29 22:24:19 +01:00
<!-- mathjax -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
2019-09-25 15:43:22 +02:00
2018-12-29 22:24:19 +01:00
</head>
<body>
<div class="container template-news">
<header>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-brand">
<a class="navbar-link" href="../index.html">AMR (for R)</a>
2020-02-17 15:07:25 +01:00
<span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Latest development version">0.9.0.9027</span>
2018-12-29 22:24:19 +01:00
</span>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>
<a href="../index.html">
<span class="fa fa-home"></span>
Home
</a>
</li>
2019-01-02 23:24:07 +01:00
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
<span class="fa fa-question-circle"></span>
How to
2018-12-29 22:24:19 +01:00
2019-01-02 23:24:07 +01:00
<span class="caret"></span>
2018-12-29 22:24:19 +01:00
</a>
2019-01-02 23:24:07 +01:00
<ul class="dropdown-menu" role="menu">
<li>
<a href="../articles/AMR.html">
<span class="fa fa-directions"></span>
Conduct AMR analysis
</a>
</li>
<li>
2019-02-11 10:27:10 +01:00
<a href="../articles/resistance_predict.html">
2019-01-02 23:24:07 +01:00
<span class="fa fa-dice"></span>
Predict antimicrobial resistance
</a>
</li>
2019-05-23 16:58:59 +02:00
<li>
<a href="../articles/MDR.html">
<span class="fa fa-skull-crossbones"></span>
Determine multi-drug resistance (MDR)
</a>
</li>
2019-01-29 00:06:50 +01:00
<li>
<a href="../articles/WHONET.html">
<span class="fa fa-globe-americas"></span>
Work with WHONET data
</a>
</li>
2019-02-14 15:18:17 +01:00
<li>
<a href="../articles/SPSS.html">
<span class="fa fa-file-upload"></span>
Import data from SPSS/SAS/Stata
</a>
</li>
2019-01-02 23:24:07 +01:00
<li>
<a href="../articles/EUCAST.html">
<span class="fa fa-exchange-alt"></span>
Apply EUCAST rules
</a>
</li>
<li>
2019-02-11 10:27:10 +01:00
<a href="../reference/mo_property.html">
2019-01-02 23:24:07 +01:00
<span class="fa fa-bug"></span>
Get properties of a microorganism
</a>
</li>
<li>
2019-05-10 16:44:59 +02:00
<a href="../reference/ab_property.html">
2019-01-02 23:24:07 +01:00
<span class="fa fa-capsules"></span>
Get properties of an antibiotic
</a>
</li>
2019-01-11 20:37:23 +01:00
<li>
<a href="../articles/benchmarks.html">
<span class="fa fa-shipping-fast"></span>
Other: benchmarks
</a>
</li>
2019-01-02 23:24:07 +01:00
</ul>
2018-12-29 22:24:19 +01:00
</li>
<li>
<a href="../reference/">
<span class="fa fa-book-open"></span>
Manual
</a>
</li>
<li>
<a href="../authors.html">
<span class="fa fa-users"></span>
Authors
</a>
</li>
<li>
<a href="../news/">
<span class="far fa far fa-newspaper"></span>
Changelog
</a>
</li>
2019-01-02 23:24:07 +01:00
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
2018-12-29 22:24:19 +01:00
<a href="https://gitlab.com/msberends/AMR">
<span class="fab fa fab fa-gitlab"></span>
Source Code
</a>
</li>
2019-01-02 23:24:07 +01:00
<li>
2018-12-29 22:24:19 +01:00
<a href="../LICENSE-text.html">
<span class="fa fa-book"></span>
Licence
</a>
</li>
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container -->
</div><!--/.navbar -->
2019-09-25 15:43:22 +02:00
2018-12-29 22:24:19 +01:00
</header>
<div class="row">
<div class="col-md-9 contents">
<div class="page-header">
<h1>Changelog <small></small></h1>
</div>
2020-02-17 15:07:25 +01:00
<div id="amr-0909027" class="section level1">
2019-12-16 11:08:25 +01:00
<h1 class="page-header">
2020-02-17 15:07:25 +01:00
<a href="#amr-0909027" class="anchor"></a>AMR 0.9.0.9027<small> Unreleased </small>
2019-12-16 11:08:25 +01:00
</h1>
2020-02-17 14:38:01 +01:00
<div id="last-updated-17-feb-2020" class="section level2">
2019-12-16 11:08:25 +01:00
<h2 class="hasAnchor">
2020-02-17 14:38:01 +01:00
<a href="#last-updated-17-feb-2020" class="anchor"></a><small>Last updated: 17-Feb-2020</small>
2019-12-16 11:08:25 +01:00
</h2>
2020-01-26 20:20:00 +01:00
<div id="new" class="section level3">
<h3 class="hasAnchor">
<a href="#new" class="anchor"></a>New</h3>
<ul>
2020-02-17 14:38:01 +01:00
<li>Support for the newest <a href="http://www.eucast.org/clinical_breakpoints/">EUCAST Clinical Breakpoint Tables v.10.0</a>, valid from 1 January 2020. This affects translation of MIC and disk zones using <code><a href="../reference/as.rsi.html">as.rsi()</a></code> and inferred resistance and susceptibility using <code><a href="../reference/eucast_rules.html">eucast_rules()</a></code>.</li>
<li>The repository of this package now contains a clean version of the EUCAST and CLSI guidelines from 2011-2020 to translate MIC and disk diffusion values to R/SI: <a href="https://gitlab.com/msberends/AMR/blob/master/data-raw/rsi_translation.txt" class="uri">https://gitlab.com/msberends/AMR/blob/master/data-raw/rsi_translation.txt</a>. This <strong>allows for machine reading these guidelines</strong>, which is almost impossible with the Excel and PDF files distributed by EUCAST and CLSI. This file used to process the EUCAST Clinical Breakpoints Excel file <a href="https://gitlab.com/msberends/AMR/blob/master/data-raw/read_EUCAST.R">can be found here</a>.</li>
2020-01-27 19:14:23 +01:00
<li>Support for LOINC and SNOMED codes
<ul>
2020-01-26 20:20:00 +01:00
<li>
<p>Support for LOINC codes in the <code>antibiotics</code> data set. Use <code><a href="../reference/ab_property.html">ab_loinc()</a></code> to retrieve LOINC codes, or use a LOINC code for input in any <code>ab_*</code> function:</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb1"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb1-1"><a href="#cb1-1"></a><span class="kw"><a href="../reference/ab_property.html">ab_loinc</a></span>(<span class="st">"ampicillin"</span>)</span>
<span id="cb1-2"><a href="#cb1-2"></a><span class="co">#&gt; [1] "21066-6" "3355-5" "33562-0" "33919-2" "43883-8" "43884-6" "87604-5"</span></span>
<span id="cb1-3"><a href="#cb1-3"></a><span class="kw"><a href="../reference/ab_property.html">ab_name</a></span>(<span class="st">"21066-6"</span>)</span>
<span id="cb1-4"><a href="#cb1-4"></a><span class="co">#&gt; [1] "Ampicillin"</span></span>
<span id="cb1-5"><a href="#cb1-5"></a><span class="kw"><a href="../reference/ab_property.html">ab_atc</a></span>(<span class="st">"21066-6"</span>)</span>
<span id="cb1-6"><a href="#cb1-6"></a><span class="co">#&gt; [1] "J01CA01"</span></span></code></pre></div>
2020-01-26 20:20:00 +01:00
</li>
2020-01-27 19:14:23 +01:00
<li>
<p>Support for SNOMED CT codes in the <code>microorganisms</code> data set. Use <code><a href="../reference/mo_property.html">mo_snomed()</a></code> to retrieve SNOMED codes, or use a SNOMED code for input in any <code>mo_*</code> function:</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb2"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb2-1"><a href="#cb2-1"></a><span class="kw"><a href="../reference/mo_property.html">mo_snomed</a></span>(<span class="st">"S. aureus"</span>)</span>
<span id="cb2-2"><a href="#cb2-2"></a><span class="co">#&gt; [1] 115329001 3092008 113961008</span></span>
<span id="cb2-3"><a href="#cb2-3"></a><span class="kw"><a href="../reference/mo_property.html">mo_name</a></span>(<span class="dv">115329001</span>)</span>
<span id="cb2-4"><a href="#cb2-4"></a><span class="co">#&gt; [1] "Staphylococcus aureus"</span></span>
<span id="cb2-5"><a href="#cb2-5"></a><span class="kw"><a href="../reference/mo_property.html">mo_gramstain</a></span>(<span class="dv">115329001</span>)</span>
<span id="cb2-6"><a href="#cb2-6"></a><span class="co">#&gt; [1] "Gram-positive"</span></span></code></pre></div>
2020-01-27 19:14:23 +01:00
</li>
</ul>
</li>
2020-01-26 20:20:00 +01:00
</ul>
</div>
<div id="changes" class="section level3">
<h3 class="hasAnchor">
<a href="#changes" class="anchor"></a>Changes</h3>
<ul>
2020-02-01 15:09:36 +01:00
<li>The <code><a href="../reference/as.mo.html">as.mo()</a></code> function previously wrote to the package folder to improve calculation speed for previously calculated results. This is no longer the case, to comply with CRAN policies. Consequently, the function <code>clear_mo_history()</code> was removed.</li>
<li>Bugfix for some WHONET microorganism codes that were not interpreted correctly when using <code><a href="../reference/as.rsi.html">as.rsi()</a></code>
</li>
2020-02-09 22:04:29 +01:00
<li>Improvements for the algorithm used by <code><a href="../reference/as.mo.html">as.mo()</a></code> (and consequently all <code>mo_*</code> functions, that use <code><a href="../reference/as.mo.html">as.mo()</a></code> internally):
<ul>
<li>Support for missing spaces, e.g. in <code><a href="../reference/as.mo.html">as.mo("Methicillin-resistant S.aureus")</a></code>
2019-12-21 10:56:06 +01:00
</li>
2020-01-26 20:20:00 +01:00
<li>Better support for determination of <em>Salmonella</em> biovars</li>
2020-02-09 22:04:29 +01:00
<li>Speed improvements, especially for the <em>G. species</em> format (G for genus), like <em>E. coli</em> and <em>K pneumoniae</em>
</li>
<li>Support for more common codes used in laboratory information systems</li>
</ul>
</li>
2019-12-21 10:56:06 +01:00
<li>Input values for <code><a href="../reference/as.disk.html">as.disk()</a></code> limited to a maximum of 50 millimeters</li>
<li>Added a lifecycle state to every function, following <a href="https://www.tidyverse.org/lifecycle">the lifecycle circle of the <code>tidyverse</code></a>
</li>
<li>For in <code><a href="../reference/as.ab.html">as.ab()</a></code>: support for drugs starting with “co-” like co-amoxiclav, co-trimoxazole, co-trimazine and co-trimazole (thanks to Peter Dutey)</li>
<li>Changes to the <code>antibiotics</code> data set (thanks to Peter Dutey):
<ul>
<li>Added more synonyms to colistin, imipenem and piperacillin/tazobactam</li>
2020-02-14 19:54:13 +01:00
<li>Moved synonyms Rifinah and Rimactazid from rifampicin (<code>RIF</code>) to rifampicin/isoniazid (<code>RFI</code>). Please note that <a href="https://www.whocc.no/atc_ddd_index/?code=J04AM02&amp;showdescription=no">the combination rifampicin/isoniazid has no DDDs defined</a>, so e.g. <code><a href="../reference/ab_property.html">ab_ddd("Rimactazid")</a></code> will now return <code>NA</code>.</li>
<li>Moved synonyms Bactrimel and Cotrimazole from sulfamethoxazole (<code>SMX</code>) to trimethoprim/sulfamethoxazole (<code>SXT</code>)</li>
</ul>
</li>
</ul>
</div>
2019-12-22 11:43:38 +01:00
<div id="other" class="section level3">
<h3 class="hasAnchor">
<a href="#other" class="anchor"></a>Other</h3>
<ul>
<li>Add a <code>CITATION</code> file</li>
2020-01-15 15:24:08 +01:00
<li>Full support for the upcoming R 4.0</li>
2020-02-14 19:54:13 +01:00
<li>Removed unnecessary <code>AMR::</code> calls</li>
2019-12-22 11:43:38 +01:00
</ul>
</div>
2019-12-16 11:08:25 +01:00
</div>
</div>
2020-02-14 19:54:13 +01:00
<div id="amr-090" class="section level1">
2019-04-05 18:47:39 +02:00
<h1 class="page-header">
2020-02-14 19:54:13 +01:00
<a href="#amr-090" class="anchor"></a>AMR 0.9.0<small> 2019-11-29 </small>
2019-10-16 22:47:48 +02:00
</h1>
2019-11-15 15:25:03 +01:00
<div id="breaking" class="section level3">
<h3 class="hasAnchor">
<a href="#breaking" class="anchor"></a>Breaking</h3>
<ul>
<li>Adopted Adeolu <em>et al.</em> (2016), <a href="https://www.ncbi.nlm.nih.gov/pubmed/27620848">PMID 27620848</a> for the <code>microorganisms</code> data set, which means that the new order Enterobacterales now consists of a part of the existing family Enterobacteriaceae, but that this family has been split into other families as well (like <em>Morganellaceae</em> and <em>Yersiniaceae</em>). Although published in 2016, this information is not yet in the Catalogue of Life version of 2019. All MDRO determinations with <code><a href="../reference/mdro.html">mdro()</a></code> will now use the Enterobacterales order for all guidelines before 2016 that were dependent on the Enterobacteriaceae family.
<ul>
<li>
<p>If you were dependent on the old Enterobacteriaceae family e.g. by using in your code:</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb3"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb3-1"><a href="#cb3-1"></a><span class="cf">if</span> (<span class="kw"><a href="../reference/mo_property.html">mo_family</a></span>(somebugs) <span class="op">==</span><span class="st"> "Enterobacteriaceae"</span>) ...</span></code></pre></div>
2019-11-15 15:25:03 +01:00
<p>then please adjust this to:</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb4"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb4-1"><a href="#cb4-1"></a><span class="cf">if</span> (<span class="kw"><a href="../reference/mo_property.html">mo_order</a></span>(somebugs) <span class="op">==</span><span class="st"> "Enterobacterales"</span>) ...</span></code></pre></div>
2019-11-15 15:25:03 +01:00
</li>
</ul>
</li>
</ul>
</div>
2020-01-26 20:20:00 +01:00
<div id="new-1" class="section level3">
<h3 class="hasAnchor">
2020-01-26 20:20:00 +01:00
<a href="#new-1" class="anchor"></a>New</h3>
<ul>
2019-11-11 10:46:39 +01:00
<li>
<p>Functions <code><a href="../reference/proportion.html">susceptibility()</a></code> and <code><a href="../reference/proportion.html">resistance()</a></code> as aliases of <code><a href="../reference/proportion.html">proportion_SI()</a></code> and <code><a href="../reference/proportion.html">proportion_R()</a></code>, respectively. These functions were added to make it more clear that “I” should be considered susceptible and not resistant.</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb5"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb5-1"><a href="#cb5-1"></a><span class="kw"><a href="https://rdrr.io/r/base/library.html">library</a></span>(dplyr)</span>
<span id="cb5-2"><a href="#cb5-2"></a>example_isolates <span class="op">%&gt;%</span></span>
<span id="cb5-3"><a href="#cb5-3"></a><span class="st"> </span><span class="kw"><a href="https://dplyr.tidyverse.org/reference/group_by.html">group_by</a></span>(<span class="dt">bug =</span> <span class="kw"><a href="../reference/mo_property.html">mo_name</a></span>(mo)) <span class="op">%&gt;%</span><span class="st"> </span></span>
<span id="cb5-4"><a href="#cb5-4"></a><span class="st"> </span><span class="kw"><a href="https://dplyr.tidyverse.org/reference/summarise.html">summarise</a></span>(<span class="dt">amoxicillin =</span> <span class="kw"><a href="../reference/proportion.html">resistance</a></span>(AMX),</span>
<span id="cb5-5"><a href="#cb5-5"></a> <span class="dt">amox_clav =</span> <span class="kw"><a href="../reference/proportion.html">resistance</a></span>(AMC)) <span class="op">%&gt;%</span></span>
<span id="cb5-6"><a href="#cb5-6"></a><span class="st"> </span><span class="kw"><a href="https://dplyr.tidyverse.org/reference/filter.html">filter</a></span>(<span class="op">!</span><span class="kw"><a href="https://rdrr.io/r/base/NA.html">is.na</a></span>(amoxicillin) <span class="op">|</span><span class="st"> </span><span class="op">!</span><span class="kw"><a href="https://rdrr.io/r/base/NA.html">is.na</a></span>(amox_clav))</span></code></pre></div>
2019-11-11 10:46:39 +01:00
</li>
2020-02-14 19:54:13 +01:00
<li>
<p>Support for a new MDRO guideline: Magiorakos AP, Srinivasan A <em>et al.</em> “Multidrug-resistant, extensively drug-resistant and pandrug-resistant bacteria: an international expert proposal for interim standard definitions for acquired resistance.” Clinical Microbiology and Infection (2012).</p>
<ul>
<li>This is now the new default guideline for the <code><a href="../reference/mdro.html">mdro()</a></code> function</li>
2019-11-05 21:52:58 +01:00
<li>The new Verbose mode (<code><a href="../reference/mdro.html">mdro(...., verbose = TRUE)</a></code>) returns an informative data set where the reason for MDRO determination is given for every isolate, and an list of the resistant antimicrobial agents</li>
</ul>
</li>
<li><p>Data set <code>antivirals</code>, containing all entries from the ATC J05 group with their DDDs for oral and parenteral treatment</p></li>
</ul>
</div>
<div id="changes-1" class="section level3">
2019-10-16 22:47:48 +02:00
<h3 class="hasAnchor">
<a href="#changes-1" class="anchor"></a>Changes</h3>
<ul>
2019-11-15 15:25:03 +01:00
<li>Improvements to algorithm in <code><a href="../reference/as.mo.html">as.mo()</a></code>:
<ul>
2020-02-14 19:54:13 +01:00
<li><p>Now allows “ou” where “au” should have been used and vice versa</p></li>
<li><p>More intelligent way of coping with some consonants like “l” and “r”</p></li>
2019-11-15 15:25:03 +01:00
<li>
<p>Added a score (a certainty percentage) to <code><a href="../reference/as.mo.html">mo_uncertainties()</a></code>, that is calculated using the <a href="https://en.wikipedia.org/wiki/Levenshtein_distance">Levenshtein distance</a>:</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb6"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb6-1"><a href="#cb6-1"></a><span class="kw"><a href="../reference/as.mo.html">as.mo</a></span>(<span class="kw"><a href="https://rdrr.io/r/base/c.html">c</a></span>(<span class="st">"Stafylococcus aureus"</span>,</span>
<span id="cb6-2"><a href="#cb6-2"></a> <span class="st">"staphylokok aureuz"</span>))</span>
<span id="cb6-3"><a href="#cb6-3"></a><span class="co">#&gt; Warning: </span></span>
<span id="cb6-4"><a href="#cb6-4"></a><span class="co">#&gt; Results of two values were guessed with uncertainty. Use mo_uncertainties() to review them.</span></span>
<span id="cb6-5"><a href="#cb6-5"></a><span class="co">#&gt; Class 'mo'</span></span>
<span id="cb6-6"><a href="#cb6-6"></a><span class="co">#&gt; [1] B_STPHY_AURS B_STPHY_AURS</span></span>
<span id="cb6-7"><a href="#cb6-7"></a></span>
<span id="cb6-8"><a href="#cb6-8"></a><span class="kw"><a href="../reference/as.mo.html">mo_uncertainties</a></span>()</span>
<span id="cb6-9"><a href="#cb6-9"></a><span class="co">#&gt; "Stafylococcus aureus" -&gt; Staphylococcus aureus (B_STPHY_AURS, score: 95.2%)</span></span>
<span id="cb6-10"><a href="#cb6-10"></a><span class="co">#&gt; "staphylokok aureuz" -&gt; Staphylococcus aureus (B_STPHY_AURS, score: 85.7%)</span></span></code></pre></div>
2019-11-15 15:25:03 +01:00
</li>
</ul>
</li>
2019-11-10 15:50:18 +01:00
<li>Removed previously deprecated function <code>as.atc()</code> - this function was replaced by <code><a href="../reference/ab_property.html">ab_atc()</a></code>
</li>
<li>Renamed all <code>portion_*</code> functions to <code>proportion_*</code>. All <code>portion_*</code> functions are still available as deprecated functions, and will return a warning when used.</li>
<li>When running <code><a href="../reference/as.rsi.html">as.rsi()</a></code> over a data set, it will now print the guideline that will be used if it is not specified by the user</li>
2019-11-15 15:25:03 +01:00
<li>Improvements for <code><a href="../reference/eucast_rules.html">eucast_rules()</a></code>:
<ul>
<li>Fix where <em>Stenotrophomonas maltophilia</em> would always become ceftazidime R (following EUCAST v3.1)</li>
<li>Fix where <em>Leuconostoc</em> and <em>Pediococcus</em> would not always become glycopeptides R</li>
2019-11-15 15:25:03 +01:00
<li>non-EUCAST rules in <code><a href="../reference/eucast_rules.html">eucast_rules()</a></code> are now applied first and not as last anymore. This is to improve the dependency on certain antibiotics for the official EUCAST rules. Please see <code><a href="../reference/eucast_rules.html">?eucast_rules</a></code>.</li>
</ul>
</li>
<li>Fix for interpreting MIC values with <code><a href="../reference/as.rsi.html">as.rsi()</a></code> where the input is <code>NA</code>
</li>
<li>Added “imi” and “imp” as allowed abbreviation for Imipenem (IPM)</li>
<li>Fix for automatically determining columns with antibiotic results in <code><a href="../reference/mdro.html">mdro()</a></code> and <code><a href="../reference/eucast_rules.html">eucast_rules()</a></code>
</li>
2019-10-27 00:31:59 +02:00
<li>Added ATC codes for ceftaroline, ceftobiprole and faropenem and fixed two typos in the <code>antibiotics</code> data set</li>
<li>More robust way of determining valid MIC values</li>
<li>Small changed to the <code>example_isolates</code> data set to better reflect reality</li>
2019-11-24 22:48:56 +01:00
<li>Added more microorganisms codes from laboratory systems (esp. species of <em>Pseudescherichia</em> and <em>Rodentibacter</em>)</li>
<li>Added Gram-stain to <code><a href="../reference/mo_property.html">mo_info()</a></code>
</li>
</ul>
</div>
2019-12-22 11:43:38 +01:00
<div id="other-1" class="section level3">
<h3 class="hasAnchor">
2019-12-22 11:43:38 +01:00
<a href="#other-1" class="anchor"></a>Other</h3>
<ul>
<li>Rewrote the complete documentation to markdown format, to be able to use the very latest version of the great <a href="https://roxygen2.r-lib.org/index.html">Roxygen2</a>, released in November 2019. This tremously improved the documentation quality, since the rewrite forced us to go over all texts again and make changes where needed.</li>
<li>Change dependency on <code>clean</code> to <code>cleaner</code>, as this package was renamed accordingly upon CRAN request</li>
2019-11-04 11:35:34 +01:00
<li>Added Dr. Sofia Ny as contributor</li>
</ul>
2019-10-16 22:47:48 +02:00
</div>
</div>
2020-02-14 19:54:13 +01:00
<div id="amr-080" class="section level1">
2019-10-16 22:47:48 +02:00
<h1 class="page-header">
2020-02-14 19:54:13 +01:00
<a href="#amr-080" class="anchor"></a>AMR 0.8.0<small> 2019-10-15 </small>
2019-06-23 21:35:17 +02:00
</h1>
2019-11-15 15:25:03 +01:00
<div id="breaking-1" class="section level3">
2019-07-29 13:33:48 +02:00
<h3 class="hasAnchor">
2019-11-15 15:25:03 +01:00
<a href="#breaking-1" class="anchor"></a>Breaking</h3>
2019-07-29 13:33:48 +02:00
<ul>
<li>
<p>Determination of first isolates now <strong>excludes</strong> all unknown microorganisms at default, i.e. microbial code <code>"UNKNOWN"</code>. They can be included with the new parameter <code>include_unknown</code>:</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb7"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb7-1"><a href="#cb7-1"></a><span class="kw"><a href="../reference/first_isolate.html">first_isolate</a></span>(..., <span class="dt">include_unknown =</span> <span class="ot">TRUE</span>)</span></code></pre></div>
<p>For WHONET users, this means that all records/isolates with organism code <code>"con"</code> (<em>contamination</em>) will be excluded at default, since <code>as.mo("con") = "UNKNOWN"</code>. The function always shows a note with the number of unknown microorganisms that were included or excluded.</p>
</li>
<li>
<p>For code consistency, classes <code>ab</code> and <code>mo</code> will now be preserved in any subsetting or assignment. For the sake of data integrity, this means that invalid assignments will now result in <code>NA</code>:</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb8"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb8-1"><a href="#cb8-1"></a><span class="co"># how it works in base R:</span></span>
<span id="cb8-2"><a href="#cb8-2"></a>x &lt;-<span class="st"> </span><span class="kw"><a href="https://rdrr.io/r/base/factor.html">factor</a></span>(<span class="st">"A"</span>)</span>
<span id="cb8-3"><a href="#cb8-3"></a>x[<span class="dv">1</span>] &lt;-<span class="st"> "B"</span></span>
<span id="cb8-4"><a href="#cb8-4"></a><span class="co">#&gt; Warning message:</span></span>
<span id="cb8-5"><a href="#cb8-5"></a><span class="co">#&gt; invalid factor level, NA generated</span></span>
<span id="cb8-6"><a href="#cb8-6"></a></span>
<span id="cb8-7"><a href="#cb8-7"></a><span class="co"># how it now works similarly for classes 'mo' and 'ab':</span></span>
<span id="cb8-8"><a href="#cb8-8"></a>x &lt;-<span class="st"> </span><span class="kw"><a href="../reference/as.mo.html">as.mo</a></span>(<span class="st">"E. coli"</span>)</span>
<span id="cb8-9"><a href="#cb8-9"></a>x[<span class="dv">1</span>] &lt;-<span class="st"> "testvalue"</span></span>
<span id="cb8-10"><a href="#cb8-10"></a><span class="co">#&gt; Warning message:</span></span>
<span id="cb8-11"><a href="#cb8-11"></a><span class="co">#&gt; invalid microorganism code, NA generated</span></span></code></pre></div>
<p>This is important, because a value like <code>"testvalue"</code> could never be understood by e.g. <code><a href="../reference/mo_property.html">mo_name()</a></code>, although the class would suggest a valid microbial code.</p>
</li>
<li><p>Function <code><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq()</a></code> has moved to a new package, <a href="https://github.com/msberends/clean"><code>clean</code></a> (<a href="https://cran.r-project.org/package=clean">CRAN link</a>), since creating frequency tables actually does not fit the scope of this package. The <code><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq()</a></code> function still works, since it is re-exported from the <code>clean</code> package (which will be installed automatically upon updating this <code>AMR</code> package).</p></li>
<li><p>Renamed data set <code>septic_patients</code> to <code>example_isolates</code></p></li>
2019-07-29 13:33:48 +02:00
</ul>
</div>
2020-01-26 20:20:00 +01:00
<div id="new-2" class="section level3">
<h3 class="hasAnchor">
2020-01-26 20:20:00 +01:00
<a href="#new-2" class="anchor"></a>New</h3>
<ul>
<li>
2019-10-11 17:21:02 +02:00
<p>Function <code><a href="../reference/bug_drug_combinations.html">bug_drug_combinations()</a></code> to quickly get a <code>data.frame</code> with the results of all bug-drug combinations in a data set. The column containing microorganism codes is guessed automatically and its input is transformed with <code><a href="../reference/mo_property.html">mo_shortname()</a></code> at default:</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb9"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb9-1"><a href="#cb9-1"></a>x &lt;-<span class="st"> </span><span class="kw"><a href="../reference/bug_drug_combinations.html">bug_drug_combinations</a></span>(example_isolates)</span>
<span id="cb9-2"><a href="#cb9-2"></a><span class="co">#&gt; </span><span class="al">NOTE</span><span class="co">: Using column `mo` as input for `col_mo`.</span></span>
<span id="cb9-3"><a href="#cb9-3"></a>x[<span class="dv">1</span><span class="op">:</span><span class="dv">4</span>, ]</span>
<span id="cb9-4"><a href="#cb9-4"></a><span class="co">#&gt; mo ab S I R total</span></span>
<span id="cb9-5"><a href="#cb9-5"></a><span class="co">#&gt; 1 A. baumannii AMC 0 0 3 3</span></span>
<span id="cb9-6"><a href="#cb9-6"></a><span class="co">#&gt; 2 A. baumannii AMK 0 0 0 0</span></span>
<span id="cb9-7"><a href="#cb9-7"></a><span class="co">#&gt; 3 A. baumannii AMP 0 0 3 3</span></span>
<span id="cb9-8"><a href="#cb9-8"></a><span class="co">#&gt; 4 A. baumannii AMX 0 0 3 3</span></span>
<span id="cb9-9"><a href="#cb9-9"></a><span class="co">#&gt; </span><span class="al">NOTE</span><span class="co">: Use 'format()' on this result to get a publicable/printable format.</span></span>
<span id="cb9-10"><a href="#cb9-10"></a></span>
<span id="cb9-11"><a href="#cb9-11"></a><span class="co"># change the transformation with the FUN argument to anything you like:</span></span>
<span id="cb9-12"><a href="#cb9-12"></a>x &lt;-<span class="st"> </span><span class="kw"><a href="../reference/bug_drug_combinations.html">bug_drug_combinations</a></span>(example_isolates, <span class="dt">FUN =</span> mo_gramstain)</span>
<span id="cb9-13"><a href="#cb9-13"></a><span class="co">#&gt; </span><span class="al">NOTE</span><span class="co">: Using column `mo` as input for `col_mo`.</span></span>
<span id="cb9-14"><a href="#cb9-14"></a>x[<span class="dv">1</span><span class="op">:</span><span class="dv">4</span>, ]</span>
<span id="cb9-15"><a href="#cb9-15"></a><span class="co">#&gt; mo ab S I R total</span></span>
<span id="cb9-16"><a href="#cb9-16"></a><span class="co">#&gt; 1 Gram-negative AMC 469 89 174 732</span></span>
<span id="cb9-17"><a href="#cb9-17"></a><span class="co">#&gt; 2 Gram-negative AMK 251 0 2 253</span></span>
<span id="cb9-18"><a href="#cb9-18"></a><span class="co">#&gt; 3 Gram-negative AMP 227 0 405 632</span></span>
<span id="cb9-19"><a href="#cb9-19"></a><span class="co">#&gt; 4 Gram-negative AMX 227 0 405 632</span></span>
<span id="cb9-20"><a href="#cb9-20"></a><span class="co">#&gt; </span><span class="al">NOTE</span><span class="co">: Use 'format()' on this result to get a publicable/printable format.</span></span></code></pre></div>
2019-09-25 15:43:22 +02:00
<p>You can format this to a printable format, ready for reporting or exporting to e.g. Excel with the base R <code><a href="https://rdrr.io/r/base/format.html">format()</a></code> function:</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb10"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb10-1"><a href="#cb10-1"></a><span class="kw"><a href="https://rdrr.io/r/base/format.html">format</a></span>(x, <span class="dt">combine_IR =</span> <span class="ot">FALSE</span>)</span></code></pre></div>
2019-08-25 22:53:22 +02:00
</li>
<li>
2019-10-11 17:21:02 +02:00
<p>Additional way to calculate co-resistance, i.e. when using multiple antimicrobials as input for <code>portion_*</code> functions or <code>count_*</code> functions. This can be used to determine the empiric susceptibility of a combination therapy. A new parameter <code>only_all_tested</code> (<strong>which defaults to <code>FALSE</code></strong>) replaces the old <code>also_single_tested</code> and can be used to select one of the two methods to count isolates and calculate portions. The difference can be seen in this example table (which is also on the <code>portion</code> and <code>count</code> help pages), where the %SI is being determined:</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb11"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb11-1"><a href="#cb11-1"></a><span class="co"># --------------------------------------------------------------------</span></span>
<span id="cb11-2"><a href="#cb11-2"></a><span class="co"># only_all_tested = FALSE only_all_tested = TRUE</span></span>
<span id="cb11-3"><a href="#cb11-3"></a><span class="co"># ----------------------- -----------------------</span></span>
<span id="cb11-4"><a href="#cb11-4"></a><span class="co"># Drug A Drug B include as include as include as include as</span></span>
<span id="cb11-5"><a href="#cb11-5"></a><span class="co"># numerator denominator numerator denominator</span></span>
<span id="cb11-6"><a href="#cb11-6"></a><span class="co"># -------- -------- ---------- ----------- ---------- -----------</span></span>
<span id="cb11-7"><a href="#cb11-7"></a><span class="co"># S or I S or I X X X X</span></span>
<span id="cb11-8"><a href="#cb11-8"></a><span class="co"># R S or I X X X X</span></span>
<span id="cb11-9"><a href="#cb11-9"></a><span class="co"># &lt;NA&gt; S or I X X - -</span></span>
<span id="cb11-10"><a href="#cb11-10"></a><span class="co"># S or I R X X X X</span></span>
<span id="cb11-11"><a href="#cb11-11"></a><span class="co"># R R - X - X</span></span>
<span id="cb11-12"><a href="#cb11-12"></a><span class="co"># &lt;NA&gt; R - - - -</span></span>
<span id="cb11-13"><a href="#cb11-13"></a><span class="co"># S or I &lt;NA&gt; X X - -</span></span>
<span id="cb11-14"><a href="#cb11-14"></a><span class="co"># R &lt;NA&gt; - - - -</span></span>
<span id="cb11-15"><a href="#cb11-15"></a><span class="co"># &lt;NA&gt; &lt;NA&gt; - - - -</span></span>
<span id="cb11-16"><a href="#cb11-16"></a><span class="co"># --------------------------------------------------------------------</span></span></code></pre></div>
<p>Since this is a major change, usage of the old <code>also_single_tested</code> will throw an informative error that it has been replaced by <code>only_all_tested</code>.</p>
</li>
<li>
<p><code>tibble</code> printing support for classes <code>rsi</code>, <code>mic</code>, <code>disk</code>, <code>ab</code> <code>mo</code>. When using <code>tibble</code>s containing antimicrobial columns, values <code>S</code> will print in green, values <code>I</code> will print in yellow and values <code>R</code> will print in red. Microbial IDs (class <code>mo</code>) will emphasise on the genus and species, not on the kingdom.</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb12"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb12-1"><a href="#cb12-1"></a><span class="co"># (run this on your own console, as this page does not support colour printing)</span></span>
<span id="cb12-2"><a href="#cb12-2"></a><span class="kw"><a href="https://rdrr.io/r/base/library.html">library</a></span>(dplyr)</span>
<span id="cb12-3"><a href="#cb12-3"></a>example_isolates <span class="op">%&gt;%</span></span>
<span id="cb12-4"><a href="#cb12-4"></a><span class="st"> </span><span class="kw"><a href="https://dplyr.tidyverse.org/reference/select.html">select</a></span>(mo<span class="op">:</span>AMC) <span class="op">%&gt;%</span><span class="st"> </span></span>
<span id="cb12-5"><a href="#cb12-5"></a><span class="st"> </span><span class="kw"><a href="https://dplyr.tidyverse.org/reference/reexports.html">as_tibble</a></span>()</span></code></pre></div>
</li>
</ul>
</div>
2019-06-27 11:57:45 +02:00
<div id="changed" class="section level3">
<h3 class="hasAnchor">
<a href="#changed" class="anchor"></a>Changed</h3>
<ul>
2019-09-23 13:53:50 +02:00
<li>Many algorithm improvements for <code><a href="../reference/as.mo.html">as.mo()</a></code> (of which some led to additions to the <code>microorganisms</code> data set). Many thanks to all contributors that helped improving the algorithms.
2019-09-16 12:00:56 +02:00
<ul>
<li>Self-learning algorithm - the function now gains experience from previously determined microorganism IDs and learns from it (yielding 80-95% speed improvement for any guess after the first try)</li>
<li>Big improvement for misspelled input</li>
<li>These new trivial names known to the field are now understood: meningococcus, gonococcus, pneumococcus</li>
<li>Updated to the latest taxonomic data (updated to August 2019, from the International Journal of Systematic and Evolutionary Microbiology</li>
<li>Added support for Viridans Group Streptococci (VGS) and Milleri Group Streptococci (MGS)</li>
2019-09-22 17:19:59 +02:00
<li>Added support for <em>Blastocystis</em>
</li>
2019-09-16 12:00:56 +02:00
<li>Added support for 5,000 new fungi</li>
<li>Added support for unknown yeasts and fungi</li>
2019-09-23 13:53:50 +02:00
<li>Changed most microorganism IDs to improve readability. For example, the old code <code>B_ENTRC_FAE</code> could have been both <em>E. faecalis</em> and <em>E. faecium</em>. Its new code is <code>B_ENTRC_FCLS</code> and <em>E. faecium</em> has become <code>B_ENTRC_FACM</code>. Also, the Latin character æ (ae) is now preserved at the start of each genus and species abbreviation. For example, the old code for <em>Aerococcus urinae</em> was <code>B_ARCCC_NAE</code>. This is now <code>B_AERCC_URIN</code>. <strong>IMPORTANT:</strong> Old microorganism IDs are still supported, but support will be dropped in a future version. Use <code><a href="../reference/as.mo.html">as.mo()</a></code> on your old codes to transform them to the new format. Using functions from the <code>mo_*</code> family (like <code><a href="../reference/mo_property.html">mo_name()</a></code> and <code><a href="../reference/mo_property.html">mo_gramstain()</a></code>) on old codes, will throw a warning.</li>
2019-09-16 12:00:56 +02:00
</ul>
</li>
<li>More intelligent guessing for <code><a href="../reference/as.ab.html">as.ab()</a></code>, including bidirectional language support</li>
<li>Added support for the German national guideline (3MRGN/4MRGN) in the <code><a href="../reference/mdro.html">mdro()</a></code> function, to determine multi-drug resistant organisms</li>
2019-09-23 13:53:50 +02:00
<li>Function <code><a href="../reference/eucast_rules.html">eucast_rules()</a></code>:
<ul>
<li>Fixed a bug for <em>Yersinia pseudotuberculosis</em>
2019-08-07 15:37:39 +02:00
</li>
<li>Added more informative errors and warnings</li>
<li>Printed info now distinguishes between added and changes values</li>
2020-02-14 19:54:13 +01:00
<li>Using Verbose mode (i.e. <code><a href="../reference/eucast_rules.html">eucast_rules(..., verbose = TRUE)</a></code>) returns more informative and readable output</li>
<li>Using factors as input now adds missing factors levels when the function changes antibiotic results</li>
</ul>
</li>
<li>Improved the internal auto-guessing function for determining antimicrobials in your data set (<code>AMR:::get_column_abx()</code>)</li>
<li>Removed class <code>atc</code> - using <code>as.atc()</code> is now deprecated in favour of <code><a href="../reference/ab_property.html">ab_atc()</a></code> and this will return a character, not the <code>atc</code> class anymore</li>
2019-06-27 11:57:45 +02:00
<li>Removed deprecated functions <code>abname()</code>, <code>ab_official()</code>, <code>atc_name()</code>, <code>atc_official()</code>, <code>atc_property()</code>, <code>atc_tradenames()</code>, <code>atc_trivial_nl()</code>
</li>
2019-09-23 13:53:50 +02:00
<li>Fix and speed improvement for <code><a href="../reference/mo_property.html">mo_shortname()</a></code>
2019-06-27 11:57:45 +02:00
</li>
2019-09-23 13:53:50 +02:00
<li>Fix for using <code>mo_*</code> functions where the coercion uncertainties and failures would not be available through <code><a href="../reference/as.mo.html">mo_uncertainties()</a></code> and <code><a href="../reference/as.mo.html">mo_failures()</a></code> anymore</li>
<li>Deprecated the <code>country</code> parameter of <code><a href="../reference/mdro.html">mdro()</a></code> in favour of the already existing <code>guideline</code> parameter to support multiple guidelines within one country</li>
<li>The <code>name</code> of <code>RIF</code> is now Rifampicin instead of Rifampin</li>
<li>The <code>antibiotics</code> data set is now sorted by name and all cephalosporins now have their generation between brackets</li>
2019-09-23 13:53:50 +02:00
<li>Speed improvement for <code><a href="../reference/guess_ab_col.html">guess_ab_col()</a></code> which is now 30 times faster for antibiotic abbreviations</li>
<li>Improved <code><a href="../reference/filter_ab_class.html">filter_ab_class()</a></code> to be more reliable and to support 5th generation cephalosporins</li>
<li>Function <code><a href="../reference/availability.html">availability()</a></code> now uses <code><a href="../reference/AMR-deprecated.html">portion_R()</a></code> instead of <code><a href="../reference/AMR-deprecated.html">portion_IR()</a></code>, to comply with EUCAST insights</li>
2019-09-23 13:53:50 +02:00
<li>Functions <code><a href="../reference/age.html">age()</a></code> and <code><a href="../reference/age_groups.html">age_groups()</a></code> now have a <code>na.rm</code> parameter to remove empty values</li>
<li>Renamed function <code><a href="../reference/AMR-deprecated.html">p.symbol()</a></code> to <code><a href="../reference/p_symbol.html">p_symbol()</a></code> (the former is now deprecated and will be removed in a future version)</li>
<li>Using negative values for <code>x</code> in <code><a href="../reference/age_groups.html">age_groups()</a></code> will now introduce <code>NA</code>s and not return an error anymore</li>
<li>Fix for determining the systems language</li>
2019-09-23 13:53:50 +02:00
<li>Fix for <code><a href="../reference/key_antibiotics.html">key_antibiotics()</a></code> on foreign systems</li>
2019-09-22 17:19:59 +02:00
<li>Added 80 new LIS codes for microorganisms</li>
2019-09-26 21:58:06 +02:00
<li>Relabeled the factor levels of <code><a href="../reference/mdro.html">mdr_tb()</a></code>
</li>
<li>Added more MIC factor levels (<code><a href="../reference/as.mic.html">as.mic()</a></code>)</li>
2019-06-27 11:57:45 +02:00
</ul>
2019-12-22 11:43:38 +01:00
<div id="other-2" class="section level4">
2019-08-08 15:52:07 +02:00
<h4 class="hasAnchor">
2019-12-22 11:43:38 +01:00
<a href="#other-2" class="anchor"></a>Other</h4>
2019-08-08 15:52:07 +02:00
<ul>
2019-09-18 15:46:09 +02:00
<li>Added Prof. Dr. Casper Albers as doctoral advisor and added Dr. Judith Fonville, Eric Hazenberg, Dr. Bart Meijer, Dr. Dennis Souverein and Annick Lenglet as contributors</li>
2019-10-11 17:21:02 +02:00
<li>Cleaned the coding style of every single syntax line in this package with the help of the <code>lintr</code> package</li>
2019-08-08 15:52:07 +02:00
</ul>
</div>
2019-06-27 11:57:45 +02:00
</div>
2019-06-23 21:35:17 +02:00
</div>
2020-02-14 19:54:13 +01:00
<div id="amr-071" class="section level1">
2019-06-23 21:35:17 +02:00
<h1 class="page-header">
2020-02-14 19:54:13 +01:00
<a href="#amr-071" class="anchor"></a>AMR 0.7.1<small> 2019-06-23 </small>
2019-04-05 18:47:39 +02:00
</h1>
2020-01-26 20:20:00 +01:00
<div id="new-3" class="section level4">
2019-05-10 16:44:59 +02:00
<h4 class="hasAnchor">
2020-01-26 20:20:00 +01:00
<a href="#new-3" class="anchor"></a>New</h4>
<ul>
<li>
<p>Function <code><a href="../reference/proportion.html">rsi_df()</a></code> to transform a <code>data.frame</code> to a data set containing only the microbial interpretation (S, I, R), the antibiotic, the percentage of S/I/R and the number of available isolates. This is a convenient combination of the existing functions <code><a href="../reference/count.html">count_df()</a></code> and <code><a href="../reference/AMR-deprecated.html">portion_df()</a></code> to immediately show resistance percentages and number of available isolates:</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb13"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb13-1"><a href="#cb13-1"></a>septic_patients <span class="op">%&gt;%</span></span>
<span id="cb13-2"><a href="#cb13-2"></a><span class="st"> </span><span class="kw"><a href="https://dplyr.tidyverse.org/reference/select.html">select</a></span>(AMX, CIP) <span class="op">%&gt;%</span></span>
<span id="cb13-3"><a href="#cb13-3"></a><span class="st"> </span><span class="kw"><a href="../reference/proportion.html">rsi_df</a></span>()</span>
<span id="cb13-4"><a href="#cb13-4"></a><span class="co"># antibiotic interpretation value isolates</span></span>
<span id="cb13-5"><a href="#cb13-5"></a><span class="co"># 1 Amoxicillin SI 0.4442636 546</span></span>
<span id="cb13-6"><a href="#cb13-6"></a><span class="co"># 2 Amoxicillin R 0.5557364 683</span></span>
<span id="cb13-7"><a href="#cb13-7"></a><span class="co"># 3 Ciprofloxacin SI 0.8381831 1181</span></span>
<span id="cb13-8"><a href="#cb13-8"></a><span class="co"># 4 Ciprofloxacin R 0.1618169 228</span></span></code></pre></div>
2019-06-13 14:28:46 +02:00
</li>
<li>
2019-06-22 20:14:06 +02:00
<p>Support for all scientifically published pathotypes of <em>E. coli</em> to date (that we could find). Supported are:</p>
<ul>
<li>AIEC (Adherent-Invasive <em>E. coli</em>)</li>
<li>ATEC (Atypical Entero-pathogenic <em>E. coli</em>)</li>
<li>DAEC (Diffusely Adhering <em>E. coli</em>)</li>
<li>EAEC (Entero-Aggresive <em>E. coli</em>)</li>
<li>EHEC (Entero-Haemorrhagic <em>E. coli</em>)</li>
<li>EIEC (Entero-Invasive <em>E. coli</em>)</li>
<li>EPEC (Entero-Pathogenic <em>E. coli</em>)</li>
<li>ETEC (Entero-Toxigenic <em>E. coli</em>)</li>
<li>NMEC (Neonatal Meningitiscausing <em>E. coli</em>)</li>
<li>STEC (Shiga-toxin producing <em>E. coli</em>)</li>
<li>UPEC (Uropathogenic <em>E. coli</em>)</li>
</ul>
<p>All these lead to the microbial ID of <em>E. coli</em>:</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb14"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb14-1"><a href="#cb14-1"></a><span class="kw"><a href="../reference/as.mo.html">as.mo</a></span>(<span class="st">"UPEC"</span>)</span>
<span id="cb14-2"><a href="#cb14-2"></a><span class="co"># B_ESCHR_COL</span></span>
<span id="cb14-3"><a href="#cb14-3"></a><span class="kw"><a href="../reference/mo_property.html">mo_name</a></span>(<span class="st">"UPEC"</span>)</span>
<span id="cb14-4"><a href="#cb14-4"></a><span class="co"># "Escherichia coli"</span></span>
<span id="cb14-5"><a href="#cb14-5"></a><span class="kw"><a href="../reference/mo_property.html">mo_gramstain</a></span>(<span class="st">"EHEC"</span>)</span>
<span id="cb14-6"><a href="#cb14-6"></a><span class="co"># "Gram-negative"</span></span></code></pre></div>
</li>
<li><p>Function <code><a href="../reference/mo_property.html">mo_info()</a></code> as an analogy to <code><a href="../reference/ab_property.html">ab_info()</a></code>. The <code><a href="../reference/mo_property.html">mo_info()</a></code> prints a list with the full taxonomy, authors, and the URL to the online database of a microorganism</p></li>
2019-09-23 13:53:50 +02:00
<li><p>Function <code><a href="../reference/mo_property.html">mo_synonyms()</a></code> to get all previously accepted taxonomic names of a microorganism</p></li>
</ul>
2019-06-03 20:52:24 +02:00
</div>
2019-06-27 11:57:45 +02:00
<div id="changed-1" class="section level4">
2019-06-03 20:52:24 +02:00
<h4 class="hasAnchor">
2019-06-27 11:57:45 +02:00
<a href="#changed-1" class="anchor"></a>Changed</h4>
<ul>
<li>Column names of output <code><a href="../reference/count.html">count_df()</a></code> and <code><a href="../reference/AMR-deprecated.html">portion_df()</a></code> are now lowercase</li>
<li>Fixed bug in translation of microorganism names</li>
<li>Fixed bug in determining taxonomic kingdoms</li>
2019-09-23 13:53:50 +02:00
<li>Algorithm improvements for <code><a href="../reference/as.ab.html">as.ab()</a></code> and <code><a href="../reference/as.mo.html">as.mo()</a></code> to understand even more severely misspelled input</li>
<li>Function <code><a href="../reference/as.ab.html">as.ab()</a></code> now allows spaces for coercing antibiotics names</li>
<li>Added <code>ggplot2</code> methods for automatically determining the scale type of classes <code>mo</code> and <code>ab</code>
</li>
<li>Added names of object in the header in frequency tables, even when using pipes</li>
2019-09-23 13:53:50 +02:00
<li>Prevented <code>"bacteria"</code> from getting coerced by <code><a href="../reference/as.ab.html">as.ab()</a></code> because Bacterial is a brand name of trimethoprim (TMP)</li>
<li>Fixed a bug where setting an antibiotic would not work for <code><a href="../reference/eucast_rules.html">eucast_rules()</a></code> and <code><a href="../reference/mdro.html">mdro()</a></code>
</li>
<li>Fixed a EUCAST rule for Staphylococci, where amikacin resistance would not be inferred from tobramycin</li>
2019-09-23 13:53:50 +02:00
<li>Removed <code>latest_annual_release</code> from the <code><a href="../reference/catalogue_of_life_version.html">catalogue_of_life_version()</a></code> function</li>
2019-06-11 14:18:25 +02:00
<li>Removed antibiotic code <code>PVM1</code> from the <code>antibiotics</code> data set as this was a duplicate of <code>PME</code>
</li>
2019-09-23 13:53:50 +02:00
<li>Fixed bug where not all old taxonomic names would be printed, when using a vector as input for <code><a href="../reference/as.mo.html">as.mo()</a></code>
2019-06-12 16:08:20 +02:00
</li>
2019-06-13 14:28:46 +02:00
<li>Manually added <em>Trichomonas vaginalis</em> from the kingdom of Protozoa, which is missing from the Catalogue of Life</li>
2019-09-25 15:43:22 +02:00
<li>Small improvements to <code><a href="https://rdrr.io/r/graphics/plot.html">plot()</a></code> and <code><a href="https://rdrr.io/r/graphics/barplot.html">barplot()</a></code> for MIC and RSI classes</li>
2019-09-23 13:53:50 +02:00
<li>Allow Catalogue of Life IDs to be coerced by <code><a href="../reference/as.mo.html">as.mo()</a></code>
2019-06-22 20:14:06 +02:00
</li>
</ul>
2019-06-03 20:52:24 +02:00
</div>
2019-12-22 11:43:38 +01:00
<div id="other-3" class="section level4">
2019-06-03 20:52:24 +02:00
<h4 class="hasAnchor">
2019-12-22 11:43:38 +01:00
<a href="#other-3" class="anchor"></a>Other</h4>
<ul>
<li>Fixed a note thrown by CRAN tests</li>
</ul>
2019-06-03 20:52:24 +02:00
</div>
</div>
2020-02-14 19:54:13 +01:00
<div id="amr-070" class="section level1">
2019-06-03 20:52:24 +02:00
<h1 class="page-header">
2020-02-14 19:54:13 +01:00
<a href="#amr-070" class="anchor"></a>AMR 0.7.0<small> 2019-06-03 </small>
2019-06-03 20:52:24 +02:00
</h1>
2020-01-26 20:20:00 +01:00
<div id="new-4" class="section level4">
2019-06-03 20:52:24 +02:00
<h4 class="hasAnchor">
2020-01-26 20:20:00 +01:00
<a href="#new-4" class="anchor"></a>New</h4>
2019-05-10 16:44:59 +02:00
<ul>
2019-09-23 13:53:50 +02:00
<li>Support for translation of disk diffusion and MIC values to RSI values (i.e. antimicrobial interpretations). Supported guidelines are EUCAST (2011 to 2019) and CLSI (2011 to 2019). Use <code><a href="../reference/as.rsi.html">as.rsi()</a></code> on an MIC value (created with <code><a href="../reference/as.mic.html">as.mic()</a></code>), a disk diffusion value (created with the new <code><a href="../reference/as.disk.html">as.disk()</a></code>) or on a complete date set containing columns with MIC or disk diffusion values.</li>
<li>Function <code><a href="../reference/mo_property.html">mo_name()</a></code> as alias of <code><a href="../reference/mo_property.html">mo_fullname()</a></code>
2019-05-13 12:21:57 +02:00
</li>
2019-09-23 13:53:50 +02:00
<li>Added guidelines of the WHO to determine multi-drug resistance (MDR) for TB (<code><a href="../reference/mdro.html">mdr_tb()</a></code>) and added a new vignette about MDR. Read this tutorial <a href="https://msberends.gitlab.io/AMR/articles/MDR.html">here on our website</a>.</li>
2019-05-10 16:44:59 +02:00
</ul>
</div>
2019-06-27 11:57:45 +02:00
<div id="changed-2" class="section level4">
2019-04-05 18:47:39 +02:00
<h4 class="hasAnchor">
2019-06-27 11:57:45 +02:00
<a href="#changed-2" class="anchor"></a>Changed</h4>
2019-04-05 18:47:39 +02:00
<ul>
2020-02-14 19:54:13 +01:00
<li><p>Fixed a critical bug in <code><a href="../reference/first_isolate.html">first_isolate()</a></code> where missing species would lead to incorrect FALSEs. This bug was not present in AMR v0.5.0, but was in v0.6.0 and v0.6.1.</p></li>
<li><p>Fixed a bug in <code><a href="../reference/eucast_rules.html">eucast_rules()</a></code> where antibiotics from WHONET software would not be recognised</p></li>
<li>
<p>Completely reworked the <code>antibiotics</code> data set:</p>
2019-05-10 16:44:59 +02:00
<ul>
2020-02-14 19:54:13 +01:00
<li>
<p>All entries now have 3 different identifiers:</p>
2019-05-13 10:10:16 +02:00
<ul>
<li>Column <code>ab</code> contains a human readable EARS-Net code, used by ECDC and WHO/WHONET - this is the primary identifier used in this package</li>
<li>Column <code>atc</code> contains the ATC code, used by WHO/WHOCC</li>
<li>Column <code>cid</code> contains the CID code (Compound ID), used by PubChem</li>
</ul>
</li>
2020-02-14 19:54:13 +01:00
<li><p>Based on the Compound ID, almost 5,000 official brand names have been added from many different countries</p></li>
<li><p>All references to antibiotics in our package now use EARS-Net codes, like <code>AMX</code> for amoxicillin</p></li>
<li><p>Functions <code>atc_certe</code>, <code>ab_umcg</code> and <code>atc_trivial_nl</code> have been removed</p></li>
<li><p>All <code>atc_*</code> functions are superceded by <code>ab_*</code> functions</p></li>
2019-06-01 21:28:18 +02:00
<li>
<p>All output will be translated by using an included translation file which <a href="https://gitlab.com/msberends/AMR/blob/master/data-raw/translations.tsv">can be viewed here</a>.</p>
2020-02-14 19:54:13 +01:00
<p>Please <a href="https://gitlab.com/msberends/AMR/issues/new?issue%5Btitle%5D=Translation%20suggestion">create an issue in one of our repositories</a> if you want additions in this file.</p>
</li>
2019-05-10 16:44:59 +02:00
</ul>
</li>
2020-02-14 19:54:13 +01:00
<li>
<p>Improvements to plotting AMR results with <code><a href="../reference/ggplot_rsi.html">ggplot_rsi()</a></code>:</p>
2019-05-31 20:25:57 +02:00
<ul>
<li>New parameter <code>colours</code> to set the bar colours</li>
<li>New parameters <code>title</code>, <code>subtitle</code>, <code>caption</code>, <code>x.title</code> and <code>y.title</code> to set titles and axis descriptions</li>
</ul>
</li>
2020-02-14 19:54:13 +01:00
<li><p>Improved intelligence of looking up antibiotic columns in a data set using <code><a href="../reference/guess_ab_col.html">guess_ab_col()</a></code></p></li>
<li><p>Added ~5,000 more old taxonomic names to the <code>microorganisms.old</code> data set, which leads to better results finding when using the <code><a href="../reference/as.mo.html">as.mo()</a></code> function</p></li>
<li><p>This package now honours the new EUCAST insight (2019) that S and I are but classified as susceptible, where I is defined as increased exposure and not intermediate anymore. For functions like <code><a href="../reference/AMR-deprecated.html">portion_df()</a></code> and <code><a href="../reference/count.html">count_df()</a></code> this means that their new parameter <code>combine_SI</code> is TRUE at default. Our plotting function <code><a href="../reference/ggplot_rsi.html">ggplot_rsi()</a></code> also reflects this change since it uses <code><a href="../reference/count.html">count_df()</a></code> internally.</p></li>
<li><p>The <code><a href="../reference/age.html">age()</a></code> function gained a new parameter <code>exact</code> to determine ages with decimals</p></li>
<li><p>Removed deprecated functions <code>guess_mo()</code>, <code>guess_atc()</code>, <code>EUCAST_rules()</code>, <code>interpretive_reading()</code>, <code><a href="../reference/as.rsi.html">rsi()</a></code></p></li>
<li>
<p>Frequency tables (<code><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq()</a></code>):</p>
2019-05-23 16:58:59 +02:00
<ul>
2020-02-14 19:54:13 +01:00
<li><p>speed improvement for microbial IDs</p></li>
<li><p>fixed factor level names for R Markdown</p></li>
<li><p>when all values are unique it now shows a message instead of a warning</p></li>
2019-05-29 19:56:17 +02:00
<li>
<p>support for boxplots:</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb15"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb15-1"><a href="#cb15-1"></a>septic_patients <span class="op">%&gt;%</span><span class="st"> </span></span>
<span id="cb15-2"><a href="#cb15-2"></a><span class="st"> </span><span class="kw"><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq</a></span>(age) <span class="op">%&gt;%</span><span class="st"> </span></span>
<span id="cb15-3"><a href="#cb15-3"></a><span class="st"> </span><span class="kw"><a href="https://rdrr.io/r/graphics/boxplot.html">boxplot</a></span>()</span>
<span id="cb15-4"><a href="#cb15-4"></a><span class="co"># grouped boxplots:</span></span>
<span id="cb15-5"><a href="#cb15-5"></a>septic_patients <span class="op">%&gt;%</span><span class="st"> </span></span>
<span id="cb15-6"><a href="#cb15-6"></a><span class="st"> </span><span class="kw"><a href="https://dplyr.tidyverse.org/reference/group_by.html">group_by</a></span>(hospital_id) <span class="op">%&gt;%</span><span class="st"> </span></span>
<span id="cb15-7"><a href="#cb15-7"></a><span class="st"> </span><span class="kw"><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq</a></span>(age) <span class="op">%&gt;%</span></span>
<span id="cb15-8"><a href="#cb15-8"></a><span class="st"> </span><span class="kw"><a href="https://rdrr.io/r/graphics/boxplot.html">boxplot</a></span>()</span></code></pre></div>
2019-05-29 19:56:17 +02:00
</li>
2019-05-23 16:58:59 +02:00
</ul>
</li>
2019-06-01 21:28:18 +02:00
<li>
<p>Removed all hardcoded EUCAST rules and replaced them with a new reference file which <a href="https://gitlab.com/msberends/AMR/blob/master/data-raw/eucast_rules.tsv">can be viewed here</a>.</p>
2020-02-14 19:54:13 +01:00
<p>Please <a href="https://gitlab.com/msberends/AMR/issues/new?issue%5Btitle%5D=EUCAST%20edit">create an issue in one of our repositories</a> if you want changes in this file.</p>
</li>
<li><p>Added ceftazidim intrinsic resistance to <em>Streptococci</em></p></li>
<li><p>Changed default settings for <code><a href="../reference/age_groups.html">age_groups()</a></code>, to let groups of fives and tens end with 100+ instead of 120+</p></li>
<li><p>Fix for <code><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq()</a></code> for when all values are <code>NA</code></p></li>
<li><p>Fix for <code><a href="../reference/first_isolate.html">first_isolate()</a></code> for when dates are missing</p></li>
<li><p>Improved speed of <code><a href="../reference/guess_ab_col.html">guess_ab_col()</a></code></p></li>
<li><p>Function <code><a href="../reference/as.mo.html">as.mo()</a></code> now gently interprets any number of whitespace characters (like tabs) as one space</p></li>
<li><p>Function <code><a href="../reference/as.mo.html">as.mo()</a></code> now returns <code>UNKNOWN</code> for <code>"con"</code> (WHONET ID of contamination) and returns <code>NA</code> for <code>"xxx"</code>(WHONET ID of no growth)</p></li>
<li><p>Small algorithm fix for <code><a href="../reference/as.mo.html">as.mo()</a></code></p></li>
<li><p>Removed viruses from data set <code>microorganisms.codes</code> and cleaned it up</p></li>
2019-09-23 13:53:50 +02:00
<li><p>Fix for <code><a href="../reference/mo_property.html">mo_shortname()</a></code> where species would not be determined correctly</p></li>
2019-04-09 10:34:40 +02:00
</ul>
</div>
2019-12-22 11:43:38 +01:00
<div id="other-4" class="section level4">
2019-04-09 10:34:40 +02:00
<h4 class="hasAnchor">
2019-12-22 11:43:38 +01:00
<a href="#other-4" class="anchor"></a>Other</h4>
2019-04-09 10:34:40 +02:00
<ul>
2019-06-01 20:40:49 +02:00
<li>Support for R 3.6.0 and later by providing support for <a href="https://developer.r-project.org/Blog/public/2019/02/14/staged-install/index.html">staged install</a>
</li>
2019-04-05 18:47:39 +02:00
</ul>
</div>
</div>
2020-02-14 19:54:13 +01:00
<div id="amr-061" class="section level1">
2019-04-05 18:47:39 +02:00
<h1 class="page-header">
2020-02-14 19:54:13 +01:00
<a href="#amr-061" class="anchor"></a>AMR 0.6.1<small> 2019-03-29 </small>
2019-04-05 18:47:39 +02:00
</h1>
2019-06-27 11:57:45 +02:00
<div id="changed-3" class="section level4">
2019-04-05 18:47:39 +02:00
<h4 class="hasAnchor">
2019-06-27 11:57:45 +02:00
<a href="#changed-3" class="anchor"></a>Changed</h4>
2019-04-05 18:47:39 +02:00
<ul>
2019-09-23 13:53:50 +02:00
<li>Fixed a critical bug when using <code><a href="../reference/eucast_rules.html">eucast_rules()</a></code> with <code>verbose = TRUE</code>
2019-04-05 18:47:39 +02:00
</li>
<li>Coercion of microbial IDs are now written to the package namespace instead of the users home folder, to comply with the CRAN policy</li>
</ul>
</div>
</div>
2020-02-14 19:54:13 +01:00
<div id="amr-060" class="section level1">
2018-12-29 22:24:19 +01:00
<h1 class="page-header">
2020-02-14 19:54:13 +01:00
<a href="#amr-060" class="anchor"></a>AMR 0.6.0<small> 2019-03-27 </small>
2018-12-29 22:24:19 +01:00
</h1>
2019-02-18 02:33:37 +01:00
<p><strong>New website!</strong></p>
<p>Weve got a new website: <a href="https://msberends.gitlab.io/AMR/">https://msberends.gitlab.io/AMR</a> (built with the great <a href="https://pkgdown.r-lib.org/"><code>pkgdown</code></a>)</p>
<ul>
<li>Contains the complete manual of this package and all of its functions with an explanation of their parameters</li>
<li>Contains a comprehensive tutorial about how to conduct antimicrobial resistance analysis, import data from WHONET or SPSS and many more.</li>
</ul>
2020-01-26 20:20:00 +01:00
<div id="new-5" class="section level4">
2018-12-29 22:24:19 +01:00
<h4 class="hasAnchor">
2020-01-26 20:20:00 +01:00
<a href="#new-5" class="anchor"></a>New</h4>
2018-12-29 22:24:19 +01:00
<ul>
2020-02-14 19:54:13 +01:00
<li><p><strong>BREAKING</strong>: removed deprecated functions, parameters and references to bactid. Use <code><a href="../reference/as.mo.html">as.mo()</a></code> to identify an MO code.</p></li>
2018-12-29 22:24:19 +01:00
<li>
2020-02-14 19:54:13 +01:00
<p>Catalogue of Life as a new taxonomic source for data about microorganisms, which also contains all ITIS data we used previously. The <code>microorganisms</code> data set now contains:</p>
2019-02-18 02:33:37 +01:00
<ul>
2020-02-14 19:54:13 +01:00
<li><p>All ~55,000 (sub)species from the kingdoms of Archaea, Bacteria and Protozoa</p></li>
<li><p>All ~3,000 (sub)species from these orders of the kingdom of Fungi: Eurotiales, Onygenales, Pneumocystales, Saccharomycetales and Schizosaccharomycetales (covering at least like all species of <em>Aspergillus</em>, <em>Candida</em>, <em>Pneumocystis</em>, <em>Saccharomyces</em> and <em>Trichophyton</em>)</p></li>
<li><p>All ~2,000 (sub)species from ~100 other relevant genera, from the kingdoms of Animalia and Plantae (like <em>Strongyloides</em> and <em>Taenia</em>)</p></li>
<li><p>All ~15,000 previously accepted names of included (sub)species that have been taxonomically renamed</p></li>
2019-02-22 22:12:10 +01:00
<li>
<p>The responsible author(s) and year of scientific publication</p>
2020-02-14 19:54:13 +01:00
<p>This data is updated annually - check the included version with the new function <code><a href="../reference/catalogue_of_life_version.html">catalogue_of_life_version()</a></code>.</p>
</li>
<li><p>Due to this change, some <code>mo</code> codes changed (e.g. <em>Streptococcus</em> changed from <code>B_STRPTC</code> to <code>B_STRPT</code>). A translation table is used internally to support older microorganism IDs, so users will not notice this difference.</p></li>
<li><p>New function <code><a href="../reference/mo_property.html">mo_rank()</a></code> for the taxonomic rank (genus, species, infraspecies, etc.)</p></li>
<li><p>New function <code><a href="../reference/mo_property.html">mo_url()</a></code> to get the direct URL of a species from the Catalogue of Life</p></li>
2019-02-18 02:33:37 +01:00
</ul>
</li>
2020-02-14 19:54:13 +01:00
<li>
<p>Support for data from <a href="https://whonet.org/">WHONET</a> and <a href="https://ecdc.europa.eu/en/about-us/partnerships-and-networks/disease-and-laboratory-networks/ears-net">EARS-Net</a> (European Antimicrobial Resistance Surveillance Network):</p>
2019-02-08 16:06:54 +01:00
<ul>
2019-09-23 13:53:50 +02:00
<li>Exported files from WHONET can be read and used in this package. For functions like <code><a href="../reference/first_isolate.html">first_isolate()</a></code> and <code><a href="../reference/eucast_rules.html">eucast_rules()</a></code>, all parameters will be filled in automatically.</li>
2019-01-29 00:06:50 +01:00
<li>This package now knows all antibiotic abbrevations by EARS-Net (which are also being used by WHONET) - the <code>antibiotics</code> data set now contains a column <code>ears_net</code>.</li>
2019-09-23 13:53:50 +02:00
<li>The function <code><a href="../reference/as.mo.html">as.mo()</a></code> now knows all WHONET species abbreviations too, because almost 2,000 microbial abbreviations were added to the <code>microorganisms.codes</code> data set.</li>
2019-02-08 16:06:54 +01:00
</ul>
</li>
<li>
2019-03-06 09:32:48 +01:00
<p>New filters for antimicrobial classes. Use these functions to filter isolates on results in one of more antibiotics from a specific class:</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb16"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb16-1"><a href="#cb16-1"></a><span class="kw"><a href="../reference/filter_ab_class.html">filter_aminoglycosides</a></span>()</span>
<span id="cb16-2"><a href="#cb16-2"></a><span class="kw"><a href="../reference/filter_ab_class.html">filter_carbapenems</a></span>()</span>
<span id="cb16-3"><a href="#cb16-3"></a><span class="kw"><a href="../reference/filter_ab_class.html">filter_cephalosporins</a></span>()</span>
<span id="cb16-4"><a href="#cb16-4"></a><span class="kw"><a href="../reference/filter_ab_class.html">filter_1st_cephalosporins</a></span>()</span>
<span id="cb16-5"><a href="#cb16-5"></a><span class="kw"><a href="../reference/filter_ab_class.html">filter_2nd_cephalosporins</a></span>()</span>
<span id="cb16-6"><a href="#cb16-6"></a><span class="kw"><a href="../reference/filter_ab_class.html">filter_3rd_cephalosporins</a></span>()</span>
<span id="cb16-7"><a href="#cb16-7"></a><span class="kw"><a href="../reference/filter_ab_class.html">filter_4th_cephalosporins</a></span>()</span>
<span id="cb16-8"><a href="#cb16-8"></a><span class="kw"><a href="../reference/filter_ab_class.html">filter_fluoroquinolones</a></span>()</span>
<span id="cb16-9"><a href="#cb16-9"></a><span class="kw"><a href="../reference/filter_ab_class.html">filter_glycopeptides</a></span>()</span>
<span id="cb16-10"><a href="#cb16-10"></a><span class="kw"><a href="../reference/filter_ab_class.html">filter_macrolides</a></span>()</span>
<span id="cb16-11"><a href="#cb16-11"></a><span class="kw"><a href="../reference/filter_ab_class.html">filter_tetracyclines</a></span>()</span></code></pre></div>
2019-03-06 09:32:48 +01:00
<p>The <code>antibiotics</code> data set will be searched, after which the input data will be checked for column names with a value in any abbreviations, codes or official names found in the <code>antibiotics</code> data set. For example:</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb17"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb17-1"><a href="#cb17-1"></a>septic_patients <span class="op">%&gt;%</span><span class="st"> </span><span class="kw"><a href="../reference/filter_ab_class.html">filter_glycopeptides</a></span>(<span class="dt">result =</span> <span class="st">"R"</span>)</span>
<span id="cb17-2"><a href="#cb17-2"></a><span class="co"># Filtering on glycopeptide antibacterials: any of `vanc` or `teic` is R</span></span>
<span id="cb17-3"><a href="#cb17-3"></a>septic_patients <span class="op">%&gt;%</span><span class="st"> </span><span class="kw"><a href="../reference/filter_ab_class.html">filter_glycopeptides</a></span>(<span class="dt">result =</span> <span class="st">"R"</span>, <span class="dt">scope =</span> <span class="st">"all"</span>)</span>
<span id="cb17-4"><a href="#cb17-4"></a><span class="co"># Filtering on glycopeptide antibacterials: all of `vanc` and `teic` is R</span></span></code></pre></div>
2019-03-06 09:32:48 +01:00
</li>
<li>
2019-02-08 16:06:54 +01:00
<p>All <code>ab_*</code> functions are deprecated and replaced by <code>atc_*</code> functions:</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb18"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb18-1"><a href="#cb18-1"></a>ab_property -&gt;<span class="st"> </span><span class="kw">atc_property</span>()</span>
<span id="cb18-2"><a href="#cb18-2"></a>ab_name -&gt;<span class="st"> </span><span class="kw">atc_name</span>()</span>
<span id="cb18-3"><a href="#cb18-3"></a>ab_official -&gt;<span class="st"> </span><span class="kw">atc_official</span>()</span>
<span id="cb18-4"><a href="#cb18-4"></a>ab_trivial_nl -&gt;<span class="st"> </span><span class="kw">atc_trivial_nl</span>()</span>
<span id="cb18-5"><a href="#cb18-5"></a>ab_certe -&gt;<span class="st"> </span><span class="kw">atc_certe</span>()</span>
<span id="cb18-6"><a href="#cb18-6"></a>ab_umcg -&gt;<span class="st"> </span><span class="kw">atc_umcg</span>()</span>
<span id="cb18-7"><a href="#cb18-7"></a>ab_tradenames -&gt;<span class="st"> </span><span class="kw">atc_tradenames</span>()</span></code></pre></div>
<p>These functions use <code>as.atc()</code> internally. The old <code>atc_property</code> has been renamed <code><a href="../reference/atc_online.html">atc_online_property()</a></code>. This is done for two reasons: firstly, not all ATC codes are of antibiotics (ab) but can also be of antivirals or antifungals. Secondly, the input must have class <code>atc</code> or must be coerable to this class. Properties of these classes should start with the same class name, analogous to <code><a href="../reference/as.mo.html">as.mo()</a></code> and e.g. <code>mo_genus</code>.</p>
</li>
<li><p>New functions <code><a href="../reference/mo_source.html">set_mo_source()</a></code> and <code><a href="../reference/mo_source.html">get_mo_source()</a></code> to use your own predefined MO codes as input for <code><a href="../reference/as.mo.html">as.mo()</a></code> and consequently all <code>mo_*</code> functions</p></li>
<li><p>Support for the upcoming <a href="https://dplyr.tidyverse.org"><code>dplyr</code></a> version 0.8.0</p></li>
<li><p>New function <code><a href="../reference/guess_ab_col.html">guess_ab_col()</a></code> to find an antibiotic column in a table</p></li>
<li><p>New function <code><a href="../reference/as.mo.html">mo_failures()</a></code> to review values that could not be coerced to a valid MO code, using <code><a href="../reference/as.mo.html">as.mo()</a></code>. This latter function will now only show a maximum of 10 uncoerced values and will refer to <code><a href="../reference/as.mo.html">mo_failures()</a></code>.</p></li>
<li><p>New function <code><a href="../reference/as.mo.html">mo_uncertainties()</a></code> to review values that could be coerced to a valid MO code using <code><a href="../reference/as.mo.html">as.mo()</a></code>, but with uncertainty.</p></li>
<li><p>New function <code><a href="../reference/as.mo.html">mo_renamed()</a></code> to get a list of all returned values from <code><a href="../reference/as.mo.html">as.mo()</a></code> that have had taxonomic renaming</p></li>
<li><p>New function <code><a href="../reference/age.html">age()</a></code> to calculate the (patients) age in years</p></li>
<li><p>New function <code><a href="../reference/age_groups.html">age_groups()</a></code> to split ages into custom or predefined groups (like children or elderly). This allows for easier demographic antimicrobial resistance analysis per age group.</p></li>
2019-02-08 16:06:54 +01:00
<li>
2019-09-25 15:43:22 +02:00
<p>New function <code><a href="../reference/resistance_predict.html">ggplot_rsi_predict()</a></code> as well as the base R <code><a href="https://rdrr.io/r/graphics/plot.html">plot()</a></code> function can now be used for resistance prediction calculated with <code><a href="../reference/resistance_predict.html">resistance_predict()</a></code>:</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb19"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb19-1"><a href="#cb19-1"></a>x &lt;-<span class="st"> </span><span class="kw"><a href="../reference/resistance_predict.html">resistance_predict</a></span>(septic_patients, <span class="dt">col_ab =</span> <span class="st">"amox"</span>)</span>
<span id="cb19-2"><a href="#cb19-2"></a><span class="kw"><a href="https://rdrr.io/r/graphics/plot.html">plot</a></span>(x)</span>
<span id="cb19-3"><a href="#cb19-3"></a><span class="kw"><a href="../reference/resistance_predict.html">ggplot_rsi_predict</a></span>(x)</span></code></pre></div>
2019-02-04 18:04:29 +01:00
</li>
2019-02-08 16:06:54 +01:00
<li>
2019-09-23 13:53:50 +02:00
<p>Functions <code><a href="../reference/first_isolate.html">filter_first_isolate()</a></code> and <code><a href="../reference/first_isolate.html">filter_first_weighted_isolate()</a></code> to shorten and fasten filtering on data sets with antimicrobial results, e.g.:</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb20"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb20-1"><a href="#cb20-1"></a>septic_patients <span class="op">%&gt;%</span><span class="st"> </span><span class="kw"><a href="../reference/first_isolate.html">filter_first_isolate</a></span>(...)</span>
<span id="cb20-2"><a href="#cb20-2"></a><span class="co"># or</span></span>
<span id="cb20-3"><a href="#cb20-3"></a><span class="kw"><a href="../reference/first_isolate.html">filter_first_isolate</a></span>(septic_patients, ...)</span></code></pre></div>
2019-02-08 16:06:54 +01:00
<p>is equal to:</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb21"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb21-1"><a href="#cb21-1"></a>septic_patients <span class="op">%&gt;%</span></span>
<span id="cb21-2"><a href="#cb21-2"></a><span class="st"> </span><span class="kw"><a href="https://dplyr.tidyverse.org/reference/mutate.html">mutate</a></span>(<span class="dt">only_firsts =</span> <span class="kw"><a href="../reference/first_isolate.html">first_isolate</a></span>(septic_patients, ...)) <span class="op">%&gt;%</span></span>
<span id="cb21-3"><a href="#cb21-3"></a><span class="st"> </span><span class="kw"><a href="https://dplyr.tidyverse.org/reference/filter.html">filter</a></span>(only_firsts <span class="op">==</span><span class="st"> </span><span class="ot">TRUE</span>) <span class="op">%&gt;%</span></span>
<span id="cb21-4"><a href="#cb21-4"></a><span class="st"> </span><span class="kw"><a href="https://dplyr.tidyverse.org/reference/select.html">select</a></span>(<span class="op">-</span>only_firsts)</span></code></pre></div>
2019-02-08 16:06:54 +01:00
</li>
2020-02-14 19:54:13 +01:00
<li><p>New function <code><a href="../reference/availability.html">availability()</a></code> to check the number of available (non-empty) results in a <code>data.frame</code></p></li>
2019-02-08 16:06:54 +01:00
<li><p>New vignettes about how to conduct AMR analysis, predict antimicrobial resistance, use the <em>G</em>-test and more. These are also available (and even easier readable) on our website: <a href="https://msberends.gitlab.io/AMR" class="uri">https://msberends.gitlab.io/AMR</a>.</p></li>
2018-12-29 22:24:19 +01:00
</ul>
</div>
2019-06-27 11:57:45 +02:00
<div id="changed-4" class="section level4">
2018-12-29 22:24:19 +01:00
<h4 class="hasAnchor">
2019-06-27 11:57:45 +02:00
<a href="#changed-4" class="anchor"></a>Changed</h4>
2018-12-29 22:24:19 +01:00
<ul>
2019-09-23 13:53:50 +02:00
<li>Function <code><a href="../reference/eucast_rules.html">eucast_rules()</a></code>:
2019-02-08 16:06:54 +01:00
<ul>
<li>Updated EUCAST Clinical breakpoints to <a href="http://www.eucast.org/clinical_breakpoints/">version 9.0 of 1 January 2019</a>, the data set <code>septic_patients</code> now reflects these changes</li>
<li>Fixed a critical bug where some rules that depend on previous applied rules would not be applied adequately</li>
<li>Emphasised in manual that penicillin is meant as benzylpenicillin (ATC <a href="https://www.whocc.no/atc_ddd_index/?code=J01CE01">J01CE01</a>)</li>
2019-09-23 13:53:50 +02:00
<li>New info is returned when running this function, stating exactly what has been changed or added. Use <code><a href="../reference/eucast_rules.html">eucast_rules(..., verbose = TRUE)</a></code> to get a data set with all changed per bug and drug combination.</li>
2019-02-08 16:06:54 +01:00
</ul>
</li>
2019-02-18 02:33:37 +01:00
<li>Removed data sets <code>microorganisms.oldDT</code>, <code>microorganisms.prevDT</code>, <code>microorganisms.unprevDT</code> and <code>microorganismsDT</code> since they were no longer needed and only contained info already available in the <code>microorganisms</code> data set</li>
2019-01-25 13:18:41 +01:00
<li>Added 65 antibiotics to the <code>antibiotics</code> data set, from the <a href="http://ec.europa.eu/health/documents/community-register/html/atc.htm">Pharmaceuticals Community Register</a> of the European Commission</li>
<li>Removed columns <code>atc_group1_nl</code> and <code>atc_group2_nl</code> from the <code>antibiotics</code> data set</li>
2019-09-23 13:53:50 +02:00
<li>Functions <code>atc_ddd()</code> and <code>atc_groups()</code> have been renamed <code><a href="../reference/atc_online.html">atc_online_ddd()</a></code> and <code><a href="../reference/atc_online.html">atc_online_groups()</a></code>. The old functions are deprecated and will be removed in a future version.</li>
<li>Function <code>guess_mo()</code> is now deprecated in favour of <code><a href="../reference/as.mo.html">as.mo()</a></code> and will be removed in future versions</li>
<li>Function <code>guess_atc()</code> is now deprecated in favour of <code>as.atc()</code> and will be removed in future versions</li>
2019-09-23 13:53:50 +02:00
<li>Improvements for <code><a href="../reference/as.mo.html">as.mo()</a></code>:
2019-03-02 22:47:04 +01:00
<ul>
2019-03-15 13:57:25 +01:00
<li>
<p>Now handles incorrect spelling, like <code>i</code> instead of <code>y</code> and <code>f</code> instead of <code>ph</code>:</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb22"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb22-1"><a href="#cb22-1"></a><span class="co"># mo_fullname() uses as.mo() internally</span></span>
<span id="cb22-2"><a href="#cb22-2"></a></span>
<span id="cb22-3"><a href="#cb22-3"></a><span class="kw"><a href="../reference/mo_property.html">mo_fullname</a></span>(<span class="st">"Sthafilokockus aaureuz"</span>)</span>
<span id="cb22-4"><a href="#cb22-4"></a><span class="co">#&gt; [1] "Staphylococcus aureus"</span></span>
<span id="cb22-5"><a href="#cb22-5"></a></span>
<span id="cb22-6"><a href="#cb22-6"></a><span class="kw"><a href="../reference/mo_property.html">mo_fullname</a></span>(<span class="st">"S. klossi"</span>)</span>
<span id="cb22-7"><a href="#cb22-7"></a><span class="co">#&gt; [1] "Staphylococcus kloosii"</span></span></code></pre></div>
2019-03-15 13:57:25 +01:00
</li>
<li>
2019-09-23 13:53:50 +02:00
<p>Uncertainty of the algorithm is now divided into four levels, 0 to 3, where the default <code>allow_uncertain = TRUE</code> is equal to uncertainty level 2. Run <code><a href="../reference/as.mo.html">?as.mo</a></code> for more info about these levels.</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb23"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb23-1"><a href="#cb23-1"></a><span class="co"># equal:</span></span>
<span id="cb23-2"><a href="#cb23-2"></a><span class="kw"><a href="../reference/as.mo.html">as.mo</a></span>(..., <span class="dt">allow_uncertain =</span> <span class="ot">TRUE</span>)</span>
<span id="cb23-3"><a href="#cb23-3"></a><span class="kw"><a href="../reference/as.mo.html">as.mo</a></span>(..., <span class="dt">allow_uncertain =</span> <span class="dv">2</span>)</span>
<span id="cb23-4"><a href="#cb23-4"></a></span>
<span id="cb23-5"><a href="#cb23-5"></a><span class="co"># also equal:</span></span>
<span id="cb23-6"><a href="#cb23-6"></a><span class="kw"><a href="../reference/as.mo.html">as.mo</a></span>(..., <span class="dt">allow_uncertain =</span> <span class="ot">FALSE</span>)</span>
<span id="cb23-7"><a href="#cb23-7"></a><span class="kw"><a href="../reference/as.mo.html">as.mo</a></span>(..., <span class="dt">allow_uncertain =</span> <span class="dv">0</span>)</span></code></pre></div>
<p>Using <code><a href="../reference/as.mo.html">as.mo(..., allow_uncertain = 3)</a></code> could lead to very unreliable results.</p>
</li>
<li><p>Implemented the latest publication of Becker <em>et al.</em> (2019), for categorising coagulase-negative <em>Staphylococci</em></p></li>
<li><p>All microbial IDs that found are now saved to a local file <code>~/.Rhistory_mo</code>. Use the new function <code>clean_mo_history()</code> to delete this file, which resets the algorithms.</p></li>
2019-03-15 13:57:25 +01:00
<li>
<p>Incoercible results will now be considered unknown, MO code <code>UNKNOWN</code>. On foreign systems, properties of these will be translated to all languages already previously supported: German, Dutch, French, Italian, Spanish and Portuguese:</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb24"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb24-1"><a href="#cb24-1"></a><span class="kw"><a href="../reference/mo_property.html">mo_genus</a></span>(<span class="st">"qwerty"</span>, <span class="dt">language =</span> <span class="st">"es"</span>)</span>
<span id="cb24-2"><a href="#cb24-2"></a><span class="co"># Warning: </span></span>
<span id="cb24-3"><a href="#cb24-3"></a><span class="co"># one unique value (^= 100.0%) could not be coerced and is considered 'unknown': "qwerty". Use mo_failures() to review it.</span></span>
<span id="cb24-4"><a href="#cb24-4"></a><span class="co">#&gt; [1] "(género desconocido)"</span></span></code></pre></div>
</li>
<li><p>Fix for vector containing only empty values</p></li>
<li><p>Finds better results when input is in other languages</p></li>
<li><p>Better handling for subspecies</p></li>
<li><p>Better handling for <em>Salmonellae</em>, especially the city like serovars like <em>Salmonella London</em></p></li>
<li><p>Understanding of highly virulent <em>E. coli</em> strains like EIEC, EPEC and STEC</p></li>
<li><p>There will be looked for uncertain results at default - these results will be returned with an informative warning</p></li>
<li><p>Manual (help page) now contains more info about the algorithms</p></li>
<li><p>Progress bar will be shown when it takes more than 3 seconds to get results</p></li>
<li><p>Support for formatted console text</p></li>
<li><p>Console will return the percentage of uncoercable input</p></li>
2019-02-08 16:06:54 +01:00
</ul>
</li>
2019-09-23 13:53:50 +02:00
<li>Function <code><a href="../reference/first_isolate.html">first_isolate()</a></code>:
2019-02-08 16:06:54 +01:00
<ul>
2018-12-31 12:03:35 +01:00
<li>Fixed a bug where distances between dates would not be calculated right - in the <code>septic_patients</code> data set this yielded a difference of 0.15% more isolates</li>
2018-12-29 22:24:19 +01:00
<li>Will now use a column named like “patid” for the patient ID (parameter <code>col_patientid</code>), when this parameter was left blank</li>
<li>Will now use a column named like “key(…)ab” or “key(…)antibiotics” for the key antibiotics (parameter <code>col_keyantibiotics()</code>), when this parameter was left blank</li>
2018-12-29 22:24:19 +01:00
<li>Removed parameter <code>output_logical</code>, the function will now always return a logical value</li>
<li>Renamed parameter <code>filter_specimen</code> to <code>specimen_group</code>, although using <code>filter_specimen</code> will still work</li>
2019-02-08 16:06:54 +01:00
</ul>
</li>
2018-12-29 22:24:19 +01:00
<li>A note to the manual pages of the <code>portion</code> functions, that low counts can influence the outcome and that the <code>portion</code> functions may camouflage this, since they only return the portion (albeit being dependent on the <code>minimum</code> parameter)</li>
2019-01-21 15:53:01 +01:00
<li>Merged data sets <code>microorganisms.certe</code> and <code>microorganisms.umcg</code> into <code>microorganisms.codes</code>
</li>
2019-09-23 13:53:50 +02:00
<li>Function <code><a href="../reference/mo_property.html">mo_taxonomy()</a></code> now contains the kingdom too</li>
<li>Reduce false positives for <code><a href="../reference/as.rsi.html">is.rsi.eligible()</a></code> using the new <code>threshold</code> parameter</li>
<li>New colours for <code><a href="../reference/ggplot_rsi.html">scale_rsi_colours()</a></code>
2019-01-29 00:06:50 +01:00
</li>
2019-09-25 15:43:22 +02:00
<li>Summaries of class <code>mo</code> will now return the top 3 and the unique count, e.g. using <code><a href="https://rdrr.io/r/base/summary.html">summary(mo)</a></code>
2018-12-29 22:24:19 +01:00
</li>
<li>Small text updates to summaries of class <code>rsi</code> and <code>mic</code>
</li>
2019-09-23 13:53:50 +02:00
<li>Function <code><a href="../reference/as.rsi.html">as.rsi()</a></code>:
2019-03-02 22:47:04 +01:00
<ul>
<li>Now gives a warning when inputting MIC values</li>
<li>Now accepts high and low resistance: <code>"HIGH S"</code> will return <code>S</code>
</li>
</ul>
</li>
<li>Frequency tables (<code><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq()</a></code> function):
2019-02-08 16:06:54 +01:00
<ul>
2019-01-28 11:20:32 +01:00
<li>
2019-01-29 00:06:50 +01:00
<p>Support for tidyverse quasiquotation! Now you can create frequency tables of function outcomes:</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb25"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb25-1"><a href="#cb25-1"></a><span class="co"># Determine genus of microorganisms (mo) in `septic_patients` data set:</span></span>
<span id="cb25-2"><a href="#cb25-2"></a><span class="co"># OLD WAY</span></span>
<span id="cb25-3"><a href="#cb25-3"></a>septic_patients <span class="op">%&gt;%</span></span>
<span id="cb25-4"><a href="#cb25-4"></a><span class="st"> </span><span class="kw"><a href="https://dplyr.tidyverse.org/reference/mutate.html">mutate</a></span>(<span class="dt">genus =</span> <span class="kw"><a href="../reference/mo_property.html">mo_genus</a></span>(mo)) <span class="op">%&gt;%</span></span>
<span id="cb25-5"><a href="#cb25-5"></a><span class="st"> </span><span class="kw"><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq</a></span>(genus)</span>
<span id="cb25-6"><a href="#cb25-6"></a><span class="co"># NEW WAY</span></span>
<span id="cb25-7"><a href="#cb25-7"></a>septic_patients <span class="op">%&gt;%</span><span class="st"> </span></span>
<span id="cb25-8"><a href="#cb25-8"></a><span class="st"> </span><span class="kw"><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq</a></span>(<span class="kw"><a href="../reference/mo_property.html">mo_genus</a></span>(mo))</span>
<span id="cb25-9"><a href="#cb25-9"></a></span>
<span id="cb25-10"><a href="#cb25-10"></a><span class="co"># Even supports grouping variables:</span></span>
<span id="cb25-11"><a href="#cb25-11"></a>septic_patients <span class="op">%&gt;%</span></span>
<span id="cb25-12"><a href="#cb25-12"></a><span class="st"> </span><span class="kw"><a href="https://dplyr.tidyverse.org/reference/group_by.html">group_by</a></span>(gender) <span class="op">%&gt;%</span><span class="st"> </span></span>
<span id="cb25-13"><a href="#cb25-13"></a><span class="st"> </span><span class="kw"><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq</a></span>(<span class="kw"><a href="../reference/mo_property.html">mo_genus</a></span>(mo))</span></code></pre></div>
</li>
<li><p>Header info is now available as a list, with the <code>header</code> function</p></li>
<li><p>The parameter <code>header</code> is now set to <code>TRUE</code> at default, even for markdown</p></li>
<li><p>Added header info for class <code>mo</code> to show unique count of families, genera and species</p></li>
<li><p>Now honours the <code>decimal.mark</code> setting, which just like <code>format</code> defaults to <code><a href="https://rdrr.io/r/base/options.html">getOption("OutDec")</a></code></p></li>
<li><p>The new <code>big.mark</code> parameter will at default be <code>","</code> when <code>decimal.mark = "."</code> and <code>"."</code> otherwise</p></li>
<li><p>Fix for header text where all observations are <code>NA</code></p></li>
<li><p>New parameter <code>droplevels</code> to exclude empty factor levels when input is a factor</p></li>
<li><p>Factor levels will be in header when present in input data (maximum of 5)</p></li>
<li><p>Fix for using <code><a href="https://dplyr.tidyverse.org/reference/select.html">select()</a></code> on frequency tables</p></li>
2019-02-08 16:06:54 +01:00
</ul>
</li>
2019-09-23 13:53:50 +02:00
<li>Function <code><a href="../reference/ggplot_rsi.html">scale_y_percent()</a></code> now contains the <code>limits</code> parameter</li>
<li>Automatic parameter filling for <code><a href="../reference/mdro.html">mdro()</a></code>, <code><a href="../reference/key_antibiotics.html">key_antibiotics()</a></code> and <code><a href="../reference/eucast_rules.html">eucast_rules()</a></code>
2018-12-29 22:24:19 +01:00
</li>
2019-09-23 13:53:50 +02:00
<li>Updated examples for resistance prediction (<code><a href="../reference/resistance_predict.html">resistance_predict()</a></code> function)</li>
<li>Fix for <code><a href="../reference/as.mic.html">as.mic()</a></code> to support more values ending in (several) zeroes</li>
2019-09-25 15:43:22 +02:00
<li>if using different lengths of pattern and x in <code><a href="../reference/like.html">%like%</a></code>, it will now return the call</li>
2018-12-29 22:24:19 +01:00
</ul>
</div>
2019-12-22 11:43:38 +01:00
<div id="other-5" class="section level4">
2018-12-29 22:24:19 +01:00
<h4 class="hasAnchor">
2019-12-22 11:43:38 +01:00
<a href="#other-5" class="anchor"></a>Other</h4>
2018-12-29 22:24:19 +01:00
<ul>
<li>Updated licence text to emphasise GPL 2.0 and that this is an R package.</li>
</ul>
</div>
</div>
2020-02-14 19:54:13 +01:00
<div id="amr-050" class="section level1">
2018-12-29 22:24:19 +01:00
<h1 class="page-header">
2020-02-14 19:54:13 +01:00
<a href="#amr-050" class="anchor"></a>AMR 0.5.0<small> 2018-11-30 </small>
2018-12-29 22:24:19 +01:00
</h1>
2020-01-26 20:20:00 +01:00
<div id="new-6" class="section level4">
2018-12-29 22:24:19 +01:00
<h4 class="hasAnchor">
2020-01-26 20:20:00 +01:00
<a href="#new-6" class="anchor"></a>New</h4>
2018-12-29 22:24:19 +01:00
<ul>
<li>Repository moved to GitLab: <a href="https://gitlab.com/msberends/AMR" class="uri">https://gitlab.com/msberends/AMR</a>
</li>
<li>Function <code>count_all</code> to get all available isolates (that like all <code>portion_*</code> and <code>count_*</code> functions also supports <code>summarise</code> and <code>group_by</code>), the old <code>n_rsi</code> is now an alias of <code>count_all</code>
</li>
<li>Function <code>get_locale</code> to determine language for language-dependent output for some <code>mo_*</code> functions. This is now the default value for their <code>language</code> parameter, by which the system language will be used at default.</li>
<li>Data sets <code>microorganismsDT</code>, <code>microorganisms.prevDT</code>, <code>microorganisms.unprevDT</code> and <code>microorganisms.oldDT</code> to improve the speed of <code>as.mo</code>. They are for reference only, since they are primarily for internal use of <code>as.mo</code>.</li>
<li>Function <code>read.4D</code> to read from the 4D database of the MMB department of the UMCG</li>
<li>Functions <code>mo_authors</code> and <code>mo_year</code> to get specific values about the scientific reference of a taxonomic entry</li>
</ul>
</div>
2019-06-27 11:57:45 +02:00
<div id="changed-5" class="section level4">
2018-12-29 22:24:19 +01:00
<h4 class="hasAnchor">
2019-06-27 11:57:45 +02:00
<a href="#changed-5" class="anchor"></a>Changed</h4>
2018-12-29 22:24:19 +01:00
<ul>
2020-02-14 19:54:13 +01:00
<li><p>Functions <code>MDRO</code>, <code>BRMO</code>, <code>MRGN</code> and <code>EUCAST_exceptional_phenotypes</code> were renamed to <code>mdro</code>, <code>brmo</code>, <code>mrgn</code> and <code>eucast_exceptional_phenotypes</code></p></li>
<li><p><code>EUCAST_rules</code> was renamed to <code>eucast_rules</code>, the old function still exists as a deprecated function</p></li>
2018-12-29 22:24:19 +01:00
<li>
2020-02-14 19:54:13 +01:00
<p>Big changes to the <code>eucast_rules</code> function:</p>
2019-02-08 16:06:54 +01:00
<ul>
2018-12-29 22:24:19 +01:00
<li>Now also applies rules from the EUCAST Breakpoint tables for bacteria, version 8.1, 2018, <a href="http://www.eucast.org/clinical_breakpoints/" class="uri">http://www.eucast.org/clinical_breakpoints/</a> (see Source of the function)</li>
<li>New parameter <code>rules</code> to specify which rules should be applied (expert rules, breakpoints, others or all)</li>
<li>New parameter <code>verbose</code> which can be set to <code>TRUE</code> to get very specific messages about which columns and rows were affected</li>
<li>Better error handling when rules cannot be applied (i.e. new values could not be inserted)</li>
<li>The number of affected values will now only be measured once per row/column combination</li>
<li>Data set <code>septic_patients</code> now reflects these changes</li>
<li>Added parameter <code>pipe</code> for piperacillin (J01CA12), also to the <code>mdro</code> function</li>
<li>Small fixes to EUCAST clinical breakpoint rules</li>
2019-02-08 16:06:54 +01:00
</ul>
</li>
2020-02-14 19:54:13 +01:00
<li><p>Added column <code>kingdom</code> to the microorganisms data set, and function <code>mo_kingdom</code> to look up values</p></li>
<li><p>Tremendous speed improvement for <code>as.mo</code> (and subsequently all <code>mo_*</code> functions), as empty values wil be ignored <em>a priori</em></p></li>
<li><p>Fewer than 3 characters as input for <code>as.mo</code> will return NA</p></li>
2019-02-08 16:06:54 +01:00
<li>
<p>Function <code>as.mo</code> (and all <code>mo_*</code> wrappers) now supports genus abbreviations with “species” attached</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb26"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb26-1"><a href="#cb26-1"></a><span class="kw"><a href="../reference/as.mo.html">as.mo</a></span>(<span class="st">"E. species"</span>) <span class="co"># B_ESCHR</span></span>
<span id="cb26-2"><a href="#cb26-2"></a><span class="kw"><a href="../reference/mo_property.html">mo_fullname</a></span>(<span class="st">"E. spp."</span>) <span class="co"># "Escherichia species"</span></span>
<span id="cb26-3"><a href="#cb26-3"></a><span class="kw"><a href="../reference/as.mo.html">as.mo</a></span>(<span class="st">"S. spp"</span>) <span class="co"># B_STPHY</span></span>
<span id="cb26-4"><a href="#cb26-4"></a><span class="kw"><a href="../reference/mo_property.html">mo_fullname</a></span>(<span class="st">"S. species"</span>) <span class="co"># "Staphylococcus species"</span></span></code></pre></div>
</li>
<li><p>Added parameter <code>combine_IR</code> (TRUE/FALSE) to functions <code>portion_df</code> and <code>count_df</code>, to indicate that all values of I and R must be merged into one, so the output only consists of S vs. IR (susceptible vs. non-susceptible)</p></li>
<li><p>Fix for <code>portion_*(..., as_percent = TRUE)</code> when minimal number of isolates would not be met</p></li>
<li><p>Added parameter <code>also_single_tested</code> for <code>portion_*</code> and <code>count_*</code> functions to also include cases where not all antibiotics were tested but at least one of the tested antibiotics includes the target antimicribial interpretation, see <code><a href="../reference/proportion.html">?portion</a></code></p></li>
<li><p>Using <code>portion_*</code> functions now throws a warning when total available isolate is below parameter <code>minimum</code></p></li>
<li><p>Functions <code>as.mo</code>, <code>as.rsi</code>, <code>as.mic</code>, <code>as.atc</code> and <code>freq</code> will not set package name as attribute anymore</p></li>
<li>
<p>Frequency tables - <code><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq()</a></code>:</p>
2019-02-08 16:06:54 +01:00
<ul>
2018-12-29 22:24:19 +01:00
<li>
<p>Support for grouping variables, test with:</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb27"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb27-1"><a href="#cb27-1"></a>septic_patients <span class="op">%&gt;%</span><span class="st"> </span></span>
<span id="cb27-2"><a href="#cb27-2"></a><span class="st"> </span><span class="kw"><a href="https://dplyr.tidyverse.org/reference/group_by.html">group_by</a></span>(hospital_id) <span class="op">%&gt;%</span><span class="st"> </span></span>
<span id="cb27-3"><a href="#cb27-3"></a><span class="st"> </span><span class="kw"><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq</a></span>(gender)</span></code></pre></div>
2018-12-29 22:24:19 +01:00
</li>
<li>
<p>Support for (un)selecting columns:</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb28"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb28-1"><a href="#cb28-1"></a>septic_patients <span class="op">%&gt;%</span><span class="st"> </span></span>
<span id="cb28-2"><a href="#cb28-2"></a><span class="st"> </span><span class="kw"><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq</a></span>(hospital_id) <span class="op">%&gt;%</span><span class="st"> </span></span>
<span id="cb28-3"><a href="#cb28-3"></a><span class="st"> </span><span class="kw"><a href="https://dplyr.tidyverse.org/reference/select.html">select</a></span>(<span class="op">-</span>count, <span class="op">-</span>cum_count) <span class="co"># only get item, percent, cum_percent</span></span></code></pre></div>
</li>
<li><p>Check for <code><a href="https://hms.tidyverse.org/reference/Deprecated.html">hms::is.hms</a></code></p></li>
<li><p>Now prints in markdown at default in non-interactive sessions</p></li>
<li><p>No longer adds the factor level column and sorts factors on count again</p></li>
<li><p>Support for class <code>difftime</code></p></li>
<li><p>New parameter <code>na</code>, to choose which character to print for empty values</p></li>
<li><p>New parameter <code>header</code> to turn the header info off (default when <code>markdown = TRUE</code>)</p></li>
<li><p>New parameter <code>title</code> to manually setbthe title of the frequency table</p></li>
</ul>
</li>
<li><p><code>first_isolate</code> now tries to find columns to use as input when parameters are left blank</p></li>
<li><p>Improvements for MDRO algorithm (function <code>mdro</code>)</p></li>
<li><p>Data set <code>septic_patients</code> is now a <code>data.frame</code>, not a tibble anymore</p></li>
<li><p>Removed diacritics from all authors (columns <code>microorganisms$ref</code> and <code>microorganisms.old$ref</code>) to comply with CRAN policy to only allow ASCII characters</p></li>
<li><p>Fix for <code>mo_property</code> not working properly</p></li>
<li><p>Fix for <code>eucast_rules</code> where some Streptococci would become ceftazidime R in EUCAST rule 4.5</p></li>
<li><p>Support for named vectors of class <code>mo</code>, useful for <code>top_freq()</code></p></li>
<li><p><code>ggplot_rsi</code> and <code>scale_y_percent</code> have <code>breaks</code> parameter</p></li>
2018-12-29 22:24:19 +01:00
<li>
2020-02-14 19:54:13 +01:00
<p>AI improvements for <code>as.mo</code>:</p>
2019-02-08 16:06:54 +01:00
<ul>
2018-12-29 22:24:19 +01:00
<li>
<code>"CRS"</code> -&gt; <em>Stenotrophomonas maltophilia</em>
</li>
<li>
<code>"CRSM"</code> -&gt; <em>Stenotrophomonas maltophilia</em>
</li>
<li>
<code>"MSSA"</code> -&gt; <em>Staphylococcus aureus</em>
</li>
<li>
<code>"MSSE"</code> -&gt; <em>Staphylococcus epidermidis</em>
</li>
2019-02-08 16:06:54 +01:00
</ul>
</li>
2020-02-14 19:54:13 +01:00
<li><p>Fix for <code>join</code> functions</p></li>
<li><p>Speed improvement for <code>is.rsi.eligible</code>, now 15-20 times faster</p></li>
<li><p>In <code>g.test</code>, when <code><a href="https://rdrr.io/r/base/sum.html">sum(x)</a></code> is below 1000 or any of the expected values is below 5, Fishers Exact Test will be suggested</p></li>
<li><p><code>ab_name</code> will try to fall back on <code>as.atc</code> when no results are found</p></li>
<li><p>Removed the addin to view data sets</p></li>
2018-12-29 22:24:19 +01:00
<li><p>Percentages will now will rounded more logically (e.g. in <code>freq</code> function)</p></li>
</ul>
</div>
2019-12-22 11:43:38 +01:00
<div id="other-6" class="section level4">
2018-12-29 22:24:19 +01:00
<h4 class="hasAnchor">
2019-12-22 11:43:38 +01:00
<a href="#other-6" class="anchor"></a>Other</h4>
2018-12-29 22:24:19 +01:00
<ul>
<li>New dependency on package <code>crayon</code>, to support formatted text in the console</li>
<li>Dependency <code>tidyr</code> is now mandatory (went to <code>Import</code> field) since <code>portion_df</code> and <code>count_df</code> rely on it</li>
<li>Updated vignettes to comply with README</li>
</ul>
</div>
</div>
2020-02-14 19:54:13 +01:00
<div id="amr-040" class="section level1">
2018-12-29 22:24:19 +01:00
<h1 class="page-header">
2020-02-14 19:54:13 +01:00
<a href="#amr-040" class="anchor"></a>AMR 0.4.0<small> 2018-10-01 </small>
2018-12-29 22:24:19 +01:00
</h1>
2020-01-26 20:20:00 +01:00
<div id="new-7" class="section level4">
2018-12-29 22:24:19 +01:00
<h4 class="hasAnchor">
2020-01-26 20:20:00 +01:00
<a href="#new-7" class="anchor"></a>New</h4>
2018-12-29 22:24:19 +01:00
<ul>
2020-02-14 19:54:13 +01:00
<li><p>The data set <code>microorganisms</code> now contains <strong>all microbial taxonomic data from ITIS</strong> (kingdoms Bacteria, Fungi and Protozoa), the Integrated Taxonomy Information System, available via <a href="https://itis.gov" class="uri">https://itis.gov</a>. The data set now contains more than 18,000 microorganisms with all known bacteria, fungi and protozoa according ITIS with genus, species, subspecies, family, order, class, phylum and subkingdom. The new data set <code>microorganisms.old</code> contains all previously known taxonomic names from those kingdoms.</p></li>
<li>
<p>New functions based on the existing function <code>mo_property</code>:</p>
2019-02-08 16:06:54 +01:00
<ul>
2018-12-29 22:24:19 +01:00
<li>Taxonomic names: <code>mo_phylum</code>, <code>mo_class</code>, <code>mo_order</code>, <code>mo_family</code>, <code>mo_genus</code>, <code>mo_species</code>, <code>mo_subspecies</code>
</li>
<li>Semantic names: <code>mo_fullname</code>, <code>mo_shortname</code>
</li>
<li>Microbial properties: <code>mo_type</code>, <code>mo_gramstain</code>
</li>
<li>Author and year: <code>mo_ref</code>
</li>
</ul>
2019-02-08 16:06:54 +01:00
<p>They also come with support for German, Dutch, French, Italian, Spanish and Portuguese:</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb29"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb29-1"><a href="#cb29-1"></a><span class="kw"><a href="../reference/mo_property.html">mo_gramstain</a></span>(<span class="st">"E. coli"</span>)</span>
<span id="cb29-2"><a href="#cb29-2"></a><span class="co"># [1] "Gram negative"</span></span>
<span id="cb29-3"><a href="#cb29-3"></a><span class="kw"><a href="../reference/mo_property.html">mo_gramstain</a></span>(<span class="st">"E. coli"</span>, <span class="dt">language =</span> <span class="st">"de"</span>) <span class="co"># German</span></span>
<span id="cb29-4"><a href="#cb29-4"></a><span class="co"># [1] "Gramnegativ"</span></span>
<span id="cb29-5"><a href="#cb29-5"></a><span class="kw"><a href="../reference/mo_property.html">mo_gramstain</a></span>(<span class="st">"E. coli"</span>, <span class="dt">language =</span> <span class="st">"es"</span>) <span class="co"># Spanish</span></span>
<span id="cb29-6"><a href="#cb29-6"></a><span class="co"># [1] "Gram negativo"</span></span>
<span id="cb29-7"><a href="#cb29-7"></a><span class="kw"><a href="../reference/mo_property.html">mo_fullname</a></span>(<span class="st">"S. group A"</span>, <span class="dt">language =</span> <span class="st">"pt"</span>) <span class="co"># Portuguese</span></span>
<span id="cb29-8"><a href="#cb29-8"></a><span class="co"># [1] "Streptococcus grupo A"</span></span></code></pre></div>
2019-02-08 16:06:54 +01:00
<p>Furthermore, former taxonomic names will give a note about the current taxonomic name:</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb30"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb30-1"><a href="#cb30-1"></a><span class="kw"><a href="../reference/mo_property.html">mo_gramstain</a></span>(<span class="st">"Esc blattae"</span>)</span>
<span id="cb30-2"><a href="#cb30-2"></a><span class="co"># Note: 'Escherichia blattae' (Burgess et al., 1973) was renamed 'Shimwellia blattae' (Priest and Barker, 2010)</span></span>
<span id="cb30-3"><a href="#cb30-3"></a><span class="co"># [1] "Gram negative"</span></span></code></pre></div>
2019-02-08 16:06:54 +01:00
</li>
2020-02-14 19:54:13 +01:00
<li>
<p>Functions <code>count_R</code>, <code>count_IR</code>, <code>count_I</code>, <code>count_SI</code> and <code>count_S</code> to selectively count resistant or susceptible isolates</p>
2018-12-29 22:24:19 +01:00
<ul>
<li>Extra function <code>count_df</code> (which works like <code>portion_df</code>) to get all counts of S, I and R of a data set with antibiotic columns, with support for grouped variables</li>
2019-02-08 16:06:54 +01:00
</ul>
</li>
2020-02-14 19:54:13 +01:00
<li><p>Function <code>is.rsi.eligible</code> to check for columns that have valid antimicrobial results, but do not have the <code>rsi</code> class yet. Transform the columns of your raw data with: <code>data %&gt;% mutate_if(is.rsi.eligible, as.rsi)</code></p></li>
2019-02-08 16:06:54 +01:00
<li>
2019-03-06 14:39:02 +01:00
<p>Functions <code>as.mo</code> and <code>is.mo</code> as replacements for <code>as.bactid</code> and <code>is.bactid</code> (since the <code>microoganisms</code> data set not only contains bacteria). These last two functions are deprecated and will be removed in a future release. The <code>as.mo</code> function determines microbial IDs using intelligent rules:</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb31"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb31-1"><a href="#cb31-1"></a><span class="kw"><a href="../reference/as.mo.html">as.mo</a></span>(<span class="st">"E. coli"</span>)</span>
<span id="cb31-2"><a href="#cb31-2"></a><span class="co"># [1] B_ESCHR_COL</span></span>
<span id="cb31-3"><a href="#cb31-3"></a><span class="kw"><a href="../reference/as.mo.html">as.mo</a></span>(<span class="st">"MRSA"</span>)</span>
<span id="cb31-4"><a href="#cb31-4"></a><span class="co"># [1] B_STPHY_AUR</span></span>
<span id="cb31-5"><a href="#cb31-5"></a><span class="kw"><a href="../reference/as.mo.html">as.mo</a></span>(<span class="st">"S group A"</span>)</span>
<span id="cb31-6"><a href="#cb31-6"></a><span class="co"># [1] B_STRPTC_GRA</span></span></code></pre></div>
2019-02-08 16:06:54 +01:00
<p>And with great speed too - on a quite regular Linux server from 2007 it takes us less than 0.02 seconds to transform 25,000 items:</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb32"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb32-1"><a href="#cb32-1"></a>thousands_of_E_colis &lt;-<span class="st"> </span><span class="kw"><a href="https://rdrr.io/r/base/rep.html">rep</a></span>(<span class="st">"E. coli"</span>, <span class="dv">25000</span>)</span>
<span id="cb32-2"><a href="#cb32-2"></a>microbenchmark<span class="op">::</span><span class="kw"><a href="https://rdrr.io/pkg/microbenchmark/man/microbenchmark.html">microbenchmark</a></span>(<span class="kw"><a href="../reference/as.mo.html">as.mo</a></span>(thousands_of_E_colis), <span class="dt">unit =</span> <span class="st">"s"</span>)</span>
<span id="cb32-3"><a href="#cb32-3"></a><span class="co"># Unit: seconds</span></span>
<span id="cb32-4"><a href="#cb32-4"></a><span class="co"># min median max neval</span></span>
<span id="cb32-5"><a href="#cb32-5"></a><span class="co"># 0.01817717 0.01843957 0.03878077 100</span></span></code></pre></div>
2018-12-29 22:24:19 +01:00
</li>
2020-02-14 19:54:13 +01:00
<li><p>Added parameter <code>reference_df</code> for <code>as.mo</code>, so users can supply their own microbial IDs, name or codes as a reference table</p></li>
<li>
<p>Renamed all previous references to <code>bactid</code> to <code>mo</code>, like:</p>
2019-02-08 16:06:54 +01:00
<ul>
2018-12-29 22:24:19 +01:00
<li>Column names inputs of <code>EUCAST_rules</code>, <code>first_isolate</code> and <code>key_antibiotics</code>
</li>
<li>Column names of datasets <code>microorganisms</code> and <code>septic_patients</code>
</li>
<li>All old syntaxes will still work with this version, but will throw warnings</li>
2019-02-08 16:06:54 +01:00
</ul>
</li>
2020-02-14 19:54:13 +01:00
<li><p>Function <code>labels_rsi_count</code> to print datalabels on a RSI <code>ggplot2</code> model</p></li>
2018-12-29 22:24:19 +01:00
<li><p>Functions <code>as.atc</code> and <code>is.atc</code> to transform/look up antibiotic ATC codes as defined by the WHO. The existing function <code>guess_atc</code> is now an alias of <code>as.atc</code>.</p></li>
2020-02-14 19:54:13 +01:00
<li><p>Function <code>ab_property</code> and its aliases: <code>ab_name</code>, <code>ab_tradenames</code>, <code>ab_certe</code>, <code>ab_umcg</code> and <code>ab_trivial_nl</code></p></li>
<li><p>Introduction to AMR as a vignette</p></li>
<li><p>Removed clipboard functions as it violated the CRAN policy</p></li>
2018-12-29 22:24:19 +01:00
<li><p>Renamed <code>septic_patients$sex</code> to <code>septic_patients$gender</code></p></li>
</ul>
</div>
2019-06-27 11:57:45 +02:00
<div id="changed-6" class="section level4">
2018-12-29 22:24:19 +01:00
<h4 class="hasAnchor">
2019-06-27 11:57:45 +02:00
<a href="#changed-6" class="anchor"></a>Changed</h4>
2018-12-29 22:24:19 +01:00
<ul>
2020-02-14 19:54:13 +01:00
<li><p>Added three antimicrobial agents to the <code>antibiotics</code> data set: Terbinafine (D01BA02), Rifaximin (A07AA11) and Isoconazole (D01AC05)</p></li>
2019-02-08 16:06:54 +01:00
<li>
<p>Added 163 trade names to the <code>antibiotics</code> data set, it now contains 298 different trade names in total, e.g.:</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb33"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb33-1"><a href="#cb33-1"></a><span class="kw">ab_official</span>(<span class="st">"Bactroban"</span>)</span>
<span id="cb33-2"><a href="#cb33-2"></a><span class="co"># [1] "Mupirocin"</span></span>
<span id="cb33-3"><a href="#cb33-3"></a><span class="kw"><a href="../reference/ab_property.html">ab_name</a></span>(<span class="kw"><a href="https://rdrr.io/r/base/c.html">c</a></span>(<span class="st">"Bactroban"</span>, <span class="st">"Amoxil"</span>, <span class="st">"Zithromax"</span>, <span class="st">"Floxapen"</span>))</span>
<span id="cb33-4"><a href="#cb33-4"></a><span class="co"># [1] "Mupirocin" "Amoxicillin" "Azithromycin" "Flucloxacillin"</span></span>
<span id="cb33-5"><a href="#cb33-5"></a><span class="kw"><a href="../reference/ab_property.html">ab_atc</a></span>(<span class="kw"><a href="https://rdrr.io/r/base/c.html">c</a></span>(<span class="st">"Bactroban"</span>, <span class="st">"Amoxil"</span>, <span class="st">"Zithromax"</span>, <span class="st">"Floxapen"</span>))</span>
<span id="cb33-6"><a href="#cb33-6"></a><span class="co"># [1] "R01AX06" "J01CA04" "J01FA10" "J01CF05"</span></span></code></pre></div>
</li>
<li><p>For <code>first_isolate</code>, rows will be ignored when theres no species available</p></li>
<li><p>Function <code>ratio</code> is now deprecated and will be removed in a future release, as it is not really the scope of this package</p></li>
<li><p>Fix for <code>as.mic</code> for values ending in zeroes after a real number</p></li>
<li><p>Small fix where <em>B. fragilis</em> would not be found in the <code>microorganisms.umcg</code> data set</p></li>
<li><p>Added <code>prevalence</code> column to the <code>microorganisms</code> data set</p></li>
<li><p>Added parameters <code>minimum</code> and <code>as_percent</code> to <code>portion_df</code></p></li>
2019-02-08 16:06:54 +01:00
<li>
<p>Support for quasiquotation in the functions series <code>count_*</code> and <code>portions_*</code>, and <code>n_rsi</code>. This allows to check for more than 2 vectors or columns.</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb34"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb34-1"><a href="#cb34-1"></a>septic_patients <span class="op">%&gt;%</span><span class="st"> </span><span class="kw"><a href="https://dplyr.tidyverse.org/reference/select.html">select</a></span>(amox, cipr) <span class="op">%&gt;%</span><span class="st"> </span><span class="kw"><a href="../reference/count.html">count_IR</a></span>()</span>
<span id="cb34-2"><a href="#cb34-2"></a><span class="co"># which is the same as:</span></span>
<span id="cb34-3"><a href="#cb34-3"></a>septic_patients <span class="op">%&gt;%</span><span class="st"> </span><span class="kw"><a href="../reference/count.html">count_IR</a></span>(amox, cipr)</span>
<span id="cb34-4"><a href="#cb34-4"></a></span>
<span id="cb34-5"><a href="#cb34-5"></a>septic_patients <span class="op">%&gt;%</span><span class="st"> </span><span class="kw"><a href="../reference/AMR-deprecated.html">portion_S</a></span>(amcl)</span>
<span id="cb34-6"><a href="#cb34-6"></a>septic_patients <span class="op">%&gt;%</span><span class="st"> </span><span class="kw"><a href="../reference/AMR-deprecated.html">portion_S</a></span>(amcl, gent)</span>
<span id="cb34-7"><a href="#cb34-7"></a>septic_patients <span class="op">%&gt;%</span><span class="st"> </span><span class="kw"><a href="../reference/AMR-deprecated.html">portion_S</a></span>(amcl, gent, pita)</span></code></pre></div>
</li>
<li><p>Edited <code>ggplot_rsi</code> and <code>geom_rsi</code> so they can cope with <code>count_df</code>. The new <code>fun</code> parameter has value <code>portion_df</code> at default, but can be set to <code>count_df</code>.</p></li>
<li><p>Fix for <code>ggplot_rsi</code> when the <code>ggplot2</code> package was not loaded</p></li>
<li><p>Added datalabels function <code>labels_rsi_count</code> to <code>ggplot_rsi</code></p></li>
<li><p>Added possibility to set any parameter to <code>geom_rsi</code> (and <code>ggplot_rsi</code>) so you can set your own preferences</p></li>
<li><p>Fix for joins, where predefined suffices would not be honoured</p></li>
<li><p>Added parameter <code>quote</code> to the <code>freq</code> function</p></li>
<li><p>Added generic function <code>diff</code> for frequency tables</p></li>
<li><p>Added longest en shortest character length in the frequency table (<code>freq</code>) header of class <code>character</code></p></li>
2019-02-08 16:06:54 +01:00
<li>
<p>Support for types (classes) list and matrix for <code>freq</code></p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb35"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb35-1"><a href="#cb35-1"></a>my_matrix =<span class="st"> </span><span class="kw"><a href="https://rdrr.io/r/base/with.html">with</a></span>(septic_patients, <span class="kw"><a href="https://rdrr.io/r/base/matrix.html">matrix</a></span>(<span class="kw"><a href="https://rdrr.io/r/base/c.html">c</a></span>(age, gender), <span class="dt">ncol =</span> <span class="dv">2</span>))</span>
<span id="cb35-2"><a href="#cb35-2"></a><span class="kw"><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq</a></span>(my_matrix)</span></code></pre></div>
2019-02-08 16:06:54 +01:00
<p>For lists, subsetting is possible:</p>
2020-02-14 19:54:13 +01:00
<div class="sourceCode" id="cb36"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb36-1"><a href="#cb36-1"></a>my_list =<span class="st"> </span><span class="kw"><a href="https://rdrr.io/r/base/list.html">list</a></span>(<span class="dt">age =</span> septic_patients<span class="op">$</span>age, <span class="dt">gender =</span> septic_patients<span class="op">$</span>gender)</span>
<span id="cb36-2"><a href="#cb36-2"></a>my_list <span class="op">%&gt;%</span><span class="st"> </span><span class="kw"><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq</a></span>(age)</span>
<span id="cb36-3"><a href="#cb36-3"></a>my_list <span class="op">%&gt;%</span><span class="st"> </span><span class="kw"><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq</a></span>(gender)</span></code></pre></div>
2019-02-08 16:06:54 +01:00
</li>
2018-12-29 22:24:19 +01:00
</ul>
</div>
2019-12-22 11:43:38 +01:00
<div id="other-7" class="section level4">
2018-12-29 22:24:19 +01:00
<h4 class="hasAnchor">
2019-12-22 11:43:38 +01:00
<a href="#other-7" class="anchor"></a>Other</h4>
2018-12-29 22:24:19 +01:00
<ul>
<li>More unit tests to ensure better integrity of functions</li>
</ul>
</div>
</div>
2020-02-14 19:54:13 +01:00
<div id="amr-030" class="section level1">
2018-12-29 22:24:19 +01:00
<h1 class="page-header">
2020-02-14 19:54:13 +01:00
<a href="#amr-030" class="anchor"></a>AMR 0.3.0<small> 2018-08-14 </small>
2018-12-29 22:24:19 +01:00
</h1>
2020-01-26 20:20:00 +01:00
<div id="new-8" class="section level4">
2018-12-29 22:24:19 +01:00
<h4 class="hasAnchor">
2020-01-26 20:20:00 +01:00
<a href="#new-8" class="anchor"></a>New</h4>
2018-12-29 22:24:19 +01:00
<ul>
<li>
2019-02-08 16:06:54 +01:00
<strong>BREAKING</strong>: <code>rsi_df</code> was removed in favour of new functions <code>portion_R</code>, <code>portion_IR</code>, <code>portion_I</code>, <code>portion_SI</code> and <code>portion_S</code> to selectively calculate resistance or susceptibility. These functions are 20 to 30 times faster than the old <code>rsi</code> function. The old function still works, but is deprecated.
<ul>
2018-12-29 22:24:19 +01:00
<li>New function <code>portion_df</code> to get all portions of S, I and R of a data set with antibiotic columns, with support for grouped variables</li>
2019-02-08 16:06:54 +01:00
</ul>
</li>
2018-12-29 22:24:19 +01:00
<li>
2019-02-08 16:06:54 +01:00
<strong>BREAKING</strong>: the methodology for determining first weighted isolates was changed. The antibiotics that are compared between isolates (call <em>key antibiotics</em>) to include more first isolates (afterwards called first <em>weighted</em> isolates) are now as follows:
<ul>
2018-12-29 22:24:19 +01:00
<li>Universal: amoxicillin, amoxicillin/clavlanic acid, cefuroxime, piperacillin/tazobactam, ciprofloxacin, trimethoprim/sulfamethoxazole</li>
<li>Gram-positive: vancomycin, teicoplanin, tetracycline, erythromycin, oxacillin, rifampicin</li>
<li>Gram-negative: gentamicin, tobramycin, colistin, cefotaxime, ceftazidime, meropenem</li>
2019-02-08 16:06:54 +01:00
</ul>
2019-02-04 18:04:29 +01:00
</li>
2019-02-08 16:06:54 +01:00
<li>Support for <code>ggplot2</code>
<ul>
2018-12-29 22:24:19 +01:00
<li>New functions <code>geom_rsi</code>, <code>facet_rsi</code>, <code>scale_y_percent</code>, <code>scale_rsi_colours</code> and <code>theme_rsi</code>
</li>
<li>New wrapper function <code>ggplot_rsi</code> to apply all above functions on a data set:
<ul>
<li>
<code>septic_patients %&gt;% select(tobr, gent) %&gt;% ggplot_rsi</code> will show portions of S, I and R immediately in a pretty plot</li>
2019-09-23 13:53:50 +02:00
<li>Support for grouped variables, see <code><a href="../reference/ggplot_rsi.html">?ggplot_rsi</a></code>
2018-12-29 22:24:19 +01:00
</li>
</ul>
</li>
2019-02-08 16:06:54 +01:00
</ul>
</li>
<li>Determining bacterial ID:
<ul>
2018-12-29 22:24:19 +01:00
<li>New functions <code>as.bactid</code> and <code>is.bactid</code> to transform/ look up microbial IDs.</li>
<li>The existing function <code>guess_bactid</code> is now an alias of <code>as.bactid</code>
</li>
<li>New Becker classification for <em>Staphylococcus</em> to categorise them into Coagulase Negative <em>Staphylococci</em> (CoNS) and Coagulase Positve <em>Staphylococci</em> (CoPS)</li>
<li>New Lancefield classification for <em>Streptococcus</em> to categorise them into Lancefield groups</li>
2019-02-08 16:06:54 +01:00
</ul>
</li>
2018-12-29 22:24:19 +01:00
<li>For convience, new descriptive statistical functions <code>kurtosis</code> and <code>skewness</code> that are lacking in base R - they are generic functions and have support for vectors, data.frames and matrices</li>
<li>Function <code>g.test</code> to perform the Χ<sup>2</sup> distributed <a href="https://en.wikipedia.org/wiki/G-test"><em>G</em>-test</a>, which use is the same as <code>chisq.test</code>
</li>
2019-02-08 16:06:54 +01:00
<li>
<del>Function <code>ratio</code> to transform a vector of values to a preset ratio</del>
<ul>
2019-06-27 11:57:45 +02:00
<li><del>For example: <code>ratio(c(10, 500, 10), ratio = "1:2:1")</code> would return <code>130, 260, 130</code></del></li>
2019-02-08 16:06:54 +01:00
</ul>
</li>
2019-09-25 15:43:22 +02:00
<li>Support for Addins menu in RStudio to quickly insert <code><a href="https://rdrr.io/r/base/match.html">%in%</a></code> or <code><a href="../reference/like.html">%like%</a></code> (and give them keyboard shortcuts), or to view the datasets that come with this package</li>
2018-12-29 22:24:19 +01:00
<li>Function <code>p.symbol</code> to transform p values to their related symbols: <code>0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1</code>
</li>
<li>Functions <code>clipboard_import</code> and <code>clipboard_export</code> as helper functions to quickly copy and paste from/to software like Excel and SPSS. These functions use the <code>clipr</code> package, but are a little altered to also support headless Linux servers (so you can use it in RStudio Server)</li>
2019-02-08 16:06:54 +01:00
<li>New for frequency tables (function <code>freq</code>):
<ul>
2018-12-29 22:24:19 +01:00
<li>A vignette to explain its usage</li>
<li>Support for <code>rsi</code> (antimicrobial resistance) to use as input</li>
<li>Support for <code>table</code> to use as input: <code><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq(table(x, y))</a></code>
2018-12-29 22:24:19 +01:00
</li>
2019-09-25 15:43:22 +02:00
<li>Support for existing functions <code>hist</code> and <code>plot</code> to use a frequency table as input: <code><a href="https://rdrr.io/r/graphics/hist.html">hist(freq(df$age))</a></code>
2018-12-29 22:24:19 +01:00
</li>
<li>Support for <code>as.vector</code>, <code>as.data.frame</code>, <code>as_tibble</code> and <code>format</code>
</li>
<li>Support for quasiquotation: <code><a href="https://rdrr.io/pkg/cleaner/man/freq.html">freq(mydata, mycolumn)</a></code> is the same as <code>mydata %&gt;% freq(mycolumn)</code>
2018-12-29 22:24:19 +01:00
</li>
<li>Function <code>top_freq</code> function to return the top/below <em>n</em> items as vector</li>
<li>Header of frequency tables now also show Mean Absolute Deviaton (MAD) and Interquartile Range (IQR)</li>
2019-09-25 15:43:22 +02:00
<li>Possibility to globally set the default for the amount of items to print, with <code><a href="https://rdrr.io/r/base/options.html">options(max.print.freq = n)</a></code> where <em>n</em> is your preset value</li>
2018-12-29 22:24:19 +01:00
</ul>
2019-02-08 16:06:54 +01:00
</li>
</ul>
2018-12-29 22:24:19 +01:00
</div>
2019-06-27 11:57:45 +02:00
<div id="changed-7" class="section level4">
2018-12-29 22:24:19 +01:00
<h4 class="hasAnchor">
2019-06-27 11:57:45 +02:00
<a href="#changed-7" class="anchor"></a>Changed</h4>
2018-12-29 22:24:19 +01:00
<ul>
<li>Improvements for forecasting with <code>resistance_predict</code> and added more examples</li>
<li>More antibiotics added as parameters for EUCAST rules</li>
<li>Updated version of the <code>septic_patients</code> data set to better reflect the reality</li>
<li>Pretty printing for tibbles removed as it is not really the scope of this package</li>
<li>Printing of <code>mic</code> and <code>rsi</code> classes now returns all values - use <code>freq</code> to check distributions</li>
<li>Improved speed of key antibiotics comparison for determining first isolates</li>
<li>Column names for the <code>key_antibiotics</code> function are now generic: 6 for broadspectrum ABs, 6 for Gram-positive specific and 6 for Gram-negative specific ABs</li>
<li>Speed improvement for the <code>abname</code> function</li>
<li>
2019-09-25 15:43:22 +02:00
<code><a href="../reference/like.html">%like%</a></code> now supports multiple patterns</li>
2018-12-29 22:24:19 +01:00
<li>Frequency tables are now actual <code>data.frame</code>s with altered console printing to make it look like a frequency table. Because of this, the parameter <code>toConsole</code> is not longer needed.</li>
<li>Fix for <code>freq</code> where the class of an item would be lost</li>
<li>Small translational improvements to the <code>septic_patients</code> dataset and the column <code>bactid</code> now has the new class <code>"bactid"</code>
</li>
<li>Small improvements to the <code>microorganisms</code> dataset (especially for <em>Salmonella</em>) and the column <code>bactid</code> now has the new class <code>"bactid"</code>
</li>
2019-02-08 16:06:54 +01:00
<li>Combined MIC/RSI values will now be coerced by the <code>rsi</code> and <code>mic</code> functions:
<ul>
2018-12-29 22:24:19 +01:00
<li>
2019-09-23 13:53:50 +02:00
<code><a href="../reference/as.rsi.html">as.rsi("&lt;=0.002; S")</a></code> will return <code>S</code>
2018-12-29 22:24:19 +01:00
</li>
<li>
2019-09-23 13:53:50 +02:00
<code><a href="../reference/as.mic.html">as.mic("&lt;=0.002; S")</a></code> will return <code>&lt;=0.002</code>
2018-12-29 22:24:19 +01:00
</li>
2019-02-08 16:06:54 +01:00
</ul>
</li>
2020-02-14 19:54:13 +01:00
<li>Now possible to coerce MIC values with a space between operator and value, i.e. <code><a href="../reference/as.mic.html">as.mic("&lt;= 0.002")</a></code> now works</li>
2018-12-29 22:24:19 +01:00
<li>Classes <code>rsi</code> and <code>mic</code> do not add the attribute <code>package.version</code> anymore</li>
2019-06-27 11:57:45 +02:00
<li>Added <code>"groups"</code> option for <code>atc_property(..., property)</code>. It will return a vector of the ATC hierarchy as defined by the <a href="https://www.whocc.no/atc/structure_and_principles/">WHO</a>. The new function <code>atc_groups</code> is a convenient wrapper around this.</li>
2018-12-29 22:24:19 +01:00
<li>Build-in host check for <code>atc_property</code> as it requires the host set by <code>url</code> to be responsive</li>
<li>Improved <code>first_isolate</code> algorithm to exclude isolates where bacteria ID or genus is unavailable</li>
<li>Fix for warning <em>hybrid evaluation forced for row_number</em> (<a href="https://github.com/tidyverse/dplyr/commit/924b62"><code>924b62</code></a>) from the <code>dplyr</code> package v0.7.5 and above</li>
2019-02-08 16:06:54 +01:00
<li>Support for empty values and for 1 or 2 columns as input for <code>guess_bactid</code> (now called <code>as.bactid</code>)
<ul>
2018-12-29 22:24:19 +01:00
<li>So <code>yourdata %&gt;% select(genus, species) %&gt;% as.bactid()</code> now also works</li>
2019-02-08 16:06:54 +01:00
</ul>
</li>
2018-12-29 22:24:19 +01:00
<li>Other small fixes</li>
</ul>
</div>
2019-12-22 11:43:38 +01:00
<div id="other-8" class="section level4">
2018-12-29 22:24:19 +01:00
<h4 class="hasAnchor">
2019-12-22 11:43:38 +01:00
<a href="#other-8" class="anchor"></a>Other</h4>
2018-12-29 22:24:19 +01:00
<ul>
2019-02-08 16:06:54 +01:00
<li>Added integration tests (check if everything works as expected) for all releases of R 3.1 and higher
<ul>
2018-12-29 22:24:19 +01:00
<li>Linux and macOS: <a href="https://travis-ci.org/msberends/AMR" class="uri">https://travis-ci.org/msberends/AMR</a>
</li>
<li>Windows: <a href="https://ci.appveyor.com/project/msberends/amr" class="uri">https://ci.appveyor.com/project/msberends/amr</a>
</li>
2019-02-08 16:06:54 +01:00
</ul>
</li>
2018-12-29 22:24:19 +01:00
<li>Added thesis advisors to DESCRIPTION file</li>
</ul>
</div>
</div>
2020-02-14 19:54:13 +01:00
<div id="amr-020" class="section level1">
2018-12-29 22:24:19 +01:00
<h1 class="page-header">
2020-02-14 19:54:13 +01:00
<a href="#amr-020" class="anchor"></a>AMR 0.2.0<small> 2018-05-03 </small>
2018-12-29 22:24:19 +01:00
</h1>
2020-01-26 20:20:00 +01:00
<div id="new-9" class="section level4">
2018-12-29 22:24:19 +01:00
<h4 class="hasAnchor">
2020-01-26 20:20:00 +01:00
<a href="#new-9" class="anchor"></a>New</h4>
2018-12-29 22:24:19 +01:00
<ul>
<li>Full support for Windows, Linux and macOS</li>
<li>Full support for old R versions, only R-3.0.0 (April 2013) or later is needed (needed packages may have other dependencies)</li>
2019-02-12 15:38:31 +01:00
<li>Function <code>n_rsi</code> to count cases where antibiotic test results were available, to be used in conjunction with <code><a href="https://dplyr.tidyverse.org/reference/summarise.html">dplyr::summarise</a></code>, see ?rsi</li>
2018-12-29 22:24:19 +01:00
<li>Function <code>guess_bactid</code> to <strong>determine the ID</strong> of a microorganism based on genus/species or known abbreviations like MRSA</li>
<li>Function <code>guess_atc</code> to <strong>determine the ATC</strong> of an antibiotic based on name, trade name, or known abbreviations</li>
<li>Function <code>freq</code> to create <strong>frequency tables</strong>, with additional info in a header</li>
2019-02-08 16:06:54 +01:00
<li>Function <code>MDRO</code> to <strong>determine Multi Drug Resistant Organisms (MDRO)</strong> with support for country-specific guidelines.
<ul>
2018-12-29 22:24:19 +01:00
<li>
<a href="http://www.eucast.org/expert_rules_and_intrinsic_resistance">Exceptional resistances defined by EUCAST</a> are also supported instead of countries alone</li>
<li>Functions <code>BRMO</code> and <code>MRGN</code> are wrappers for Dutch and German guidelines, respectively</li>
2019-02-08 16:06:54 +01:00
</ul>
</li>
2019-09-23 13:53:50 +02:00
<li>New algorithm to determine weighted isolates, can now be <code>"points"</code> or <code>"keyantibiotics"</code>, see <code><a href="../reference/first_isolate.html">?first_isolate</a></code>
2018-12-29 22:24:19 +01:00
</li>
<li>New print format for <code>tibble</code>s and <code>data.table</code>s</li>
</ul>
</div>
2019-06-27 11:57:45 +02:00
<div id="changed-8" class="section level4">
2018-12-29 22:24:19 +01:00
<h4 class="hasAnchor">
2019-06-27 11:57:45 +02:00
<a href="#changed-8" class="anchor"></a>Changed</h4>
2018-12-29 22:24:19 +01:00
<ul>
<li>Fixed <code>rsi</code> class for vectors that contain only invalid antimicrobial interpretations</li>
<li>Renamed dataset <code>ablist</code> to <code>antibiotics</code>
</li>
<li>Renamed dataset <code>bactlist</code> to <code>microorganisms</code>
</li>
<li>Added common abbreviations and trade names to the <code>antibiotics</code> dataset</li>
<li>Added more microorganisms to the <code>microorganisms</code> dataset</li>
<li>Added analysis examples on help page of dataset <code>septic_patients</code>
</li>
<li>Added support for character vector in <code>join</code> functions</li>
<li>Added warnings when a join results in more rows after than before the join</li>
2019-09-25 15:43:22 +02:00
<li>Altered <code><a href="../reference/like.html">%like%</a></code> to make it case insensitive</li>
2018-12-29 22:24:19 +01:00
<li>For parameters of functions <code>first_isolate</code> and <code>EUCAST_rules</code> column names are now case-insensitive</li>
<li>Functions <code>as.rsi</code> and <code>as.mic</code> now add the package name and version as attributes</li>
</ul>
</div>
2019-12-22 11:43:38 +01:00
<div id="other-9" class="section level4">
2018-12-29 22:24:19 +01:00
<h4 class="hasAnchor">
2019-12-22 11:43:38 +01:00
<a href="#other-9" class="anchor"></a>Other</h4>
2018-12-29 22:24:19 +01:00
<ul>
<li>Expanded <code>README.md</code> with more examples</li>
<li>Added <a href="https://orcid.org">ORCID</a> of authors to DESCRIPTION file</li>
<li>Added unit testing with the <code>testthat</code> package</li>
<li>Added build tests for Linux and macOS using Travis CI (<a href="https://travis-ci.org/msberends/AMR" class="uri">https://travis-ci.org/msberends/AMR</a>)</li>
<li>Added line coverage checking using CodeCov (<a href="https://codecov.io/gh/msberends/AMR/tree/master/R" class="uri">https://codecov.io/gh/msberends/AMR/tree/master/R</a>)</li>
</ul>
</div>
</div>
2020-02-14 19:54:13 +01:00
<div id="amr-011" class="section level1">
2018-12-29 22:24:19 +01:00
<h1 class="page-header">
2020-02-14 19:54:13 +01:00
<a href="#amr-011" class="anchor"></a>AMR 0.1.1<small> 2018-03-14 </small>
2018-12-29 22:24:19 +01:00
</h1>
<ul>
<li>
<code>EUCAST_rules</code> applies for amoxicillin even if ampicillin is missing</li>
<li>Edited column names to comply with GLIMS, the laboratory information system</li>
<li>Added more valid MIC values</li>
<li>Renamed Daily Defined Dose to Defined Daily Dose</li>
<li>Added barplots for <code>rsi</code> and <code>mic</code> classes</li>
</ul>
</div>
2020-02-14 19:54:13 +01:00
<div id="amr-010" class="section level1">
2018-12-29 22:24:19 +01:00
<h1 class="page-header">
2020-02-14 19:54:13 +01:00
<a href="#amr-010" class="anchor"></a>AMR 0.1.0<small> 2018-02-22 </small>
2018-12-29 22:24:19 +01:00
</h1>
<ul>
<li>First submission to CRAN.</li>
</ul>
</div>
</div>
<div class="col-md-3 hidden-xs hidden-sm" id="sidebar">
<div id="tocnav">
<h2>Contents</h2>
<ul class="nav nav-pills nav-stacked">
2020-02-17 15:07:25 +01:00
<li><a href="#amr-0909027">0.9.0.9027</a></li>
2020-02-14 19:54:13 +01:00
<li><a href="#amr-090">0.9.0</a></li>
<li><a href="#amr-080">0.8.0</a></li>
<li><a href="#amr-071">0.7.1</a></li>
<li><a href="#amr-070">0.7.0</a></li>
<li><a href="#amr-061">0.6.1</a></li>
<li><a href="#amr-060">0.6.0</a></li>
<li><a href="#amr-050">0.5.0</a></li>
<li><a href="#amr-040">0.4.0</a></li>
<li><a href="#amr-030">0.3.0</a></li>
<li><a href="#amr-020">0.2.0</a></li>
<li><a href="#amr-011">0.1.1</a></li>
<li><a href="#amr-010">0.1.0</a></li>
2018-12-29 22:24:19 +01:00
</ul>
</div>
</div>
</div>
2019-09-25 15:43:22 +02:00
2018-12-29 22:24:19 +01:00
<footer>
<div class="copyright">
2020-02-17 14:38:01 +01:00
<p>Developed by <a href='https://www.rug.nl/staff/m.s.berends/'>Matthijs S. Berends</a>, <a href='https://www.rug.nl/staff/c.f.luz/'>Christian F. Luz</a>, <a href='https://www.rug.nl/staff/a.w.friedrich/'>Alexander W. Friedrich</a>, <a href='https://www.rug.nl/staff/b.sinha/'>Bhanu N. M. Sinha</a>, <a href='https://www.rug.nl/staff/c.j.albers/'>Casper J. Albers</a>, <a href='https://www.rug.nl/staff/c.glasner/'>Corinna Glasner</a>.</p>
2018-12-29 22:24:19 +01:00
</div>
<div class="pkgdown">
2019-09-25 15:43:22 +02:00
<p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.4.1.</p>
2018-12-29 22:24:19 +01:00
</div>
2019-09-25 15:43:22 +02:00
2018-12-29 22:24:19 +01:00
</footer>
</div>
2019-09-25 15:43:22 +02:00
2018-12-29 22:24:19 +01:00
</body>
</html>
2019-09-25 15:43:22 +02:00