<!-- Generated by pkgdown: do not edit by hand --><htmllang="en"><head><metahttp-equiv="Content-Type"content="text/html; charset=UTF-8"><metacharset="utf-8"><metahttp-equiv="X-UA-Compatible"content="IE=edge"><metaname="viewport"content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Changelog • AMR (for R)</title><!-- favicons --><linkrel="icon"type="image/png"sizes="16x16"href="../favicon-16x16.png"><linkrel="icon"type="image/png"sizes="32x32"href="../favicon-32x32.png"><linkrel="apple-touch-icon"type="image/png"sizes="180x180"href="../apple-touch-icon.png"><linkrel="apple-touch-icon"type="image/png"sizes="120x120"href="../apple-touch-icon-120x120.png"><linkrel="apple-touch-icon"type="image/png"sizes="76x76"href="../apple-touch-icon-76x76.png"><linkrel="apple-touch-icon"type="image/png"sizes="60x60"href="../apple-touch-icon-60x60.png"><scriptsrc="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><metaname="viewport"content="width=device-width, initial-scale=1, shrink-to-fit=no"><linkhref="../deps/bootstrap-5.3.1/bootstrap.min.css"rel="stylesheet"><scriptsrc="../deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><linkhref="../deps/Lato-0.4.9/font.css"rel="stylesheet"><linkhref="../deps/Fira_Code-0.4.9/font.css"rel="stylesheet"><linkhref="../deps/font-awesome-6.4.2/css/all.min.css"rel="stylesheet"><linkhref="../deps/font-awesome-6.4.2/css/v4-shims.min.css"rel="stylesheet"><scriptsrc="../deps/headroom-0.11.0/headroom.min.js"></script><scriptsrc="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><scriptsrc="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><scriptsrc="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><scriptsrc="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><scriptsrc="../deps/search-1.0.0/fuse.min.js"></script><scriptsrc="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><scriptsrc="../pkgdown.js"></script><linkhref="../extra.css"rel="stylesheet"><scriptsrc="../extra.js"></script><metaproperty="og:title"content="Changelog"><metaproperty="og:image"content="https://msberends.github.io/AMR/logo.svg"></head><body>
<buttonclass="nav-link dropdown-toggle"type="button"id="dropdown-how-to"data-bs-toggle="dropdown"aria-expanded="false"aria-haspopup="true"><spanclass="fa fa-question-circle"></span> How to</button>
<ulclass="dropdown-menu"aria-labelledby="dropdown-how-to"><li><aclass="dropdown-item"href="../articles/AMR.html"><spanclass="fa fa-directions"></span> Conduct AMR Analysis</a></li>
<buttonclass="nav-link dropdown-toggle"type="button"id="dropdown-with-other-pkgs"data-bs-toggle="dropdown"aria-expanded="false"aria-haspopup="true"><spanclass="fa fa-layer-group"></span> With other pkgs</button>
<ulclass="dropdown-menu"aria-labelledby="dropdown-with-other-pkgs"><li><aclass="dropdown-item"href="../articles/other_pkg.html"><spanclass="fa fa-layer-group"></span> AMR & dplyr/tidyverse</a></li>
<li><aclass="dropdown-item"href="../articles/other_pkg.html"><spanclass="fa fa-layer-group"></span> AMR & data.table</a></li>
<li><aclass="dropdown-item"href="../articles/other_pkg.html"><spanclass="fa fa-layer-group"></span> AMR & tidymodels</a></li>
<li><aclass="dropdown-item"href="../articles/other_pkg.html"><spanclass="fa fa-layer-group"></span> AMR & base R</a></li>
</ul><ulclass="navbar-nav"><liclass="active nav-item"><aclass="nav-link"href="../news/index.html"><spanclass="fa far fa-newspaper"></span> Changelog</a></li>
<liclass="nav-item"><aclass="external-link nav-link"href="https://github.com/msberends/AMR"><spanclass="fa fab fa-github"></span> Source Code</a></li>
<p><em>(this beta version will eventually become v3.0. We’re happy to reach a new major milestone soon, which will be all about the new One Health support! Install this beta using <ahref="https://msberends.github.io/AMR/#latest-development-version">the instructions here</a>.)</em></p>
<h5id="a-new-milestone-amr-v30-with-one-health-support--human--veterinary--environmental-2-1-1-9077">A New Milestone: AMR v3.0 with One Health Support (= Human + Veterinary + Environmental)<aclass="anchor"aria-label="anchor"href="#a-new-milestone-amr-v30-with-one-health-support--human--veterinary--environmental-2-1-1-9077"></a></h5>
<p>This package now supports not only tools for AMR data analysis in clinical settings, but also for veterinary and environmental microbiology. This was made possible through a collaboration with the <ahref="https://www.upei.ca/avc"class="external-link">University of Prince Edward Island’s Atlantic Veterinary College</a>, Canada. To celebrate this great improvement of the package, we also updated the package logo to reflect this change.</p>
<ul><li>Removed all functions and references that used the deprecated <code>rsi</code> class, which were all replaced with their <code>sir</code> equivalents over a year ago</li>
<ul><li>Function <code><ahref="../reference/as.sir.html">as.sir()</a></code> now has extensive support for animal breakpoints from CLSI. Use <code>breakpoint_type = "animal"</code> and set the <code>host</code> argument to a variable that contains animal species names.</li>
<li>The <code>clinical_breakpoints</code> data set contains all these breakpoints, and can be downloaded on our <ahref="https://msberends.github.io/AMR/articles/datasets.html">download page</a>.</li>
<li>The <code>antibiotics</code> data set contains all veterinary antibiotics, such as pradofloxacin and enrofloxacin. All WHOCC codes for veterinary use have been added as well.</li>
<li>
<code><ahref="../reference/ab_property.html">ab_atc()</a></code> now supports ATC codes of veterinary antibiotics (that all start with “Q”)</li>
<ul><li>EUCAST 2024 and CLSI 2024 are now supported, by adding all of their over 4,000 new clinical breakpoints to the <code>clinical_breakpoints</code> data set for usage in <code><ahref="../reference/as.sir.html">as.sir()</a></code>. EUCAST 2024 is now the new default guideline for all MIC and disks diffusion interpretations.</li>
<code><ahref="../reference/as.sir.html">as.sir()</a></code> now brings additional factor levels: “NI” for non-interpretable and “SDD” for susceptible dose-dependent. Currently, the <code>clinical_breakpoints</code> data set contains 24 breakpoints that can return the value “SDD” instead of “I”.</li>
<ul><li>New function group <code>scale_*_mic()</code>, namely: <code><ahref="../reference/plot.html">scale_x_mic()</a></code>, <code><ahref="../reference/plot.html">scale_y_mic()</a></code>, <code><ahref="../reference/plot.html">scale_colour_mic()</a></code> and <code><ahref="../reference/plot.html">scale_fill_mic()</a></code>. They are advanced ggplot2 extensions to allow easy plotting of MIC values. They allow for manual range definition and plotting missing intermediate log2 levels.</li>
<li>New function <code><ahref="../reference/as.mic.html">rescale_mic()</a></code>, which allows to rescale MIC values to a manually set range. This is the powerhouse behind the <code>scale_*_mic()</code> functions, but it can be used by users directly to e.g.compare equality in MIC distributions by rescaling them to the same range first.</li>
</ul></li>
<li>Microbiological taxonomy (<code>microorganisms</code> data set) updated to June 2024, with some exciting new features:
<ul><li>Added MycoBank as the primary taxonomic source for fungi
<ul><li>The <code>microorganisms</code> data set now contains additional columns <code>mycobank</code>, <code>mycobank_parent</code>, and <code>mycobank_renamed_to</code>
</li>
<li>New function <code><ahref="../reference/mo_property.html">mo_mycobank()</a></code> to get the MycoBank record number, analogous to existing functions <code><ahref="../reference/mo_property.html">mo_lpsn()</a></code> and <code><ahref="../reference/mo_property.html">mo_gbif()</a></code>
</li>
</ul></li>
<li>We’ve welcomed over 2,000 records from 2023, over 900 from 2024, and many thousands of new fungi</li>
<ul><li>The <code><ahref="../reference/as.mo.html">as.mo()</a></code> function now includes a new argument, <code>only_fungi</code> (TRUE/FALSE), which limits the results to fungi only. Normally, bacteria are often prioritised by the algorithm, but setting <code>only_fungi = TRUE</code> ensures only fungi are returned.</li>
<li>You can also set this globally using the new R option <code>AMR_only_fungi</code>, e.g., <code>options(AMR_only_fungi = TRUE)</code>.</li>
<ul><li>New function <code><ahref="../reference/mo_property.html">mo_group_members()</a></code> to retrieve the member microorganisms of a microorganism group. For example, <code>mo_group_members("Strep group C")</code> returns a vector of all microorganisms that are in that group.</li>
<ul><li>It is now possible to use column names for argument <code>ab</code>, <code>mo</code>, and <code>uti</code>: <code>as.sir(..., ab = "column1", mo = "column2", uti = "column3")</code>. This greatly improves the flexibility for users.</li>
<li>Users can now set their own criteria (using regular expressions) as to what should be considered S, I, R, SDD, and NI.</li>
<li>To get quantitative values, <code><ahref="https://rdrr.io/r/base/double.html"class="external-link">as.double()</a></code> on a <code>sir</code> object will return 1 for S, 2 for SDD/I, and 3 for R (NI will become <code>NA</code>). Other functions using <code>sir</code> classes (e.g., <code><ahref="https://rdrr.io/r/base/summary.html"class="external-link">summary()</a></code>) are updated to reflect the change to contain NI and SDD.</li>
<ul><li>Added “clindamycin inducible screening” as <code>CLI1</code>. Since clindamycin is a lincosamide, the antibiotic selector <code><ahref="../reference/antibiotic_class_selectors.html">lincosamides()</a></code> now contains the argument <code>only_treatable = TRUE</code> (similar to other antibiotic selectors that contain non-treatable drugs)</li>
<li>Added Amorolfine (<code>AMO</code>, D01AE16), which is now also part of the <code><ahref="../reference/antibiotic_class_selectors.html">antifungals()</a></code> selector</li>
<ul><li>Added selectors <code><ahref="../reference/antibiotic_class_selectors.html">nitrofurans()</a></code> and <code><ahref="../reference/antibiotic_class_selectors.html">rifamycins()</a></code>
</li>
<li>When using antibiotic selectors such as <code><ahref="../reference/antibiotic_class_selectors.html">aminoglycosides()</a></code> that exclude non-treatable drugs like gentamicin-high, the function now always returns a warning that these can be included using <code>only_treatable = FALSE</code>
<li>Added new argument <code>keep_operators</code> to <code><ahref="../reference/as.mic.html">as.mic()</a></code>. This can be <code>"all"</code> (default), <code>"none"</code>, or <code>"edges"</code>. This argument is also available in the new <code><ahref="../reference/as.mic.html">rescale_mic()</a></code> and <code>scale_*_mic()</code> functions.</li>
<li>Comparisons of MIC values are now more strict. For example, <code>>32</code> is higher than (and never equal to) <code>32</code>. Thus, <code>as.mic(">32") == as.mic(32)</code> now returns <code>FALSE</code>, and <code>as.mic(">32") > as.mic(32)</code> now returns <code>TRUE</code>.</li>
<li>Sorting of MIC values (using <code><ahref="https://rdrr.io/r/base/sort.html"class="external-link">sort()</a></code>) was fixed in the same manner; <code><0.001</code> now gets sorted before <code>0.001</code>, and <code>>0.001</code> gets sorted after <code>0.001</code>.</li>
<code><ahref="../reference/custom_eucast_rules.html">custom_eucast_rules()</a></code> now supports multiple antibiotics and antibiotic groups to be affected by a single rule</li>
<code><ahref="../reference/mo_property.html">mo_info()</a></code> now contains an extra element <code>group_members</code>, with the contents of the new <code><ahref="../reference/mo_property.html">mo_group_members()</a></code> function</li>
<li>Greatly improved <code>vctrs</code> integration, a Tidyverse package working in the background for many Tidyverse functions. For users, this means that functions such as <code>dplyr</code>’s <code><ahref="https://dplyr.tidyverse.org/reference/bind_rows.html"class="external-link">bind_rows()</a></code>, <code><ahref="https://dplyr.tidyverse.org/reference/rowwise.html"class="external-link">rowwise()</a></code> and <code><ahref="https://dplyr.tidyverse.org/reference/c_across.html"class="external-link">c_across()</a></code> are now supported for e.g.columns of class <code>mic</code>. Despite this, this <code>AMR</code> package is still zero-dependent on any other package, including <code>dplyr</code> and <code>vctrs</code>.</li>
<li>Improved overall algorithm of <code><ahref="../reference/as.mo.html">as.mo()</a></code> for better performance and accuracy. Specifically, more weight is given to genus and species combinations in cases where the subspecies is miswritten, so that the result will be the correct genus and species.</li>
<ul><li>Fix for selecting first isolates using the phenotype-based method
<ul><li>This included too many isolates when patients had altering antibiograms within the same bacterial species</li>
<li>See for more info <ahref="https://github.com/msberends/AMR/issues/122"class="external-link">our issue </a><ahref="https://github.com/msberends/AMR/issues/122"class="external-link">#122</a>
</li>
</ul></li>
<li>Added 1,366 LOINC codes to the <code>antibiotics</code> data set and updated to the latest version (LOINC v2.76)</li>
<p><code>AMR</code> (for R). Free and open-source, licenced under the <atarget="_blank"href="https://github.com/msberends/AMR/blob/main/LICENSE"class="external-link">GNU General Public License version 2.0 (GPL-2)</a>.<br>Developed at the <atarget="_blank"href="https://www.rug.nl"class="external-link">University of Groningen</a> and <atarget="_blank"href="https://www.umcg.nl"class="external-link">University Medical Center Groningen</a> in The Netherlands.</p>