Built site for AMR@3.1.0.9018: 77b6cb1

This commit is contained in:
github-actions committed 2026-11-09 20:39:34 +00:00
1 parent e78292e3d5
commit e7d6f0c852
101 files changed
+142 -104

No files matched your search

+11 -6
View File
@@ -7,7 +7,7 @@
<a class="navbar-brand me-2" href="../index.html">AMR (for R)</a>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9017</small>
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">3.1.0.9018</small>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
@@ -49,10 +49,10 @@
</div>
<div class="section level2">
<h2 class="pkg-version" data-toc-text="3.1.0.9017" id="amr-3109017">AMR 3.1.0.9017<a class="anchor" aria-label="anchor" href="#amr-3109017"></a></h2>
<h2 class="pkg-version" data-toc-text="3.1.0.9018" id="amr-3109018">AMR 3.1.0.9018<a class="anchor" aria-label="anchor" href="#amr-3109018"></a></h2>
<p>This version fixes a critical bug in WISCA that biased all coverage estimates of <code><a href="../reference/antibiogram.html">wisca()</a></code> and <code>antibiogram(..., wisca = TRUE)</code> downwards since AMR 3.0.0. Users are strongly advised to re-run their WISCA analyses.</p>
<div class="section level4">
<h4 id="breaking-3-1-0-9017">Breaking<a class="anchor" aria-label="anchor" href="#breaking-3-1-0-9017"></a></h4>
<h4 id="breaking-3-1-0-9018">Breaking<a class="anchor" aria-label="anchor" href="#breaking-3-1-0-9018"></a></h4>
<ul><li>
<code><a href="../reference/mo_property.html">mo_shortname()</a></code> now returns the serovar for <em>Salmonella</em> serovars, e.g., <code>"S. Typhi"</code> and <code>"S. Goldcoast"</code> instead of <code>"S. enterica"</code>. As this is the default for <code><a href="../reference/bug_drug_combinations.html">bug_drug_combinations()</a></code> and short names in <code><a href="../reference/antibiogram.html">antibiogram()</a></code>, serovars are no longer merged in their results. Use <code>FUN = function(x) paste(mo_genus(x), mo_species(x))</code> in <code><a href="../reference/bug_drug_combinations.html">bug_drug_combinations()</a></code> to group them by species (<a href="https://github.com/msberends/AMR/issues/341" class="external-link">#341</a>)</li>
<li>
@@ -61,16 +61,17 @@
<code><a href="../reference/mdro.html">mdro()</a></code> now applies the rule for <em>Salmonella</em> Typhi in the EUCAST guidelines, i.e., resistance to carbapenems (and fluoroquinolones in <code>"EUCAST3.1"</code>). This rule never applied before, so these isolates were wrongly classified as negative (<a href="https://github.com/msberends/AMR/issues/341" class="external-link">#341</a>)</li>
</ul></div>
<div class="section level4">
<h4 id="new-3-1-0-9017">New<a class="anchor" aria-label="anchor" href="#new-3-1-0-9017"></a></h4>
<h4 id="new-3-1-0-9018">New<a class="anchor" aria-label="anchor" href="#new-3-1-0-9018"></a></h4>
<ul><li>
<strong>Taxonomic names in plots</strong>
<ul><li>New function <code><a href="../reference/plot.html">labels_taxonomy()</a></code> to print taxonomic names in axis and legend labels in italics, which can directly be used as labeller in <code>ggplot2</code> (e.g., <code>scale_x_discrete(labels = labels_taxonomy)</code>) and in base R plots</li>
<li>
<code><a href="../reference/italicise_taxonomy.html">italicise_taxonomy()</a></code> gained <code>type = "plotmath"</code>, which returns an expression vector for titles, axes and legends in plots</li>
<li>All plotting functions now print taxonomic names in italics using <code><a href="../reference/plot.html">labels_taxonomy()</a></code>: the facets and titles of <code><a href="https://ggplot2.tidyverse.org/reference/autoplot.html" class="external-link">autoplot()</a></code> and <code><a href="../reference/plot.html">plot()</a></code> for antibiograms, the legend of <code><a href="../reference/antibiogram.html">wisca_plot()</a></code> (which previously italicised all its entries, including e.g. “CoNS”), the axes, legends and facets of <code><a href="../reference/ggplot_sir.html">ggplot_sir()</a></code> and <code><a href="../reference/plot.html">facet_sir()</a></code>, the labels and legend of <code><a href="../reference/ggplot_pca.html">ggplot_pca()</a></code>, and the subtitles of <code><a href="../reference/plot.html">plot()</a></code> and <code><a href="https://ggplot2.tidyverse.org/reference/autoplot.html" class="external-link">autoplot()</a></code> for MIC and disk diffusion values (which previously italicised the whole name, e.g. “Coagulase-negative Staphylococcus (CoNS)”)</li>
</ul></li>
</ul></div>
<div class="section level4">
<h4 id="changed-3-1-0-9017">Changed<a class="anchor" aria-label="anchor" href="#changed-3-1-0-9017"></a></h4>
<h4 id="changed-3-1-0-9018">Changed<a class="anchor" aria-label="anchor" href="#changed-3-1-0-9018"></a></h4>
<ul><li>
<code><a href="../reference/italicise_taxonomy.html">italicise_taxonomy()</a></code>
<ul><li>Species and subspecies names are now only italicised after a genus, an abbreviated genus, or another species or subspecies name, so that ordinary words such as “coli” or “major” stay upright. <em>Salmonella</em> serovars (such as Typhimurium) and groups are no longer italicised, and “subsp.”, “ssp.” and “var.” stay upright between italicised names</li>
@@ -81,6 +82,10 @@
</li>
<li>Taxonomic names are now looked up once per session, making the function considerably faster for long vectors</li>
</ul></li>
<li>
<code><a href="../reference/ggplot_pca.html">ggplot_pca()</a></code>
<ul><li>Fixed an error when setting <code>groups</code> together with <code>labels</code>, and setting <code>groups</code> without <code>labels</code> now colours the points by these groups instead of using them as labels, as documented</li>
</ul></li>
<li>WISCA (<code><a href="../reference/antibiogram.html">wisca()</a></code> and <code>antibiogram(..., wisca = TRUE)</code>)
<ul><li>Fixed a critical bug that systematically underestimated the coverage of every WISCA since AMR 3.0.0. Pathogens absent from a syndromic group, and pathogens without any test result for a regimen, were still included in the model with only prior information: each added a prior weight of 1 to the pathogen incidence, and untested pathogens kept their full incidence weight while counting as about 50% susceptible. The bias was largest for stratified analyses (e.g., up to 14 percentage points for meropenem in random strata of <code>example_isolates</code>). Now, only pathogens that occur in a group and have at least one test result for the regimen are included. Please re-run all WISCA analyses (<a href="https://github.com/msberends/AMR/issues/337" class="external-link">#337</a>)</li>
<li>
@@ -96,7 +101,7 @@
</ul></li>
</ul></div>
<div class="section level4">
<h4 id="other-3-1-0-9017">Other<a class="anchor" aria-label="anchor" href="#other-3-1-0-9017"></a></h4>
<h4 id="other-3-1-0-9018">Other<a class="anchor" aria-label="anchor" href="#other-3-1-0-9018"></a></h4>
<ul><li>The manual index on the website was rewritten to improve findability, with sections ordered by task and a filter field</li>
<li>Fixed the link to the copyright section and added MycoBank as a taxonomy source in the <em>Welcome to AMR</em> vignette (<a href="https://github.com/msberends/AMR/issues/325" class="external-link">#325</a>)</li>
</ul></div>