Built site for AMR: 2.0.0.9030@a4e2e25
2
404.html
@ -36,7 +36,7 @@
|
||||
|
||||
<a class="navbar-brand me-2" href="https://msberends.github.io/AMR/index.html">AMR (for R)</a>
|
||||
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -38,7 +38,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
@ -204,7 +204,7 @@
|
||||
website update since they are based on randomly created values and the
|
||||
page was written in <a href="https://rmarkdown.rstudio.com/" class="external-link">R
|
||||
Markdown</a>. However, the methodology remains unchanged. This page was
|
||||
generated on 08 July 2023.</p>
|
||||
generated on 10 July 2023.</p>
|
||||
<div class="section level2">
|
||||
<h2 id="introduction">Introduction<a class="anchor" aria-label="anchor" href="#introduction"></a>
|
||||
</h2>
|
||||
@ -260,21 +260,21 @@ make the structure of your data generally look like this:</p>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr class="odd">
|
||||
<td align="center">2023-07-08</td>
|
||||
<td align="center">2023-07-10</td>
|
||||
<td align="center">abcd</td>
|
||||
<td align="center">Escherichia coli</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">S</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="center">2023-07-08</td>
|
||||
<td align="center">2023-07-10</td>
|
||||
<td align="center">abcd</td>
|
||||
<td align="center">Escherichia coli</td>
|
||||
<td align="center">S</td>
|
||||
<td align="center">R</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="center">2023-07-08</td>
|
||||
<td align="center">2023-07-10</td>
|
||||
<td align="center">efgh</td>
|
||||
<td align="center">Escherichia coli</td>
|
||||
<td align="center">R</td>
|
||||
|
@ -38,7 +38,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -38,7 +38,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
@ -402,17 +402,17 @@ names or codes, this would have worked exactly the same way:</p>
|
||||
<div class="sourceCode" id="cb8"><pre class="downlit sourceCode r">
|
||||
<code class="sourceCode R"><span><span class="fu"><a href="https://rdrr.io/r/utils/head.html" class="external-link">head</a></span><span class="op">(</span><span class="va">my_TB_data</span><span class="op">)</span></span>
|
||||
<span><span class="co">#> rifampicin isoniazid gatifloxacin ethambutol pyrazinamide moxifloxacin</span></span>
|
||||
<span><span class="co">#> 1 S R R R I I</span></span>
|
||||
<span><span class="co">#> 2 I R I I S I</span></span>
|
||||
<span><span class="co">#> 3 I R R I I S</span></span>
|
||||
<span><span class="co">#> 4 R I I S S I</span></span>
|
||||
<span><span class="co">#> 5 S I R S I I</span></span>
|
||||
<span><span class="co">#> 6 S S I I R I</span></span>
|
||||
<span><span class="co">#> 1 I I R I S S</span></span>
|
||||
<span><span class="co">#> 2 R R S I S S</span></span>
|
||||
<span><span class="co">#> 3 R S S S S R</span></span>
|
||||
<span><span class="co">#> 4 S I S S I S</span></span>
|
||||
<span><span class="co">#> 5 S I R R R R</span></span>
|
||||
<span><span class="co">#> 6 R R I R R S</span></span>
|
||||
<span><span class="co">#> kanamycin</span></span>
|
||||
<span><span class="co">#> 1 R</span></span>
|
||||
<span><span class="co">#> 2 S</span></span>
|
||||
<span><span class="co">#> 3 S</span></span>
|
||||
<span><span class="co">#> 4 S</span></span>
|
||||
<span><span class="co">#> 2 R</span></span>
|
||||
<span><span class="co">#> 3 I</span></span>
|
||||
<span><span class="co">#> 4 I</span></span>
|
||||
<span><span class="co">#> 5 R</span></span>
|
||||
<span><span class="co">#> 6 R</span></span></code></pre></div>
|
||||
<p>We can now add the interpretation of MDR-TB to our data set. You can
|
||||
@ -455,40 +455,40 @@ Unique: 5</p>
|
||||
<tr class="odd">
|
||||
<td align="left">1</td>
|
||||
<td align="left">Mono-resistant</td>
|
||||
<td align="right">3196</td>
|
||||
<td align="right">63.92%</td>
|
||||
<td align="right">3196</td>
|
||||
<td align="right">63.92%</td>
|
||||
<td align="right">3172</td>
|
||||
<td align="right">63.44%</td>
|
||||
<td align="right">3172</td>
|
||||
<td align="right">63.44%</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">2</td>
|
||||
<td align="left">Negative</td>
|
||||
<td align="right">1028</td>
|
||||
<td align="right">20.56%</td>
|
||||
<td align="right">4224</td>
|
||||
<td align="right">84.48%</td>
|
||||
<td align="right">1056</td>
|
||||
<td align="right">21.12%</td>
|
||||
<td align="right">4228</td>
|
||||
<td align="right">84.56%</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">3</td>
|
||||
<td align="left">Multi-drug-resistant</td>
|
||||
<td align="right">446</td>
|
||||
<td align="right">8.92%</td>
|
||||
<td align="right">4670</td>
|
||||
<td align="right">93.40%</td>
|
||||
<td align="right">423</td>
|
||||
<td align="right">8.46%</td>
|
||||
<td align="right">4651</td>
|
||||
<td align="right">93.02%</td>
|
||||
</tr>
|
||||
<tr class="even">
|
||||
<td align="left">4</td>
|
||||
<td align="left">Poly-resistant</td>
|
||||
<td align="right">231</td>
|
||||
<td align="right">4.62%</td>
|
||||
<td align="right">4901</td>
|
||||
<td align="right">98.02%</td>
|
||||
<td align="right">251</td>
|
||||
<td align="right">5.02%</td>
|
||||
<td align="right">4902</td>
|
||||
<td align="right">98.04%</td>
|
||||
</tr>
|
||||
<tr class="odd">
|
||||
<td align="left">5</td>
|
||||
<td align="left">Extensively drug-resistant</td>
|
||||
<td align="right">99</td>
|
||||
<td align="right">1.98%</td>
|
||||
<td align="right">98</td>
|
||||
<td align="right">1.96%</td>
|
||||
<td align="right">5000</td>
|
||||
<td align="right">100.00%</td>
|
||||
</tr>
|
||||
|
@ -38,7 +38,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -38,7 +38,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -38,7 +38,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
@ -193,7 +193,7 @@
|
||||
<main id="main" class="col-md-9"><div class="page-header">
|
||||
<img src="../logo.svg" class="logo" alt=""><h1>Data sets for download / own use</h1>
|
||||
|
||||
<h4 data-toc-skip class="date">08 July 2023</h4>
|
||||
<h4 data-toc-skip class="date">10 July 2023</h4>
|
||||
|
||||
<small class="dont-index">Source: <a href="https://github.com/msberends/AMR/blob/HEAD/vignettes/datasets.Rmd" class="external-link"><code>vignettes/datasets.Rmd</code></a></small>
|
||||
<div class="d-none name"><code>datasets.Rmd</code></div>
|
||||
@ -913,43 +913,43 @@ inhibitors</td>
|
||||
<code>clinical_breakpoints</code>: Interpretation from MIC values
|
||||
& disk diameters to SIR<a class="anchor" aria-label="anchor" href="#clinical_breakpoints-interpretation-from-mic-values-disk-diameters-to-sir"></a>
|
||||
</h2>
|
||||
<p>A data set with 28 454 rows and 12 columns, containing the following
|
||||
<p>A data set with 28 885 rows and 12 columns, containing the following
|
||||
column names:<br><em>guideline</em>, <em>type</em>, <em>method</em>, <em>site</em>,
|
||||
<em>mo</em>, <em>rank_index</em>, <em>ab</em>, <em>ref_tbl</em>,
|
||||
<em>disk_dose</em>, <em>breakpoint_S</em>, <em>breakpoint_R</em>, and
|
||||
<em>uti</em>.</p>
|
||||
<p>This data set is in R available as <code>clinical_breakpoints</code>,
|
||||
after you load the <code>AMR</code> package.</p>
|
||||
<p>It was last updated on 8 July 2023 15:30:05 UTC. Find more info about
|
||||
the structure of this data set <a href="https://msberends.github.io/AMR/reference/clinical_breakpoints.html">here</a>.</p>
|
||||
<p>It was last updated on 10 July 2023 11:41:52 UTC. Find more info
|
||||
about the structure of this data set <a href="https://msberends.github.io/AMR/reference/clinical_breakpoints.html">here</a>.</p>
|
||||
<p><strong>Direct download links:</strong></p>
|
||||
<ul>
|
||||
<li>Download as <a href="https://github.com/msberends/AMR/raw/main/data-raw/../data-raw/clinical_breakpoints.rds" class="external-link">original
|
||||
R Data Structure (RDS) file</a> (57 kB)<br>
|
||||
R Data Structure (RDS) file</a> (59 kB)<br>
|
||||
</li>
|
||||
<li>Download as <a href="https://github.com/msberends/AMR/raw/main/data-raw/../data-raw/clinical_breakpoints.txt" class="external-link">tab-separated
|
||||
text file</a> (3.2 MB)<br>
|
||||
</li>
|
||||
<li>Download as <a href="https://github.com/msberends/AMR/raw/main/data-raw/../data-raw/clinical_breakpoints.xlsx" class="external-link">Microsoft
|
||||
Excel workbook</a> (1.2 MB)<br>
|
||||
Excel workbook</a> (1.3 MB)<br>
|
||||
</li>
|
||||
<li>Download as <a href="https://github.com/msberends/AMR/raw/main/data-raw/../data-raw/clinical_breakpoints.feather" class="external-link">Apache
|
||||
Feather file</a> (1.1 MB)<br>
|
||||
Feather file</a> (1.2 MB)<br>
|
||||
</li>
|
||||
<li>Download as <a href="https://github.com/msberends/AMR/raw/main/data-raw/../data-raw/clinical_breakpoints.parquet" class="external-link">Apache
|
||||
Parquet file</a> (92 kB)<br>
|
||||
Parquet file</a> (87 kB)<br>
|
||||
</li>
|
||||
<li>Download as <a href="https://github.com/msberends/AMR/raw/main/data-raw/../data-raw/clinical_breakpoints.sas" class="external-link">SAS
|
||||
data (SAS) file</a> (3.6 MB)<br>
|
||||
</li>
|
||||
<li>Download as <a href="https://github.com/msberends/AMR/raw/main/data-raw/../data-raw/clinical_breakpoints.xpt" class="external-link">SAS
|
||||
transport (XPT) file</a> (7.6 MB)<br>
|
||||
transport (XPT) file</a> (7.7 MB)<br>
|
||||
</li>
|
||||
<li>Download as <a href="https://github.com/msberends/AMR/raw/main/data-raw/../data-raw/clinical_breakpoints.sav" class="external-link">IBM
|
||||
SPSS Statistics data file</a> (4.4 MB)<br>
|
||||
</li>
|
||||
<li>Download as <a href="https://github.com/msberends/AMR/raw/main/data-raw/../data-raw/clinical_breakpoints.dta" class="external-link">Stata
|
||||
DTA file</a> (7.5 MB)</li>
|
||||
DTA file</a> (7.6 MB)</li>
|
||||
</ul>
|
||||
<div class="section level3">
|
||||
<h3 id="source-3">Source<a class="anchor" aria-label="anchor" href="#source-3"></a>
|
||||
@ -1139,7 +1139,7 @@ DTA file</a> (9.5 MB)</li>
|
||||
<h3 id="source-4">Source<a class="anchor" aria-label="anchor" href="#source-4"></a>
|
||||
</h3>
|
||||
<p>This data set contains all defined intrinsic resistance by EUCAST of
|
||||
all bug-drug combinations, and is based on <a href="https://www.eucast.org/expert_rules_and_expected_phenotypes/" class="external-link">‘EUCAST
|
||||
all bug-drug combinations, and is based on <a href="https://www.eucast.org/expert_rules_and_expected_phenotypes" class="external-link">‘EUCAST
|
||||
Expert Rules’ and ‘EUCAST Intrinsic Resistance and Unusual Phenotypes’
|
||||
v3.3</a> (2021).</p>
|
||||
</div>
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -38,7 +38,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -38,7 +38,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -38,7 +38,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -42,7 +42,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
@ -159,9 +159,9 @@
|
||||
</div>
|
||||
|
||||
<div class="section level2">
|
||||
<h2 class="pkg-version" data-toc-text="2.0.0.9028" id="amr-2009028">AMR 2.0.0.9028<a class="anchor" aria-label="anchor" href="#amr-2009028"></a></h2>
|
||||
<h2 class="pkg-version" data-toc-text="2.0.0.9030" id="amr-2009030">AMR 2.0.0.9030<a class="anchor" aria-label="anchor" href="#amr-2009030"></a></h2>
|
||||
<div class="section level3">
|
||||
<h3 id="new-2-0-0-9028">New<a class="anchor" aria-label="anchor" href="#new-2-0-0-9028"></a></h3>
|
||||
<h3 id="new-2-0-0-9030">New<a class="anchor" aria-label="anchor" href="#new-2-0-0-9030"></a></h3>
|
||||
<ul><li>Clinical breakpoints and intrinsic resistance of EUCAST 2023 and CLSI 2023 have been added for <code><a href="../reference/as.sir.html">as.sir()</a></code>. EUCAST 2023 (v13.0) is now the new default guideline for all MIC and disks diffusion interpretations</li>
|
||||
<li>The EUCAST dosage guideline of v13.0 has been added to the <code>dosage</code> data set</li>
|
||||
<li>ECOFF: the <code>clinical_breakpoints</code> data set now contains epidemiological cut-off (ECOFF) values. These ECOFFs can be used for MIC/disk interpretation using <code>as.sir(..., breakpoint_type = "ECOFF")</code>, which is an important new addition for veterinary microbiology.</li>
|
||||
@ -176,10 +176,16 @@
|
||||
<li>Added microbial codes for Gram-negative/positive anaerobic bacteria</li>
|
||||
</ul></div>
|
||||
<div class="section level3">
|
||||
<h3 id="changed-2-0-0-9028">Changed<a class="anchor" aria-label="anchor" href="#changed-2-0-0-9028"></a></h3>
|
||||
<h3 id="changed-2-0-0-9030">Changed<a class="anchor" aria-label="anchor" href="#changed-2-0-0-9030"></a></h3>
|
||||
<ul><li>Updated algorithm of <code><a href="../reference/as.mo.html">as.mo()</a></code> by giving more weight to fungi</li>
|
||||
<li>
|
||||
<code><a href="../reference/mo_property.html">mo_rank()</a></code> now returns <code>NA</code> for ‘unknown’ microorganisms (<code>B_ANAER</code>, <code>B_ANAER-NEG</code>, <code>B_ANAER-POS</code>, <code>B_GRAMN</code>, <code>B_GRAMP</code>, <code>F_FUNGUS</code>, <code>F_YEAST</code>, and <code>UNKNOWN</code>)</li>
|
||||
<li>When printing MO codes in a tibble, a mouse-hover now shows the full name of the microorganism</li>
|
||||
<li>Plots for MIC and disk diffusion values:
|
||||
<ul><li>Now have settable arguments for breakpoint type and PK/PD, like <code><a href="../reference/as.sir.html">as.sir()</a></code>
|
||||
</li>
|
||||
<li>Will now contain the name of the guideline table in the subtitle of the plot</li>
|
||||
</ul></li>
|
||||
<li>Fixed formatting for <code><a href="../reference/as.sir.html">sir_interpretation_history()</a></code>
|
||||
</li>
|
||||
<li>Fixed some WHONET codes for microorganisms and consequently a couple of entries in <code>clinical_breakpoints</code>
|
||||
@ -198,6 +204,8 @@
|
||||
</li>
|
||||
<li>Fixed bug for indicating UTIs in <code><a href="../reference/as.sir.html">as.sir()</a></code>
|
||||
</li>
|
||||
<li>Greatly improved speed of <code><a href="../reference/as.sir.html">as.sir()</a></code>
|
||||
</li>
|
||||
</ul></div>
|
||||
</div>
|
||||
<div class="section level2">
|
||||
|
@ -11,7 +11,7 @@ articles:
|
||||
other_pkg: other_pkg.html
|
||||
resistance_predict: resistance_predict.html
|
||||
welcome_to_AMR: welcome_to_AMR.html
|
||||
last_built: 2023-07-08T19:06Z
|
||||
last_built: 2023-07-10T14:49Z
|
||||
urls:
|
||||
reference: https://msberends.github.io/AMR/reference
|
||||
article: https://msberends.github.io/AMR/articles
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -24,7 +24,7 @@ The AMR package is available in English, Chinese, Czech, Danish, Dutch, Finnish,
|
||||
|
||||
<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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 16 KiB |
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
@ -222,16 +222,16 @@
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="va">df</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> birth_date age age_exact age_at_y2k</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 1992-10-07 30 30.75068 7</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 1965-08-18 57 57.88767 34</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 1988-10-10 34 34.74247 11</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 1945-12-13 77 77.56712 54</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 1934-04-13 89 89.23562 65</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 1973-08-13 49 49.90137 26</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 1945-05-18 78 78.13973 54</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 1949-08-21 73 73.87945 50</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 1939-12-12 83 83.56986 60</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 1941-03-27 82 82.28219 58</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 1931-12-21 91 91.55068 68</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 1942-05-14 81 81.15616 57</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 1958-04-02 65 65.27123 41</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 1947-07-06 76 76.01096 52</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 1953-12-17 69 69.56164 46</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 1988-05-23 35 35.13151 11</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 1987-03-04 36 36.35068 12</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 1945-08-19 77 77.89041 54</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 1959-03-20 64 64.30685 40</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 1957-04-12 66 66.24384 42</span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -12,7 +12,7 @@ In short, if you have a column name that resembles an antimicrobial drug, it wil
|
||||
|
||||
<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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
@ -279,7 +279,7 @@ In short, if you have a column name that resembles an antimicrobial drug, it wil
|
||||
<p>The <code>ab_class()</code> function can be used to filter/select on a manually defined antibiotic class. It searches for results in the <a href="antibiotics.html">antibiotics</a> data set within the columns <code>group</code>, <code>atc_group1</code> and <code>atc_group2</code>.</p>
|
||||
<p>The <code>ab_selector()</code> function can be used to internally filter the <a href="antibiotics.html">antibiotics</a> data set on any results, see <em>Examples</em>. It allows for filtering on a (part of) a certain name, and/or a group name or even a minimum of DDDs for oral treatment. This function yields the highest flexibility, but is also the least user-friendly, since it requires a hard-coded filter to set.</p>
|
||||
<p>The <code>administrable_per_os()</code> and <code>administrable_iv()</code> functions also rely on the <a href="antibiotics.html">antibiotics</a> data set - antibiotic columns will be matched where a DDD (defined daily dose) for resp. oral and IV treatment is available in the <a href="antibiotics.html">antibiotics</a> data set.</p>
|
||||
<p>The <code>not_intrinsic_resistant()</code> function can be used to only select antibiotic columns that pose no intrinsic resistance for the microorganisms in the data set. For example, if a data set contains only microorganism codes or names of <em>E. coli</em> and <em>K. pneumoniae</em> and contains a column "vancomycin", this column will be removed (or rather, unselected) using this function. It currently applies <a href="https://www.eucast.org/expert_rules_and_expected_phenotypes/" class="external-link">'EUCAST Expert Rules' and 'EUCAST Intrinsic Resistance and Unusual Phenotypes' v3.3</a> (2021) to determine intrinsic resistance, using the <code><a href="eucast_rules.html">eucast_rules()</a></code> function internally. Because of this determination, this function is quite slow in terms of performance.</p>
|
||||
<p>The <code>not_intrinsic_resistant()</code> function can be used to only select antibiotic columns that pose no intrinsic resistance for the microorganisms in the data set. For example, if a data set contains only microorganism codes or names of <em>E. coli</em> and <em>K. pneumoniae</em> and contains a column "vancomycin", this column will be removed (or rather, unselected) using this function. It currently applies <a href="https://www.eucast.org/expert_rules_and_expected_phenotypes" class="external-link">'EUCAST Expert Rules' and 'EUCAST Intrinsic Resistance and Unusual Phenotypes' v3.3</a> (2021) to determine intrinsic resistance, using the <code><a href="eucast_rules.html">eucast_rules()</a></code> function internally. Because of this determination, this function is quite slow in terms of performance.</p>
|
||||
</div>
|
||||
<div class="section level2">
|
||||
<h2 id="full-list-of-supported-antibiotic-classes">Full list of supported (antibiotic) classes<a class="anchor" aria-label="anchor" href="#full-list-of-supported-antibiotic-classes"></a></h2>
|
||||
@ -626,11 +626,11 @@ In short, if you have a column name that resembles an antimicrobial drug, it wil
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 5 × 1</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> kefzol</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><sir></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> S </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> S </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> R </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> R </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> I </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">4</span> I </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">5</span> S </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">4</span> R </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">5</span> I </span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="st"><a href="https://dplyr.tidyverse.org" class="external-link">"dplyr"</a></span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span>
|
||||
<span class="r-in"><span> <span class="co"># get AMR for all aminoglycosides e.g., per ward:</span></span></span>
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
@ -241,8 +241,7 @@
|
||||
<span class="r-in"><span> guideline <span class="op">=</span> <span class="st">"EUCAST"</span></span></span>
|
||||
<span class="r-in"><span><span class="op">)</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: 'ampicillin' (AMP), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: 'ampicillin' (AMP), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'sir'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] R</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
@ -250,26 +249,18 @@
|
||||
<span class="r-in"><span><span class="fu"><a href="as.sir.html">as.sir</a></span><span class="op">(</span><span class="va">df</span>, uti <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: column 'AMP' (ampicillin), EUCAST</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: column 'AMP' (ampicillin), EUCAST</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: column 'CIP' (ciprofloxacin), EUCAST</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: column 'CIP' (ciprofloxacin), EUCAST</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: column 'GEN' (gentamicin), EUCAST</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: column 'GEN' (gentamicin), EUCAST</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: column 'TOB' (tobramycin), EUCAST</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: column 'TOB' (tobramycin), EUCAST</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> microorganism AMP CIP GEN TOB</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 Escherichia coli S <NA> S S</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 Escherichia coli <NA> <NA> <NA> <NA></span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 51 KiB |
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 50 KiB |
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
@ -271,8 +271,7 @@
|
||||
<span class="r-in"><span> guideline <span class="op">=</span> <span class="st">"EUCAST"</span></span></span>
|
||||
<span class="r-in"><span><span class="op">)</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'AMX' (amoxicillin), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'AMX' (amoxicillin), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> NOTE </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • Multiple breakpoints available for amoxicillin (AMX) in Streptococcus</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> pneumoniae - assuming body site 'Meningitis'.</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'sir'</span>
|
||||
@ -284,8 +283,7 @@
|
||||
<span class="r-in"><span> guideline <span class="op">=</span> <span class="st">"EUCAST"</span></span></span>
|
||||
<span class="r-in"><span><span class="op">)</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'AMX' (amoxicillin), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'AMX' (amoxicillin), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> NOTE </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • Multiple breakpoints available for amoxicillin (AMX) in Streptococcus</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> pneumoniae - assuming body site 'Meningitis'.</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'sir'</span>
|
||||
@ -293,22 +291,22 @@
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># plot MIC values, see ?plot</span></span></span>
|
||||
<span class="r-in"><span><span class="fu"><a href="plot.html">plot</a></span><span class="op">(</span><span class="va">mic_data</span><span class="op">)</span></span></span>
|
||||
<span class="r-plt img"><img src="as.mic-1.png" alt="" width="700" height="433"></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in plot_colours_subtitle_guideline(x = x, mo = mo, ab = ab, guideline = guideline, colours_SIR = colours_SIR, fn = as.mic, language = language, method = "MIC", include_PKPD = include_PKPD, breakpoint_type = breakpoint_type, ...):</span> object 'sir_history' not found</span>
|
||||
<span class="r-in"><span><span class="fu"><a href="plot.html">plot</a></span><span class="op">(</span><span class="va">mic_data</span>, mo <span class="op">=</span> <span class="st">"E. coli"</span>, ab <span class="op">=</span> <span class="st">"cipro"</span><span class="op">)</span></span></span>
|
||||
<span class="r-plt img"><img src="as.mic-2.png" alt="" width="700" height="433"></span>
|
||||
<span class="r-plt img"><img src="as.mic-1.png" alt="" width="700" height="433"></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="st"><a href="https://ggplot2.tidyverse.org" class="external-link">"ggplot2"</a></span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span>
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://ggplot2.tidyverse.org/reference/autoplot.html" class="external-link">autoplot</a></span><span class="op">(</span><span class="va">mic_data</span>, mo <span class="op">=</span> <span class="st">"E. coli"</span>, ab <span class="op">=</span> <span class="st">"cipro"</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-plt img"><img src="as.mic-3.png" alt="" width="700" height="433"></span>
|
||||
<span class="r-plt img"><img src="as.mic-2.png" alt="" width="700" height="433"></span>
|
||||
<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="st"><a href="https://ggplot2.tidyverse.org" class="external-link">"ggplot2"</a></span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span>
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://ggplot2.tidyverse.org/reference/autoplot.html" class="external-link">autoplot</a></span><span class="op">(</span><span class="va">mic_data</span>, mo <span class="op">=</span> <span class="st">"E. coli"</span>, ab <span class="op">=</span> <span class="st">"cipro"</span>, language <span class="op">=</span> <span class="st">"nl"</span><span class="op">)</span> <span class="co"># Dutch</span></span></span>
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-plt img"><img src="as.mic-4.png" alt="" width="700" height="433"></span>
|
||||
<span class="r-plt img"><img src="as.mic-3.png" alt="" width="700" height="433"></span>
|
||||
<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="st"><a href="https://ggplot2.tidyverse.org" class="external-link">"ggplot2"</a></span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span>
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://ggplot2.tidyverse.org/reference/autoplot.html" class="external-link">autoplot</a></span><span class="op">(</span><span class="va">mic_data</span>, mo <span class="op">=</span> <span class="st">"E. coli"</span>, ab <span class="op">=</span> <span class="st">"cipro"</span>, language <span class="op">=</span> <span class="st">"uk"</span><span class="op">)</span> <span class="co"># Ukrainian</span></span></span>
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-plt img"><img src="as.mic-5.png" alt="" width="700" height="433"></span>
|
||||
<span class="r-plt img"><img src="as.mic-4.png" alt="" width="700" height="433"></span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
@ -375,6 +375,11 @@
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'mo'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] B_URPLS_URLY B_URPLS_URLY B_URPLS_URLY B_URPLS_URLY</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># input will get cleaned up with the input given in the `cleaning_regex` argument,</span></span></span>
|
||||
<span class="r-in"><span><span class="co"># which defaults to `mo_cleaning_regex()`:</span></span></span>
|
||||
<span class="r-in"><span><span class="fu"><a href="https://rdrr.io/r/base/cat.html" class="external-link">cat</a></span><span class="op">(</span><span class="fu">mo_cleaning_regex</span><span class="op">(</span><span class="op">)</span>, <span class="st">"\n"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> ([^A-Za-z- \(\)\[\]{}]+|([({]|\[).+([})]|\])|(^| )(e?spp([^a-z]+|$)|e?ssp([^a-z]+|$)|serogr.?up[a-z]*|e?ss([^a-z]+|$)|e?sp([^a-z]+|$)|var([^a-z]+|$)|serovar[a-z]*|sube?species|biovar[a-z]*|e?species|Ig[ADEGM]|e?subsp|biotype|titer|dummy)) </span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="fu">as.mo</span><span class="op">(</span><span class="st">"Streptococcus group A"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'mo'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] B_STRPT_GRPA</span>
|
||||
|
@ -14,7 +14,7 @@ All breakpoints used for interpretation are publicly available in the clinical_b
|
||||
|
||||
<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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
@ -273,7 +273,7 @@ All breakpoints used for interpretation are publicly available in the clinical_b
|
||||
|
||||
|
||||
<dt>add_intrinsic_resistance</dt>
|
||||
<dd><p><em>(only useful when using a EUCAST guideline)</em> a <a href="https://rdrr.io/r/base/logical.html" class="external-link">logical</a> to indicate whether intrinsic antibiotic resistance must also be considered for applicable bug-drug combinations, meaning that e.g. ampicillin will always return "R" in <em>Klebsiella</em> species. Determination is based on the <a href="intrinsic_resistant.html">intrinsic_resistant</a> data set, that itself is based on <a href="https://www.eucast.org/expert_rules_and_expected_phenotypes/" class="external-link">'EUCAST Expert Rules' and 'EUCAST Intrinsic Resistance and Unusual Phenotypes' v3.3</a> (2021).</p></dd>
|
||||
<dd><p><em>(only useful when using a EUCAST guideline)</em> a <a href="https://rdrr.io/r/base/logical.html" class="external-link">logical</a> to indicate whether intrinsic antibiotic resistance must also be considered for applicable bug-drug combinations, meaning that e.g. ampicillin will always return "R" in <em>Klebsiella</em> species. Determination is based on the <a href="intrinsic_resistant.html">intrinsic_resistant</a> data set, that itself is based on <a href="https://www.eucast.org/expert_rules_and_expected_phenotypes" class="external-link">'EUCAST Expert Rules' and 'EUCAST Intrinsic Resistance and Unusual Phenotypes' v3.3</a> (2021).</p></dd>
|
||||
|
||||
|
||||
<dt>reference_data</dt>
|
||||
@ -353,7 +353,7 @@ All breakpoints used for interpretation are publicly available in the clinical_b
|
||||
<h3 id="machine-readable-clinical-breakpoints">Machine-Readable Clinical Breakpoints<a class="anchor" aria-label="anchor" href="#machine-readable-clinical-breakpoints"></a></h3>
|
||||
|
||||
|
||||
<p>The repository of this package <a href="https://github.com/msberends/AMR/blob/main/data-raw/clinical_breakpoints.txt" class="external-link">contains a machine-readable version</a> of all guidelines. This is a CSV file consisting of 28 454 rows and 12 columns. This file is machine-readable, since it contains one row for every unique combination of the test method (MIC or disk diffusion), the antimicrobial drug and the microorganism. <strong>This allows for easy implementation of these rules in laboratory information systems (LIS)</strong>. Note that it only contains interpretation guidelines for humans - interpretation guidelines from CLSI for animals were removed.</p>
|
||||
<p>The repository of this package <a href="https://github.com/msberends/AMR/blob/main/data-raw/clinical_breakpoints.txt" class="external-link">contains a machine-readable version</a> of all guidelines. This is a CSV file consisting of 28 885 rows and 12 columns. This file is machine-readable, since it contains one row for every unique combination of the test method (MIC or disk diffusion), the antimicrobial drug and the microorganism. <strong>This allows for easy implementation of these rules in laboratory information systems (LIS)</strong>. Note that it only contains interpretation guidelines for humans - interpretation guidelines from CLSI for animals were removed.</p>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
@ -370,7 +370,7 @@ All breakpoints used for interpretation are publicly available in the clinical_b
|
||||
<h2 id="interpretation-of-sir">Interpretation of SIR<a class="anchor" aria-label="anchor" href="#interpretation-of-sir"></a></h2>
|
||||
|
||||
|
||||
<p>In 2019, the European Committee on Antimicrobial Susceptibility Testing (EUCAST) has decided to change the definitions of susceptibility testing categories S, I, and R as shown below (<a href="https://www.eucast.org/newsiandr/" class="external-link">https://www.eucast.org/newsiandr/</a>):</p><ul><li><p><strong>S - Susceptible, standard dosing regimen</strong><br>
|
||||
<p>In 2019, the European Committee on Antimicrobial Susceptibility Testing (EUCAST) has decided to change the definitions of susceptibility testing categories S, I, and R as shown below (<a href="https://www.eucast.org/newsiandr" class="external-link">https://www.eucast.org/newsiandr</a>):</p><ul><li><p><strong>S - Susceptible, standard dosing regimen</strong><br>
|
||||
A microorganism is categorised as "Susceptible, standard dosing regimen", when there is a high likelihood of therapeutic success using a standard dosing regimen of the agent.</p></li>
|
||||
<li><p><strong>I - Susceptible, increased exposure</strong> <em><br>
|
||||
A microorganism is categorised as "Susceptible, Increased exposure</em>" when there is a high likelihood of therapeutic success because exposure to the agent is increased by adjusting the dosing regimen or by its concentration at the site of infection.</p></li>
|
||||
@ -533,48 +533,39 @@ A microorganism is categorised as "Resistant" when there is a high likelihood of
|
||||
<span class="r-in"><span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="fu">as.sir</span><span class="op">(</span><span class="va">df</span><span class="op">)</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: column 'AMP' (ampicillin), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: column 'AMP' (ampicillin), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • Multiple breakpoints available for ampicillin (AMP) in Escherichia coli -</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> assuming body site 'Intravenous'.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> NOTE </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: column 'CIP' (ciprofloxacin), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: column 'CIP' (ciprofloxacin), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • Multiple breakpoints available for ciprofloxacin (CIP) in Escherichia coli</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> - assuming body site 'Non-meningitis'.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> NOTE </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: column 'GEN' (gentamicin), EUCAST</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: column 'GEN' (gentamicin), EUCAST</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: column 'TOB' (tobramycin), EUCAST</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: column 'TOB' (tobramycin), EUCAST</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> => Assigning class 'sir' to already clean column 'ERY' (erythromycin)...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> microorganism AMP CIP GEN TOB ERY</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 Escherichia coli S I S S R</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 Escherichia coli I I <NA> <NA> R</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># return a 'logbook' about the results:</span></span></span>
|
||||
<span class="r-in"><span><span class="fu">sir_interpretation_history</span><span class="op">(</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 49 × 12</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 8 × 13</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> datetime index ab_input ab_guideline mo_input mo_guideline</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><dttm></span> <span style="color: #949494; font-style: italic;"><int></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><ab></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><mo></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> 2023-07-08 <span style="color: #949494;">19:07:23</span> 1 TOB TOB Escherichia… B_[ORD]_ENTRBCTR</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 2023-07-08 <span style="color: #949494;">19:07:22</span> 1 GEN GEN Escherichia… B_[ORD]_ENTRBCTR</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 2023-07-08 <span style="color: #949494;">19:07:22</span> 1 CIP CIP Escherichia… B_[ORD]_ENTRBCTR</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> 2023-07-08 <span style="color: #949494;">19:07:21</span> 1 AMP AMP Escherichia… B_[ORD]_ENTRBCTR</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 2023-07-08 <span style="color: #949494;">19:07:14</span> 1 CIP CIP B_ESCHR_COLI B_[ORD]_ENTRBCTR</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 2023-07-08 <span style="color: #949494;">19:07:14</span> 2 CIP CIP B_ESCHR_COLI B_[ORD]_ENTRBCTR</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> 2023-07-08 <span style="color: #949494;">19:07:14</span> 3 CIP CIP B_ESCHR_COLI B_[ORD]_ENTRBCTR</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> 2023-07-08 <span style="color: #949494;">19:07:14</span> 4 CIP CIP B_ESCHR_COLI B_[ORD]_ENTRBCTR</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 2023-07-08 <span style="color: #949494;">19:07:14</span> 5 CIP CIP B_ESCHR_COLI B_[ORD]_ENTRBCTR</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> 2023-07-08 <span style="color: #949494;">19:07:14</span> 6 CIP CIP B_ESCHR_COLI B_[ORD]_ENTRBCTR</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 39 more rows</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 6 more variables: guideline <chr>, ref_table <chr>, method <chr>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># input <dbl>, outcome <sir>, breakpoint_S_R <chr></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> 2023-07-10 <span style="color: #949494;">14:50:29</span> 1 CIP CIP Escherichia … UNKNOWN </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> 2023-07-10 <span style="color: #949494;">14:50:29</span> 1 AMP AMP Escherichia … UNKNOWN </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> 2023-07-10 <span style="color: #949494;">14:50:21</span> 1 AMX AMX B_STRPT_PNMN B_STRPT_PNMN</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">4</span> 2023-07-10 <span style="color: #949494;">14:50:21</span> 2 AMX AMX B_STRPT_PNMN B_STRPT_PNMN</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">5</span> 2023-07-10 <span style="color: #949494;">14:50:21</span> 3 AMX AMX B_STRPT_PNMN B_STRPT_PNMN</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">6</span> 2023-07-10 <span style="color: #949494;">14:50:21</span> 4 AMX AMX B_STRPT_PNMN B_STRPT_PNMN</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">7</span> 2023-07-10 <span style="color: #949494;">14:50:21</span> 1 AMX AMX B_STRPT_PNMN B_STRPT_PNMN</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">8</span> 2023-07-10 <span style="color: #949494;">14:50:20</span> 1 ampicillin AMP Strep pneu B_STRPT_PNMN</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 7 more variables: guideline <chr>, ref_table <chr>, uti <lgl>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># method <chr>, input <dbl>, outcome <sir>, breakpoint_S_R <chr></span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># for single values</span></span></span>
|
||||
<span class="r-in"><span><span class="fu">as.sir</span><span class="op">(</span></span></span>
|
||||
@ -584,8 +575,7 @@ A microorganism is categorised as "Resistant" when there is a high likelihood of
|
||||
<span class="r-in"><span> guideline <span class="op">=</span> <span class="st">"EUCAST"</span></span></span>
|
||||
<span class="r-in"><span><span class="op">)</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'AMP' (ampicillin), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'AMP' (ampicillin), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> NOTE </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • Multiple breakpoints available for ampicillin (AMP) in Streptococcus</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> pneumoniae - assuming body site 'Non-meningitis'.</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'sir'</span>
|
||||
@ -598,8 +588,7 @@ A microorganism is categorised as "Resistant" when there is a high likelihood of
|
||||
<span class="r-in"><span> guideline <span class="op">=</span> <span class="st">"EUCAST"</span></span></span>
|
||||
<span class="r-in"><span><span class="op">)</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: 'ampicillin' (AMP), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: 'ampicillin' (AMP), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'sir'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] R</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
@ -635,149 +624,101 @@ A microorganism is categorised as "Resistant" when there is a high likelihood of
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'AMP' (ampicillin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> NOTE </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'CIP' (ciprofloxacin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> NOTE </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'AMP' (ampicillin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • Multiple breakpoints available for ampicillin (AMP) in Escherichia coli -</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> assuming body site 'Intravenous'.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> NOTE </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'CIP' (ciprofloxacin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'CIP' (ciprofloxacin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • Multiple breakpoints available for ciprofloxacin (CIP) in Escherichia coli</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> - assuming body site 'Non-meningitis'.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'AMP' (ampicillin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'AMP' (ampicillin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • Multiple breakpoints available for ampicillin (AMP) in Escherichia coli -</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> assuming body site 'Intravenous'.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'CIP' (ciprofloxacin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'CIP' (ciprofloxacin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • Multiple breakpoints available for ciprofloxacin (CIP) in Escherichia coli</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> - assuming body site 'Non-meningitis'.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> NOTE </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: 'GEN' (gentamicin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: 'TOB' (tobramycin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'AMP' (ampicillin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> NOTE </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'CIP' (ciprofloxacin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> NOTE </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'AMP' (ampicillin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> NOTE </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'CIP' (ciprofloxacin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> NOTE </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: 'GEN' (gentamicin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: 'TOB' (tobramycin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: 'TOB' (tobramycin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'AMP' (ampicillin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'AMP' (ampicillin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • Multiple breakpoints available for ampicillin (AMP) in Escherichia coli -</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> assuming body site 'Intravenous'.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> NOTE </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'CIP' (ciprofloxacin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'CIP' (ciprofloxacin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • Multiple breakpoints available for ciprofloxacin (CIP) in Escherichia coli</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> - assuming body site 'Non-meningitis'.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'AMP' (ampicillin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'AMP' (ampicillin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • Multiple breakpoints available for ampicillin (AMP) in Escherichia coli -</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> assuming body site 'Intravenous'.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'CIP' (ciprofloxacin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'CIP' (ciprofloxacin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • Multiple breakpoints available for ciprofloxacin (CIP) in Escherichia coli</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> - assuming body site 'Non-meningitis'.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> NOTE </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: 'GEN' (gentamicin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: 'GEN' (gentamicin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: 'TOB' (tobramycin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: 'TOB' (tobramycin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'AMP' (ampicillin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'AMP' (ampicillin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • Multiple breakpoints available for ampicillin (AMP) in Escherichia coli -</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> assuming body site 'Intravenous'.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'CIP' (ciprofloxacin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'CIP' (ciprofloxacin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • Multiple breakpoints available for ciprofloxacin (CIP) in Escherichia coli</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> - assuming body site 'Non-meningitis'.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: 'GEN' (gentamicin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: 'GEN' (gentamicin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: 'TOB' (tobramycin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: 'TOB' (tobramycin) based on column</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> 'microorganism', EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'AMP' (ampicillin), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'AMP' (ampicillin), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • Multiple breakpoints available for ampicillin (AMP) in Escherichia coli -</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> assuming body site 'Intravenous'.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> NOTE </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'CIP' (ciprofloxacin), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'CIP' (ciprofloxacin), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Note:</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • Multiple breakpoints available for ciprofloxacin (CIP) in Escherichia coli</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> - assuming body site 'Non-meningitis'.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> NOTE </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> • (Some) PK/PD breakpoints were applied - use include_PKPD = FALSE to</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> prevent this</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: 'GEN' (gentamicin), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: 'GEN' (gentamicin), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: 'TOB' (tobramycin), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: 'TOB' (tobramycin), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: column 'NIT' (nitrofurantoin), EUCAST 2023...</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>in as.sir(): interpretation of nitrofurantoin (NIT) is only available for</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> (uncomplicated) urinary tract infections (UTI) for some microorganisms,</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> thus assuming uti = TRUE. See ?as.sir.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: column 'NIT' (nitrofurantoin), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> * WARNING *</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> ℹ Assuming value "urine" in column 'specimen' reflects a urinary tract</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> infection.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Use as.sir(uti = FALSE) to prevent this.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: column 'NIT' (nitrofurantoin), EUCAST 2023...</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>in as.sir(): interpretation of nitrofurantoin (NIT) is only available for</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> (uncomplicated) urinary tract infections (UTI) for some microorganisms,</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> thus assuming uti = TRUE. See ?as.sir.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: column 'NIT' (nitrofurantoin), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> * WARNING *</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'AMP' (ampicillin), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'AMP' (ampicillin), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'CIP' (ciprofloxacin), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting MIC values: 'CIP' (ciprofloxacin), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: 'GEN' (gentamicin), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: 'GEN' (gentamicin), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK </span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: 'TOB' (tobramycin), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> Interpreting disk diffusion zones: 'TOB' (tobramycin), EUCAST 2023...</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> OK </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> microorganism AMP CIP GEN TOB ERY</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 Escherichia coli S <NA> S S R</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 Escherichia coli <NA> <NA> <NA> <NA> R</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># For CLEANING existing SIR values ------------------------------------</span></span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
@ -170,7 +170,7 @@
|
||||
|
||||
<div class="section level2">
|
||||
<h2 id="format">Format<a class="anchor" aria-label="anchor" href="#format"></a></h2>
|
||||
<p>A <a href="https://tibble.tidyverse.org/reference/tibble.html" class="external-link">tibble</a> with 28 454 observations and 12 variables:</p><ul><li><p><code>guideline</code><br> Name of the guideline</p></li>
|
||||
<p>A <a href="https://tibble.tidyverse.org/reference/tibble.html" class="external-link">tibble</a> with 28 885 observations and 12 variables:</p><ul><li><p><code>guideline</code><br> Name of the guideline</p></li>
|
||||
<li><p><code>type</code><br> Breakpoint type, either "ECOFF", "animal", or "human"</p></li>
|
||||
<li><p><code>method</code><br> Testing method, either "DISK" or "MIC"</p></li>
|
||||
<li><p><code>site</code><br> Body site for which the breakpoint must be applied, e.g. "Oral" or "Respiratory"</p></li>
|
||||
@ -225,7 +225,7 @@
|
||||
<div class="section level2">
|
||||
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="va">clinical_breakpoints</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 28,454 × 12</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 28,885 × 12</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> guideline type method site mo rank_index ab ref_tbl disk_dose</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><mo></span> <span style="color: #949494; font-style: italic;"><dbl></span> <span style="color: #949494; font-style: italic;"><ab></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> EUCAST 2… human DISK <span style="color: #BB0000;">NA</span> B_ACHRMB_DNTR 2 MEM A. xylo… 10ug </span>
|
||||
@ -238,7 +238,7 @@
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> EUCAST 2… human MIC <span style="color: #BB0000;">NA</span> B_ACHRMB_XYLS 2 MEM A. xylo… <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> EUCAST 2… human DISK <span style="color: #BB0000;">NA</span> B_ACHRMB_XYLS 2 SXT A. xylo… 1.25ug/2…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> EUCAST 2… human MIC <span style="color: #BB0000;">NA</span> B_ACHRMB_XYLS 2 SXT A. xylo… <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 28,444 more rows</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 28,875 more rows</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 3 more variables: breakpoint_S <dbl>, breakpoint_R <dbl>, uti <lgl></span></span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
|
@ -12,7 +12,7 @@ count_resistant() should be used to count resistant isolates, count_susceptible(
|
||||
|
||||
<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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
@ -239,7 +239,7 @@ count_resistant() should be used to count resistant isolates, count_susceptible(
|
||||
<h2 id="interpretation-of-sir">Interpretation of SIR<a class="anchor" aria-label="anchor" href="#interpretation-of-sir"></a></h2>
|
||||
|
||||
|
||||
<p>In 2019, the European Committee on Antimicrobial Susceptibility Testing (EUCAST) has decided to change the definitions of susceptibility testing categories S, I, and R as shown below (<a href="https://www.eucast.org/newsiandr/" class="external-link">https://www.eucast.org/newsiandr/</a>):</p><ul><li><p><strong>S - Susceptible, standard dosing regimen</strong><br>
|
||||
<p>In 2019, the European Committee on Antimicrobial Susceptibility Testing (EUCAST) has decided to change the definitions of susceptibility testing categories S, I, and R as shown below (<a href="https://www.eucast.org/newsiandr" class="external-link">https://www.eucast.org/newsiandr</a>):</p><ul><li><p><strong>S - Susceptible, standard dosing regimen</strong><br>
|
||||
A microorganism is categorised as "Susceptible, standard dosing regimen", when there is a high likelihood of therapeutic success using a standard dosing regimen of the agent.</p></li>
|
||||
<li><p><strong>I - Susceptible, increased exposure</strong> <em><br>
|
||||
A microorganism is categorised as "Susceptible, Increased exposure</em>" when there is a high likelihood of therapeutic success because exposure to the agent is increased by adjusting the dosing regimen or by its concentration at the site of infection.</p></li>
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -12,7 +12,7 @@ To improve the interpretation of the antibiogram before EUCAST rules are applied
|
||||
|
||||
<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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -12,7 +12,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
@ -263,27 +263,28 @@
|
||||
<span class="r-in"><span><span class="va">df</span> <span class="op"><-</span> <span class="va">example_isolates</span><span class="op">[</span><span class="fu"><a href="https://rdrr.io/r/base/sample.html" class="external-link">sample</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/seq.html" class="external-link">seq_len</a></span><span class="op">(</span><span class="fl">2000</span><span class="op">)</span>, size <span class="op">=</span> <span class="fl">100</span><span class="op">)</span>, <span class="op">]</span></span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="fu">get_episode</span><span class="op">(</span><span class="va">df</span><span class="op">$</span><span class="va">date</span>, episode_days <span class="op">=</span> <span class="fl">60</span><span class="op">)</span> <span class="co"># indices</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 12 7 19 29 17 11 41 34 32 9 25 21 6 48 10 46 45 18 32 37 17 8 40 12 10</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [26] 19 31 41 15 15 46 9 10 26 1 27 34 18 24 12 23 17 31 14 13 50 9 32 2 9</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [51] 16 38 20 5 48 48 14 12 20 42 28 49 14 30 17 47 7 45 8 13 44 1 11 30 35</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [76] 31 39 27 43 26 10 14 4 22 36 47 33 31 16 18 3 48 23 6 12 38 28 15 1 5</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 1 50 26 12 10 18 50 42 43 21 34 19 13 25 44 35 45 16 17 3 25 20 3 17 45</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [26] 6 10 28 42 9 47 1 11 27 18 45 17 14 6 22 31 42 41 2 23 38 16 46 29 8</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [51] 40 48 7 49 20 34 16 7 36 38 48 2 49 14 32 14 27 10 37 24 18 23 4 46 8</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [76] 36 6 7 32 22 28 49 16 47 38 21 30 27 6 22 14 24 48 33 21 5 48 39 16 15</span>
|
||||
<span class="r-in"><span><span class="fu">is_new_episode</span><span class="op">(</span><span class="va">df</span><span class="op">$</span><span class="va">date</span>, episode_days <span class="op">=</span> <span class="fl">60</span><span class="op">)</span> <span class="co"># TRUE/FALSE</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [13] TRUE TRUE TRUE TRUE TRUE TRUE FALSE TRUE FALSE TRUE TRUE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [25] FALSE FALSE TRUE FALSE TRUE FALSE FALSE FALSE FALSE TRUE TRUE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [37] FALSE FALSE TRUE FALSE TRUE FALSE FALSE TRUE TRUE TRUE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [49] TRUE FALSE TRUE TRUE TRUE TRUE FALSE FALSE FALSE FALSE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [61] TRUE TRUE FALSE TRUE FALSE TRUE FALSE FALSE FALSE FALSE TRUE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [73] FALSE FALSE TRUE FALSE TRUE FALSE TRUE FALSE FALSE FALSE TRUE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [85] TRUE FALSE TRUE FALSE FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [97] FALSE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] TRUE TRUE TRUE TRUE TRUE TRUE FALSE TRUE TRUE TRUE TRUE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [13] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE FALSE TRUE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [25] FALSE TRUE FALSE TRUE FALSE TRUE TRUE FALSE TRUE TRUE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [37] FALSE TRUE FALSE TRUE TRUE FALSE TRUE TRUE TRUE TRUE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [49] TRUE TRUE TRUE TRUE TRUE TRUE FALSE FALSE FALSE FALSE TRUE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [61] FALSE FALSE FALSE FALSE TRUE FALSE FALSE FALSE TRUE TRUE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [73] TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [85] FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE TRUE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [97] FALSE TRUE FALSE TRUE</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># filter on results from the third 60-day episode only, using base R</span></span></span>
|
||||
<span class="r-in"><span><span class="va">df</span><span class="op">[</span><span class="fu"><a href="https://rdrr.io/r/base/which.html" class="external-link">which</a></span><span class="op">(</span><span class="fu">get_episode</span><span class="op">(</span><span class="va">df</span><span class="op">$</span><span class="va">date</span>, <span class="fl">60</span><span class="op">)</span> <span class="op">==</span> <span class="fl">3</span><span class="op">)</span>, <span class="op">]</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 1 × 46</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 2 × 46</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> date patient age gender ward mo PEN OXA FLC AMX </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><date></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><dbl></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><mo></span> <span style="color: #949494; font-style: italic;"><sir></span> <span style="color: #949494; font-style: italic;"><sir></span> <span style="color: #949494; font-style: italic;"><sir></span> <span style="color: #949494; font-style: italic;"><sir></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> 2002-06-06 24D393 20 F Clinical B_ESCHR_COLI R NA NA NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> 2002-06-04 082413 78 M ICU B_STRPT_PNMN S NA NA S </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> 2002-06-23 798871 82 M Clinical B_ENTRC_FCLS NA NA NA NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 36 more variables: AMC <sir>, AMP <sir>, TZP <sir>, CZO <sir>, FEP <sir>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>, GEN <sir>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># TOB <sir>, AMK <sir>, KAN <sir>, TMP <sir>, SXT <sir>, NIT <sir>,</span></span>
|
||||
@ -317,19 +318,19 @@
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/arrange.html" class="external-link">arrange</a></span><span class="op">(</span><span class="va">patient</span>, <span class="va">condition</span>, <span class="va">date</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 100 × 4</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Groups: patient, condition [96]</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Groups: patient, condition [95]</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> patient date condition new_episode</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><date></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><lgl></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> 022060 2004-05-04 A TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 05C73F 2006-01-12 A TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 067927 2002-01-13 A TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> 080086 2007-10-26 C TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 083080 2012-04-16 A TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 088256 2003-01-25 A TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> 092034 2006-06-12 C TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> 0E2483 2007-05-29 B TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 107DD1 2012-09-03 C TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> 151041 2006-02-09 B TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> 008268 2007-02-20 B TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 051150 2007-01-02 B TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 067927 2002-01-07 A TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> 074321 2015-09-20 A TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 078381 2014-07-17 B TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 078381 2014-08-17 B FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> 082413 2002-06-04 C TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> 0C0688 2014-09-05 B TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 0E2483 2007-05-29 A TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> 15D386 2004-08-01 B TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 90 more rows</span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="st"><a href="https://dplyr.tidyverse.org" class="external-link">"dplyr"</a></span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span>
|
||||
@ -346,16 +347,16 @@
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Groups: ward, patient [94]</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> ward date patient new_index new_logical</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><date></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><int></span> <span style="color: #949494; font-style: italic;"><lgl></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> ICU 2004-05-04 022060 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> Clinical 2006-01-12 05C73F 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> ICU 2002-01-13 067927 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> Clinical 2007-10-26 080086 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> Clinical 2012-04-16 083080 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> ICU 2003-01-25 088256 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> ICU 2006-06-12 092034 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> Clinical 2007-05-29 0E2483 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> Clinical 2012-09-03 107DD1 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> Clinical 2006-02-09 151041 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> ICU 2007-02-20 008268 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> ICU 2007-01-02 051150 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> ICU 2002-01-07 067927 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> ICU 2015-09-20 074321 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> ICU 2014-07-17 078381 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> ICU 2014-08-17 078381 1 FALSE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> ICU 2002-06-04 082413 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> Clinical 2014-09-05 0C0688 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> Clinical 2007-05-29 0E2483 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> ICU 2004-08-01 15D386 1 TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 90 more rows</span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="st"><a href="https://dplyr.tidyverse.org" class="external-link">"dplyr"</a></span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span>
|
||||
@ -371,9 +372,9 @@
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 3 × 5</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> ward n_patients n_episodes_365 n_episodes_60 n_episodes_30</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><int></span> <span style="color: #949494; font-style: italic;"><int></span> <span style="color: #949494; font-style: italic;"><int></span> <span style="color: #949494; font-style: italic;"><int></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> Clinical 60 13 40 48</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> ICU 31 10 24 28</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> Outpatient 3 3 3 3</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> Clinical 52 13 36 46</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> ICU 38 12 28 35</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> Outpatient 4 3 4 4</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># grouping on patients and microorganisms leads to the same</span></span></span>
|
||||
<span class="r-in"><span><span class="co"># results as first_isolate() when using 'episode-based':</span></span></span>
|
||||
@ -391,7 +392,7 @@
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://rdrr.io/r/base/identical.html" class="external-link">identical</a></span><span class="op">(</span><span class="va">x</span>, <span class="va">y</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] FALSE</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] TRUE</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># but is_new_episode() has a lot more flexibility than first_isolate(),</span></span></span>
|
||||
<span class="r-in"><span><span class="co"># since you can now group on anything that seems relevant:</span></span></span>
|
||||
@ -402,19 +403,19 @@
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/select.html" class="external-link">select</a></span><span class="op">(</span><span class="fu"><a href="https://dplyr.tidyverse.org/reference/group_data.html" class="external-link">group_vars</a></span><span class="op">(</span><span class="va">.</span><span class="op">)</span>, <span class="va">flag_episode</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 100 × 4</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Groups: patient, mo, ward [96]</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Groups: patient, mo, ward [97]</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> patient mo ward flag_episode</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><mo></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><lgl></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> 05C73F B_STRPT_MITS Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> C58921 B_BCTRD_FRGL Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> ED4982 B_ESCHR_COLI ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> E58140 B_STPHY_CONS Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 851259 B_STRPT_PNMN Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> D43733 B_ESCHR_COLI ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> 972724 B_STPHY_EPDR ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> 616685 B_STPHY_EPDR Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 824233 B_STPHY_AURS Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> 400169 B_SERRT_MRCS ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> 067927 B_STPHY_EPDR ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> A85702 B_CTRBC_KOSR ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 949877 B_STRPT_PNMN Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> D43733 B_ESCHR_COLI ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> BB8157 B_STPHY_CONS Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 59C7F2 B_STRPT_PNMN Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> 693199 B_STRPT_PNMN Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> A76045 B_ENTRC_FACM ICU TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 559068 B_STPHY_CPTS Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> 533225 B_ESCHR_COLI Clinical TRUE </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 90 more rows</span></span>
|
||||
<span class="r-in"><span><span class="co"># }</span></span></span>
|
||||
</code></pre></div>
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
@ -175,7 +175,7 @@
|
||||
</ul></div>
|
||||
<div class="section level2">
|
||||
<h2 id="details">Details<a class="anchor" aria-label="anchor" href="#details"></a></h2>
|
||||
<p>This data set is based on <a href="https://www.eucast.org/expert_rules_and_expected_phenotypes/" class="external-link">'EUCAST Expert Rules' and 'EUCAST Intrinsic Resistance and Unusual Phenotypes' v3.3</a> (2021).</p><div class="section">
|
||||
<p>This data set is based on <a href="https://www.eucast.org/expert_rules_and_expected_phenotypes" class="external-link">'EUCAST Expert Rules' and 'EUCAST Intrinsic Resistance and Unusual Phenotypes' v3.3</a> (2021).</p><div class="section">
|
||||
<h3 id="direct-download">Direct download<a class="anchor" aria-label="anchor" href="#direct-download"></a></h3>
|
||||
|
||||
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
@ -199,9 +199,9 @@
|
||||
<div class="section level2">
|
||||
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="fu">kurtosis</span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/stats/Normal.html" class="external-link">rnorm</a></span><span class="op">(</span><span class="fl">10000</span><span class="op">)</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 3.030727</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 2.993275</span>
|
||||
<span class="r-in"><span><span class="fu">kurtosis</span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/stats/Normal.html" class="external-link">rnorm</a></span><span class="op">(</span><span class="fl">10000</span><span class="op">)</span>, excess <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -0.06974119</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.005991136</span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
@ -241,53 +241,17 @@
|
||||
<span class="r-in"><span><span class="co"># \donttest{</span></span></span>
|
||||
<span class="r-in"><span><span class="co"># get isolates whose name start with 'Entero' (case-insensitive)</span></span></span>
|
||||
<span class="r-in"><span><span class="va">example_isolates</span><span class="op">[</span><span class="fu"><a href="https://rdrr.io/r/base/which.html" class="external-link">which</a></span><span class="op">(</span><span class="fu"><a href="mo_property.html">mo_name</a></span><span class="op">(</span><span class="op">)</span> <span class="op">%like%</span> <span class="st">"^entero"</span><span class="op">)</span>, <span class="op">]</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> ℹ Using column 'mo' as input for mo_name()</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 106 × 46</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> date patient age gender ward mo PEN OXA FLC AMX </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><date></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><dbl></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><mo></span> <span style="color: #949494; font-style: italic;"><sir></span> <span style="color: #949494; font-style: italic;"><sir></span> <span style="color: #949494; font-style: italic;"><sir></span> <span style="color: #949494; font-style: italic;"><sir></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> 2002-02-21 4FC193 69 M Clinic… B_ENTRC_FACM NA NA NA NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 2002-04-08 130252 78 M ICU B_ENTRC_FCLS NA NA NA NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 2002-06-23 798871 82 M Clinic… B_ENTRC_FCLS NA NA NA NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> 2002-06-23 798871 82 M Clinic… B_ENTRC_FCLS NA NA NA NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 2003-04-20 6BC362 62 M ICU B_ENTRC NA NA NA NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 2003-04-21 6BC362 62 M ICU B_ENTRC NA NA NA NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> 2003-08-13 F35553 52 M ICU B_ENTRBC_CLOC R NA NA R </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> 2003-08-13 F35553 52 M ICU B_ENTRC_FCLS NA NA NA NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 2003-09-05 F35553 52 M ICU B_ENTRC NA NA NA NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> 2003-09-05 F35553 52 M ICU B_ENTRBC_CLOC R NA NA R </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 96 more rows</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 36 more variables: AMC <sir>, AMP <sir>, TZP <sir>, CZO <sir>, FEP <sir>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>, GEN <sir>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># TOB <sir>, AMK <sir>, KAN <sir>, TMP <sir>, SXT <sir>, NIT <sir>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># FOS <sir>, LNZ <sir>, CIP <sir>, MFX <sir>, VAN <sir>, TEC <sir>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># TCY <sir>, TGC <sir>, DOX <sir>, ERY <sir>, CLI <sir>, AZM <sir>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># IPM <sir>, MEM <sir>, MTR <sir>, CHL <sir>, COL <sir>, MUP <sir>, …</span></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error:</span> in mo_name(): argument x is missing and no column with info about</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> microorganisms could be found.</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="st"><a href="https://dplyr.tidyverse.org" class="external-link">"dplyr"</a></span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span>
|
||||
<span class="r-in"><span> <span class="va">example_isolates</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%>%</a></span></span></span>
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/filter.html" class="external-link">filter</a></span><span class="op">(</span><span class="fu"><a href="mo_property.html">mo_name</a></span><span class="op">(</span><span class="op">)</span> <span class="op">%like%</span> <span class="st">"^ent"</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> ℹ Using column 'mo' as input for mo_name()</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 106 × 46</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> date patient age gender ward mo PEN OXA FLC AMX </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><date></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><dbl></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><mo></span> <span style="color: #949494; font-style: italic;"><sir></span> <span style="color: #949494; font-style: italic;"><sir></span> <span style="color: #949494; font-style: italic;"><sir></span> <span style="color: #949494; font-style: italic;"><sir></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> 2002-02-21 4FC193 69 M Clinic… B_ENTRC_FACM NA NA NA NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 2002-04-08 130252 78 M ICU B_ENTRC_FCLS NA NA NA NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 2002-06-23 798871 82 M Clinic… B_ENTRC_FCLS NA NA NA NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> 2002-06-23 798871 82 M Clinic… B_ENTRC_FCLS NA NA NA NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 2003-04-20 6BC362 62 M ICU B_ENTRC NA NA NA NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 2003-04-21 6BC362 62 M ICU B_ENTRC NA NA NA NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> 2003-08-13 F35553 52 M ICU B_ENTRBC_CLOC R NA NA R </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> 2003-08-13 F35553 52 M ICU B_ENTRC_FCLS NA NA NA NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 2003-09-05 F35553 52 M ICU B_ENTRC NA NA NA NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> 2003-09-05 F35553 52 M ICU B_ENTRBC_CLOC R NA NA R </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 96 more rows</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 36 more variables: AMC <sir>, AMP <sir>, TZP <sir>, CZO <sir>, FEP <sir>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>, GEN <sir>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># TOB <sir>, AMK <sir>, KAN <sir>, TMP <sir>, SXT <sir>, NIT <sir>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># FOS <sir>, LNZ <sir>, CIP <sir>, MFX <sir>, VAN <sir>, TEC <sir>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># TCY <sir>, TGC <sir>, DOX <sir>, ERY <sir>, CLI <sir>, AZM <sir>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># IPM <sir>, MEM <sir>, MTR <sir>, CHL <sir>, COL <sir>, MUP <sir>, …</span></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in filter(., mo_name() %like% "^ent"):</span> <span style="color: #00BBBB;">ℹ</span> In argument: `mo_name() %like% "^ent"`.</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span style="font-weight: bold;">Caused by error:</span></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span style="color: #BBBB00;">!</span> in mo_name(): argument x is missing and no column with info about</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> microorganisms could be found.</span>
|
||||
<span class="r-in"><span><span class="co"># }</span></span></span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
@ -321,7 +321,7 @@ Ordered <a href="https://rdrr.io/r/base/factor.html" class="external-link">facto
|
||||
<h2 id="interpretation-of-sir">Interpretation of SIR<a class="anchor" aria-label="anchor" href="#interpretation-of-sir"></a></h2>
|
||||
|
||||
|
||||
<p>In 2019, the European Committee on Antimicrobial Susceptibility Testing (EUCAST) has decided to change the definitions of susceptibility testing categories S, I, and R as shown below (<a href="https://www.eucast.org/newsiandr/" class="external-link">https://www.eucast.org/newsiandr/</a>):</p><ul><li><p><strong>S - Susceptible, standard dosing regimen</strong><br>
|
||||
<p>In 2019, the European Committee on Antimicrobial Susceptibility Testing (EUCAST) has decided to change the definitions of susceptibility testing categories S, I, and R as shown below (<a href="https://www.eucast.org/newsiandr" class="external-link">https://www.eucast.org/newsiandr</a>):</p><ul><li><p><strong>S - Susceptible, standard dosing regimen</strong><br>
|
||||
A microorganism is categorised as "Susceptible, standard dosing regimen", when there is a high likelihood of therapeutic success using a standard dosing regimen of the agent.</p></li>
|
||||
<li><p><strong>I - Susceptible, increased exposure</strong> <em><br>
|
||||
A microorganism is categorised as "Susceptible, Increased exposure</em>" when there is a high likelihood of therapeutic success because exposure to the agent is increased by adjusting the dosing regimen or by its concentration at the site of infection.</p></li>
|
||||
@ -334,13 +334,11 @@ A microorganism is categorised as "Resistant" when there is a high likelihood of
|
||||
<div class="section level2">
|
||||
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="va">out</span> <span class="op"><-</span> <span class="fu">mdro</span><span class="op">(</span><span class="va">example_isolates</span>, guideline <span class="op">=</span> <span class="st">"EUCAST"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> (16 isolates had no test results)</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu"><a href="https://rdrr.io/r/utils/str.html" class="external-link">str</a></span><span class="op">(</span><span class="va">out</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Ord.factor w/ 3 levels "Negative"<"Positive, unconfirmed"<..: 1 1 1 1 1 1 1 1 1 1 ...</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in eval(expr, envir, enclos):</span> object 'out' not found</span>
|
||||
<span class="r-in"><span><span class="fu"><a href="https://rdrr.io/r/base/table.html" class="external-link">table</a></span><span class="op">(</span><span class="va">out</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> out</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Negative Positive, unconfirmed Positive </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1978 0 6 </span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in eval(expr, envir, enclos):</span> object 'out' not found</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="va">out</span> <span class="op"><-</span> <span class="fu">mdro</span><span class="op">(</span><span class="va">example_isolates</span>,</span></span>
|
||||
<span class="r-in"><span> guideline <span class="op">=</span> <span class="fu">custom_mdro_guideline</span><span class="op">(</span></span></span>
|
||||
@ -348,10 +346,9 @@ A microorganism is categorised as "Resistant" when there is a high likelihood of
|
||||
<span class="r-in"><span> <span class="va">VAN</span> <span class="op">==</span> <span class="st">"R"</span> <span class="op">~</span> <span class="st">"Custom MDRO 2"</span></span></span>
|
||||
<span class="r-in"><span> <span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">)</span></span></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu"><a href="https://rdrr.io/r/base/table.html" class="external-link">table</a></span><span class="op">(</span><span class="va">out</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> out</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Negative Custom MDRO 1 Custom MDRO 2 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 870 804 326 </span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in eval(expr, envir, enclos):</span> object 'out' not found</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># \donttest{</span></span></span>
|
||||
<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="st"><a href="https://dplyr.tidyverse.org" class="external-link">"dplyr"</a></span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span>
|
||||
@ -365,20 +362,7 @@ A microorganism is categorised as "Resistant" when there is a high likelihood of
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/pull.html" class="external-link">pull</a></span><span class="op">(</span><span class="va">MDRO</span><span class="op">)</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%>%</a></span></span></span>
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://rdrr.io/r/base/table.html" class="external-link">table</a></span><span class="op">(</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> (16 isolates had no test results)</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>in mdro(): NA introduced for isolates where the available percentage of</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> antimicrobial classes was below 50% (set with pct_required_classes)</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> (16 isolates had no test results)</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>There was 1 warning in `mutate()`.</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> <span style="color: #00BBBB;">ℹ</span> In argument: `MDRO = mdro()`.</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> Caused by warning:</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> <span style="color: #BBBB00;">!</span> in mdro(): NA introduced for isolates where the available percentage of</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> antimicrobial classes was below 50% (set with pct_required_classes)</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> .</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Negative Multi-drug-resistant (MDR) </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1601 128 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Extensively drug-resistant (XDR) Pandrug-resistant (PDR) </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 0 0 </span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="co"># }</span></span></span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
@ -216,33 +216,28 @@
|
||||
<div class="section level2">
|
||||
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="va">sir</span> <span class="op"><-</span> <span class="fu"><a href="random.html">random_sir</a></span><span class="op">(</span><span class="fl">10</span><span class="op">)</span></span></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="va">sir</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'sir'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] S S S S S R R S S S</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in eval(expr, envir, enclos):</span> object 'sir' not found</span>
|
||||
<span class="r-in"><span><span class="fu">mean_amr_distance</span><span class="op">(</span><span class="va">sir</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -0.4743416 -0.4743416 -0.4743416 -0.4743416 -0.4743416 1.8973666</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 1.8973666 -0.4743416 -0.4743416 -0.4743416</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in eval(expr, envir, enclos):</span> object 'sir' not found</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="va">mic</span> <span class="op"><-</span> <span class="fu"><a href="random.html">random_mic</a></span><span class="op">(</span><span class="fl">10</span><span class="op">)</span></span></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="va">mic</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'mic'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.025 0.0625 >=256 64 4 0.005 <=0.001 0.125 1 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [10] 0.025 </span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in eval(expr, envir, enclos):</span> object 'mic' not found</span>
|
||||
<span class="r-in"><span><span class="fu">mean_amr_distance</span><span class="op">(</span><span class="va">mic</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -0.5822026 -0.3556128 1.7012899 1.3584728 0.6728385 -0.9802010</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] -1.3781993 -0.1842043 0.3300214 -0.5822026</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in eval(expr, envir, enclos):</span> object 'mic' not found</span>
|
||||
<span class="r-in"><span><span class="co"># equal to the Z-score of their log2:</span></span></span>
|
||||
<span class="r-in"><span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/Log.html" class="external-link">log2</a></span><span class="op">(</span><span class="va">mic</span><span class="op">)</span> <span class="op">-</span> <span class="fu"><a href="https://rdrr.io/r/base/mean.html" class="external-link">mean</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/Log.html" class="external-link">log2</a></span><span class="op">(</span><span class="va">mic</span><span class="op">)</span><span class="op">)</span><span class="op">)</span> <span class="op">/</span> <span class="fu"><a href="https://rdrr.io/r/stats/sd.html" class="external-link">sd</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/Log.html" class="external-link">log2</a></span><span class="op">(</span><span class="va">mic</span><span class="op">)</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -0.5822026 -0.3556128 1.7012899 1.3584728 0.6728385 -0.9802010</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] -1.3781993 -0.1842043 0.3300214 -0.5822026</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in eval(expr, envir, enclos):</span> object 'mic' not found</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="va">disk</span> <span class="op"><-</span> <span class="fu"><a href="random.html">random_disk</a></span><span class="op">(</span><span class="fl">10</span><span class="op">)</span></span></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="va">disk</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'disk'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 6 19 36 25 6 25 38 47 41 11</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in eval(expr, envir, enclos):</span> object 'disk' not found</span>
|
||||
<span class="r-in"><span><span class="fu">mean_amr_distance</span><span class="op">(</span><span class="va">disk</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] -1.30715576 -0.43122664 0.71421913 -0.02695167 -1.30715576 -0.02695167</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [7] 0.84897745 1.45538992 1.05111494 -0.97025994</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in eval(expr, envir, enclos):</span> object 'disk' not found</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="va">y</span> <span class="op"><-</span> <span class="fu"><a href="https://rdrr.io/r/base/data.frame.html" class="external-link">data.frame</a></span><span class="op">(</span></span></span>
|
||||
<span class="r-in"><span> id <span class="op">=</span> <span class="va">LETTERS</span><span class="op">[</span><span class="fl">1</span><span class="op">:</span><span class="fl">10</span><span class="op">]</span>,</span></span>
|
||||
@ -251,27 +246,15 @@
|
||||
<span class="r-in"><span> gent <span class="op">=</span> <span class="fu"><a href="random.html">random_mic</a></span><span class="op">(</span><span class="fl">10</span>, ab <span class="op">=</span> <span class="st">"gent"</span>, mo <span class="op">=</span> <span class="st">"Escherichia coli"</span><span class="op">)</span>,</span></span>
|
||||
<span class="r-in"><span> tobr <span class="op">=</span> <span class="fu"><a href="random.html">random_mic</a></span><span class="op">(</span><span class="fl">10</span>, ab <span class="op">=</span> <span class="st">"tobr"</span>, mo <span class="op">=</span> <span class="st">"Escherichia coli"</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">)</span></span></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="va">y</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> id amox cipr gent tobr</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 A R 31 >=16 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 B S 25 4 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 C S 20 4 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 D R 18 4 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 E I 18 4 <=1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 F R 30 >=16 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 G R 31 8 <=1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 H S 17 >=16 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 I R 20 <=2 <=1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 J I 19 <=2 >=4</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in eval(expr, envir, enclos):</span> object 'y' not found</span>
|
||||
<span class="r-in"><span><span class="fu">mean_amr_distance</span><span class="op">(</span><span class="va">y</span><span class="op">)</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> ℹ Calculating mean AMR distance based on columns "amox", "cipr", "gent",</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> and "tobr"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.984641176 -0.173383326 -0.389565646 -0.001696925 -0.871323282</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [6] 0.941404712 0.377224435 -0.095010969 -0.522640739 -0.249649437</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in eval(expr, envir, enclos):</span> object 'y' not found</span>
|
||||
<span class="r-in"><span><span class="va">y</span><span class="op">$</span><span class="va">amr_distance</span> <span class="op"><-</span> <span class="fu">mean_amr_distance</span><span class="op">(</span><span class="va">y</span>, <span class="fu"><a href="https://tidyselect.r-lib.org/reference/where.html" class="external-link">where</a></span><span class="op">(</span><span class="va">is.mic</span><span class="op">)</span><span class="op">)</span></span></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .subset(x, j):</span> invalid subscript type 'list'</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in eval(expr, envir, enclos):</span> object 'y' not found</span>
|
||||
<span class="r-in"><span><span class="va">y</span><span class="op">[</span><span class="fu"><a href="https://rdrr.io/r/base/order.html" class="external-link">order</a></span><span class="op">(</span><span class="va">y</span><span class="op">$</span><span class="va">amr_distance</span><span class="op">)</span>, <span class="op">]</span></span></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in order(y$amr_distance):</span> argument 1 is not a vector</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in eval(expr, envir, enclos):</span> object 'y' not found</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="st"><a href="https://dplyr.tidyverse.org" class="external-link">"dplyr"</a></span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span>
|
||||
<span class="r-in"><span> <span class="va">y</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%>%</a></span></span></span>
|
||||
@ -281,19 +264,7 @@
|
||||
<span class="r-in"><span> <span class="op">)</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%>%</a></span></span></span>
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/arrange.html" class="external-link">arrange</a></span><span class="op">(</span><span class="va">check_id_C</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> ℹ Calculating mean AMR distance based on columns "amox", "cipr", "gent",</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> and "tobr"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> id amox cipr gent tobr amr_distance check_id_C</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 1 C S 20 4 2 -0.389565646 0.0000000</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 2 I R 20 <=2 <=1 -0.522640739 0.1330751</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 3 J I 19 <=2 >=4 -0.249649437 0.1399162</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 4 B S 25 4 2 -0.173383326 0.2161823</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 5 H S 17 >=16 2 -0.095010969 0.2945547</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 6 D R 18 4 2 -0.001696925 0.3878687</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 7 E I 18 4 <=1 -0.871323282 0.4817576</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 8 G R 31 8 <=1 0.377224435 0.7667901</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 9 F R 30 >=16 2 0.941404712 1.3309704</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> 10 A R 31 >=16 2 0.984641176 1.3742068</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in eval(expr, envir, enclos):</span> object 'y' not found</span>
|
||||
<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="st"><a href="https://dplyr.tidyverse.org" class="external-link">"dplyr"</a></span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span>
|
||||
<span class="r-in"><span> <span class="co"># support for groups</span></span></span>
|
||||
<span class="r-in"><span> <span class="va">example_isolates</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%>%</a></span></span></span>
|
||||
@ -303,25 +274,10 @@
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/mutate.html" class="external-link">mutate</a></span><span class="op">(</span>dist <span class="op">=</span> <span class="fu">mean_amr_distance</span><span class="op">(</span><span class="va">.</span><span class="op">)</span><span class="op">)</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%>%</a></span></span></span>
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/arrange.html" class="external-link">arrange</a></span><span class="op">(</span><span class="va">mo</span>, <span class="va">dist</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> ℹ Using column 'mo' as input for mo_genus()</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> ℹ Using column 'mo' as input for mo_species()</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> ℹ For carbapenems() using columns 'IPM' (imipenem) and 'MEM' (meropenem)</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> ℹ Calculating mean AMR distance based on columns "TCY", "IPM", and "MEM"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 63 × 5</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># Groups: mo [4]</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> mo TCY IPM MEM dist</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><mo></span> <span style="color: #949494; font-style: italic;"><sir></span> <span style="color: #949494; font-style: italic;"><sir></span> <span style="color: #949494; font-style: italic;"><sir></span> <span style="color: #949494; font-style: italic;"><dbl></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> B_ENTRC_AVIM S S NA 0 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> B_ENTRC_AVIM S S NA 0 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> B_ENTRC_CSSL NA S NA <span style="color: #BB0000;">NA</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> B_ENTRC_FACM S S NA -<span style="color: #BB0000;">2.66</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> B_ENTRC_FACM S R R -<span style="color: #BB0000;">0.423</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> B_ENTRC_FACM S R R -<span style="color: #BB0000;">0.423</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> B_ENTRC_FACM NA R R 0.224</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> B_ENTRC_FACM NA R R 0.224</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> B_ENTRC_FACM NA R R 0.224</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> B_ENTRC_FACM NA R R 0.224</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 53 more rows</span></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in filter(., mo_genus() == "Enterococcus" & mo_species() != ""):</span> <span style="color: #00BBBB;">ℹ</span> In argument: `mo_genus() == "Enterococcus" & mo_species() != ""`.</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span style="font-weight: bold;">Caused by error:</span></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span style="color: #BBBB00;">!</span> in mo_genus(): argument x is missing and no column with info about</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> microorganisms could be found.</span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
@ -185,95 +185,19 @@
|
||||
<div class="section level2">
|
||||
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="va">microorganisms.codes</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 4,957 × 2</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> code mo </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><mo></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> 1011 B_GRAMP </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 1012 B_GRAMP </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 1013 B_GRAMN </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> 1014 B_GRAMN </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 1015 F_YEAST </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 103 B_ESCHR_COLI </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> 104 B_SLMNL_ENTR_ENTR</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> 1100 B_STRPT </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 1101 B_STRPT_VIRI </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> 1102 B_STRPT_HAEM </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 4,947 more rows</span></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># 'ECO' or 'eco' is the WHONET code for E. coli:</span></span></span>
|
||||
<span class="r-in"><span><span class="va">microorganisms.codes</span><span class="op">[</span><span class="va">microorganisms.codes</span><span class="op">$</span><span class="va">code</span> <span class="op">==</span> <span class="st">"ECO"</span>, <span class="op">]</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 1 × 2</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> code mo </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><mo></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> ECO B_ESCHR_COLI</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># and therefore, 'eco' will be understood as E. coli in this package:</span></span></span>
|
||||
<span class="r-in"><span><span class="fu"><a href="mo_property.html">mo_info</a></span><span class="op">(</span><span class="st">"eco"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $mo</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "B_ESCHR_COLI"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $kingdom</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Bacteria"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $phylum</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Pseudomonadota"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $class</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Gammaproteobacteria"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $order</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Enterobacterales"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $family</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Enterobacteriaceae"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $genus</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Escherichia"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $species</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "coli"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $subspecies</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] ""</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $status</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "accepted"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $synonyms</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> NULL</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $gramstain</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Gram-negative"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $oxygen_tolerance</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "facultative anaerobe"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $url</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "https://lpsn.dsmz.de/species/escherichia-coli"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $ref</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Castellani et al., 1919"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $snomed</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "1095001000112106" "715307006" "737528008" "416989002" </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [5] "116397003" "414097009" "414098004" "414099007" </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [9] "414100004" "116395006" "735270003" "116396007" </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [13] "83285000" "116394005" "112283007" "710886005" </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [17] "710887001" "710888006" "710889003" "414132004" </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [21] "721892009" "416812001" "416740004" "417216001" </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [25] "457541006" "710253004" "416530004" "417189006" </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [29] "409800005" "713925008" "444771000124108" "838549008" </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $lpsn</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "776057"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $gbif</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "11286021"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># works for all AMR functions:</span></span></span>
|
||||
<span class="r-in"><span><span class="fu"><a href="mo_property.html">mo_is_intrinsic_resistant</a></span><span class="op">(</span><span class="st">"eco"</span>, ab <span class="op">=</span> <span class="st">"vancomycin"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] TRUE</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
@ -160,7 +160,7 @@
|
||||
</div>
|
||||
|
||||
<div class="ref-description section level2">
|
||||
<p>A data set containing species groups and microbiological complexes, which are used in the clinical breakpoints table.</p>
|
||||
<p>A data set containing species groups and microbiological complexes, which are used in <a href="clinical_breakpoints.html">the clinical breakpoints table</a>.</p>
|
||||
</div>
|
||||
|
||||
<div class="section level2">
|
||||
@ -187,31 +187,11 @@
|
||||
<div class="section level2">
|
||||
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="va">microorganisms.groups</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 444 × 4</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> mo_group mo mo_group_name mo_name </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><mo></span> <span style="color: #949494; font-style: italic;"><mo></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> B_ACNTB_BMNN-C B_ACNTB_BMNN Acinetobacter baumannii complex Acinetobacter ba…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> B_ACNTB_BMNN-C B_ACNTB_CLCC Acinetobacter baumannii complex Acinetobacter ca…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> B_ACNTB_BMNN-C B_ACNTB_DJKS Acinetobacter baumannii complex Acinetobacter di…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> B_ACNTB_BMNN-C B_ACNTB_NSCM Acinetobacter baumannii complex Acinetobacter no…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> B_ACNTB_BMNN-C B_ACNTB_PITT Acinetobacter baumannii complex Acinetobacter pi…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> B_ACNTB_BMNN-C B_ACNTB_SFRT Acinetobacter baumannii complex Acinetobacter se…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> B_BCTRD_FRGL-C B_BCTRD_FRGL Bacteroides fragilis complex Bacteroides frag…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> B_BCTRD_FRGL-C B_BCTRD_OVTS Bacteroides fragilis complex Bacteroides ovat…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> B_BCTRD_FRGL-C B_BCTRD_THTT Bacteroides fragilis complex Bacteroides thet…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> B_BCTRD_FRGL-C B_BCTRD_VLGT Bacteroides fragilis complex Bacteroides vulg…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 434 more rows</span></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># these are all species in the Bacteroides fragilis group, as per WHONET:</span></span></span>
|
||||
<span class="r-in"><span><span class="va">microorganisms.groups</span><span class="op">[</span><span class="va">microorganisms.groups</span><span class="op">$</span><span class="va">mo_group</span> <span class="op">==</span> <span class="st">"B_BCTRD_FRGL-C"</span>, <span class="op">]</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 5 × 4</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> mo_group mo mo_group_name mo_name </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><mo></span> <span style="color: #949494; font-style: italic;"><mo></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> B_BCTRD_FRGL-C B_BCTRD_FRGL Bacteroides fragilis complex Bacteroides fragilis </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> B_BCTRD_FRGL-C B_BCTRD_OVTS Bacteroides fragilis complex Bacteroides ovatus </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> B_BCTRD_FRGL-C B_BCTRD_THTT Bacteroides fragilis complex Bacteroides thetaiot…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">4</span> B_BCTRD_FRGL-C B_BCTRD_VLGT Bacteroides fragilis complex Bacteroides vulgatus </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">5</span> B_BCTRD_FRGL-C B_PRBCT_DSTS Bacteroides fragilis complex Parabacteroides dist…</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
@ -255,24 +255,7 @@
|
||||
<div class="section level2">
|
||||
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="va">microorganisms</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 52,169 × 23</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> mo fullname status kingdom phylum class order family genus</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><mo></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> B_GRAMN (unknown Gra… accep… Bacter… (unkn… (unk… (unk… <span style="color: #949494;">"</span>(unk… <span style="color: #949494;">"</span>(un…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> B_GRAMP (unknown Gra… accep… Bacter… (unkn… (unk… (unk… <span style="color: #949494;">"</span>(unk… <span style="color: #949494;">"</span>(un…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> B_ANAER-NEG (unknown ana… accep… Bacter… (unkn… (unk… (unk… <span style="color: #949494;">"</span>(unk… <span style="color: #949494;">"</span>(un…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> B_ANAER-POS (unknown ana… accep… Bacter… (unkn… (unk… (unk… <span style="color: #949494;">"</span>(unk… <span style="color: #949494;">"</span>(un…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> B_ANAER (unknown ana… accep… Bacter… (unkn… (unk… (unk… <span style="color: #949494;">"</span>(unk… <span style="color: #949494;">"</span>(un…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> F_FUNGUS (unknown fun… accep… Fungi (unkn… (unk… (unk… <span style="color: #949494;">"</span>(unk… <span style="color: #949494;">"</span>(un…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> UNKNOWN (unknown nam… accep… (unkno… (unkn… (unk… (unk… <span style="color: #949494;">"</span>(unk… <span style="color: #949494;">"</span>(un…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> F_YEAST (unknown yea… accep… Fungi (unkn… (unk… (unk… <span style="color: #949494;">"</span>(unk… <span style="color: #949494;">"</span>(un…</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> B_[FAM]_ABDTBCTR Abditibacter… accep… Bacter… Abdit… Abdi… Abdi… <span style="color: #949494;">"</span>Abdi… <span style="color: #949494;">""</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> B_[ORD]_ABDTBCTR Abditibacter… accep… Bacter… Abdit… Abdi… Abdi… <span style="color: #949494;">""</span> <span style="color: #949494;">""</span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 52,159 more rows</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 14 more variables: species <chr>, subspecies <chr>, rank <chr>, ref <chr>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># oxygen_tolerance <chr>, source <chr>, lpsn <chr>, lpsn_parent <chr>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># lpsn_renamed_to <chr>, gbif <chr>, gbif_parent <chr>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># gbif_renamed_to <chr>, prevalence <dbl>, snomed <list></span></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
@ -225,30 +225,16 @@
|
||||
<span class="r-msg co"><span class="r-pr">#></span> ℹ Reset 17 previously matched input values.</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="fu"><a href="as.mo.html">as.mo</a></span><span class="op">(</span><span class="st">"E. coli"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'mo'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] B_ESCHR_COLI</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu"><a href="as.mo.html">mo_uncertainties</a></span><span class="op">(</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Matching scores are based on the resemblance between the input and the full</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> taxonomic name, and the pathogenicity in humans. See ?mo_matching_score.</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> --------------------------------------------------------------------------------</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> "E. coli" -> Escherichia coli (B_ESCHR_COLI, 0.688)</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Also matched: Enterobacter cowanii (0.600), Eubacterium combesii</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> (0.600), Eggerthia catenaformis (0.591), Eubacterium callanderi</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> (0.591), Enterocloster citroniae (0.587), Eubacterium cylindroides</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> (0.583), Enterococcus casseliflavus (0.577), Enterobacter cloacae</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> cloacae (0.571), Enterobacter cloacae complex (0.571), and Ehrlichia</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> canis (0.567)</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Only the first 10 other matches of each record are shown. Run</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> print(mo_uncertainties(), n = ...) to view more entries, or save</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> mo_uncertainties() to an object.</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> No uncertainties to show. Only uncertainties of the last call to as.mo()</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> or any mo_*() function are stored.</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="fu">mo_matching_score</span><span class="op">(</span></span></span>
|
||||
<span class="r-in"><span> x <span class="op">=</span> <span class="st">"E. coli"</span>,</span></span>
|
||||
<span class="r-in"><span> n <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"Escherichia coli"</span>, <span class="st">"Entamoeba coli"</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.6875000 0.3809524</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchmatch, x, table, as.integer(nomatch[1L])):</span> NULL value passed as symbol address</span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
</main><aside class="col-md-3"><nav id="toc"><h2>On this page</h2>
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
@ -461,7 +461,7 @@
|
||||
). This function returns a <a href="https://rdrr.io/r/base/factor.html" class="external-link">factor</a> with the levels <em>Pathogenic</em>, <em>Potentially pathogenic</em>, <em>Non-pathogenic</em>, and <em>Unknown</em>.</p>
|
||||
<p>Determination of the Gram stain (<code>mo_gramstain()</code>) will be based on the taxonomic kingdom and phylum. Originally, Cavalier-Smith defined the so-called subkingdoms Negibacteria and Posibacteria (2002, <a href="https://pubmed.ncbi.nlm.nih.gov/11837318/" class="external-link">PMID 11837318</a>), and only considered these phyla as Posibacteria: Actinobacteria, Chloroflexi, Firmicutes, and Tenericutes. These phyla were later renamed to Actinomycetota, Chloroflexota, Bacillota, and Mycoplasmatota (2021, <a href="https://pubmed.ncbi.nlm.nih.gov/34694987/" class="external-link">PMID 34694987</a>). Bacteria in these phyla are considered Gram-positive in this <code>AMR</code> package, except for members of the class Negativicutes (within phylum Bacillota) which are Gram-negative. All other bacteria are considered Gram-negative. Species outside the kingdom of Bacteria will return a value <code>NA</code>. Functions <code>mo_is_gram_negative()</code> and <code>mo_is_gram_positive()</code> always return <code>TRUE</code> or <code>FALSE</code> (or <code>NA</code> when the input is <code>NA</code> or the MO code is <code>UNKNOWN</code>), thus always return <code>FALSE</code> for species outside the taxonomic kingdom of Bacteria.</p>
|
||||
<p>Determination of yeasts (<code>mo_is_yeast()</code>) will be based on the taxonomic kingdom and class. <em>Budding yeasts</em> are fungi of the phylum Ascomycota, class Saccharomycetes (also called Hemiascomycetes). <em>True yeasts</em> are aggregated into the underlying order Saccharomycetales. Thus, for all microorganisms that are member of the taxonomic class Saccharomycetes, the function will return <code>TRUE</code>. It returns <code>FALSE</code> otherwise (or <code>NA</code> when the input is <code>NA</code> or the MO code is <code>UNKNOWN</code>).</p>
|
||||
<p>Determination of intrinsic resistance (<code>mo_is_intrinsic_resistant()</code>) will be based on the <a href="intrinsic_resistant.html">intrinsic_resistant</a> data set, which is based on <a href="https://www.eucast.org/expert_rules_and_expected_phenotypes/" class="external-link">'EUCAST Expert Rules' and 'EUCAST Intrinsic Resistance and Unusual Phenotypes' v3.3</a> (2021). The <code>mo_is_intrinsic_resistant()</code> function can be vectorised over both argument <code>x</code> (input for microorganisms) and <code>ab</code> (input for antibiotics).</p>
|
||||
<p>Determination of intrinsic resistance (<code>mo_is_intrinsic_resistant()</code>) will be based on the <a href="intrinsic_resistant.html">intrinsic_resistant</a> data set, which is based on <a href="https://www.eucast.org/expert_rules_and_expected_phenotypes" class="external-link">'EUCAST Expert Rules' and 'EUCAST Intrinsic Resistance and Unusual Phenotypes' v3.3</a> (2021). The <code>mo_is_intrinsic_resistant()</code> function can be vectorised over both argument <code>x</code> (input for microorganisms) and <code>ab</code> (input for antibiotics).</p>
|
||||
<p>Determination of bacterial oxygen tolerance (<code>mo_oxygen_tolerance()</code>) will be based on BacDive, see <em>Source</em>. The function <code>mo_is_anaerobic()</code> only returns <code>TRUE</code> if the oxygen tolerance is <code>"anaerobe"</code>, indicting an obligate anaerobic species or genus. It always returns <code>FALSE</code> for species outside the taxonomic kingdom of Bacteria.</p>
|
||||
<p>The function <code>mo_url()</code> will return the direct URL to the online database entry, which also shows the scientific reference of the concerned species.</p>
|
||||
<p>SNOMED codes (<code>mo_snomed()</code>) are from the version of July 1st, 2021. See <em>Source</em> and the <a href="microorganisms.html">microorganisms</a> data set for more info.</p>
|
||||
@ -509,151 +509,145 @@
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="co"># taxonomic tree -----------------------------------------------------------</span></span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="fu">mo_kingdom</span><span class="op">(</span><span class="st">"Klebsiella pneumoniae"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Bacteria"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_phylum</span><span class="op">(</span><span class="st">"Klebsiella pneumoniae"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Pseudomonadota"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_class</span><span class="op">(</span><span class="st">"Klebsiella pneumoniae"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Gammaproteobacteria"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_order</span><span class="op">(</span><span class="st">"Klebsiella pneumoniae"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Enterobacterales"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_family</span><span class="op">(</span><span class="st">"Klebsiella pneumoniae"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Enterobacteriaceae"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_genus</span><span class="op">(</span><span class="st">"Klebsiella pneumoniae"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Klebsiella"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_species</span><span class="op">(</span><span class="st">"Klebsiella pneumoniae"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "pneumoniae"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_subspecies</span><span class="op">(</span><span class="st">"Klebsiella pneumoniae"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] ""</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># full names and short names -----------------------------------------------</span></span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="fu">mo_name</span><span class="op">(</span><span class="st">"Klebsiella pneumoniae"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Klebsiella pneumoniae"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_fullname</span><span class="op">(</span><span class="st">"Klebsiella pneumoniae"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Klebsiella pneumoniae"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_shortname</span><span class="op">(</span><span class="st">"Klebsiella pneumoniae"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "K. pneumoniae"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># other properties ---------------------------------------------------------</span></span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="fu">mo_pathogenicity</span><span class="op">(</span><span class="st">"Klebsiella pneumoniae"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] Pathogenic</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Levels: Pathogenic < Potentially pathogenic < Non-pathogenic < Unknown</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_gramstain</span><span class="op">(</span><span class="st">"Klebsiella pneumoniae"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Gram-negative"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_snomed</span><span class="op">(</span><span class="st">"Klebsiella pneumoniae"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [[1]]</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "1098101000112102" "446870005" "1098201000112108" "409801009" </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [5] "56415008" "714315002" "713926009" </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_type</span><span class="op">(</span><span class="st">"Klebsiella pneumoniae"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Bacteria"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_rank</span><span class="op">(</span><span class="st">"Klebsiella pneumoniae"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "species"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_url</span><span class="op">(</span><span class="st">"Klebsiella pneumoniae"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Klebsiella pneumoniae </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> "https://lpsn.dsmz.de/species/klebsiella-pneumoniae" </span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_is_yeast</span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"Candida"</span>, <span class="st">"Trichophyton"</span>, <span class="st">"Klebsiella"</span><span class="op">)</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] TRUE FALSE FALSE</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># scientific reference -----------------------------------------------------</span></span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="fu">mo_ref</span><span class="op">(</span><span class="st">"Klebsiella aerogenes"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Tindall et al., 2017"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_authors</span><span class="op">(</span><span class="st">"Klebsiella aerogenes"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Tindall et al."</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_year</span><span class="op">(</span><span class="st">"Klebsiella aerogenes"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 2017</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_lpsn</span><span class="op">(</span><span class="st">"Klebsiella aerogenes"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "777146"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_gbif</span><span class="op">(</span><span class="st">"Klebsiella aerogenes"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "9281703"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_synonyms</span><span class="op">(</span><span class="st">"Klebsiella aerogenes"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Hormaeche et al., 1960 Bascomb et al., 1971 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> "Enterobacter aerogenes" "Klebsiella mobilis" </span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># abbreviations known in the field -----------------------------------------</span></span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="fu">mo_genus</span><span class="op">(</span><span class="st">"MRSA"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Staphylococcus"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_species</span><span class="op">(</span><span class="st">"MRSA"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "aureus"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_shortname</span><span class="op">(</span><span class="st">"VISA"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "S. aureus"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_gramstain</span><span class="op">(</span><span class="st">"VISA"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Gram-positive"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="fu">mo_genus</span><span class="op">(</span><span class="st">"EHEC"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Escherichia"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_species</span><span class="op">(</span><span class="st">"EIEC"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "coli"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_name</span><span class="op">(</span><span class="st">"UPEC"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Escherichia coli"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># known subspecies ---------------------------------------------------------</span></span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="fu">mo_fullname</span><span class="op">(</span><span class="st">"K. pneu rh"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Klebsiella pneumoniae rhinoscleromatis"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_shortname</span><span class="op">(</span><span class="st">"K. pneu rh"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "K. pneumoniae"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># \donttest{</span></span></span>
|
||||
<span class="r-in"><span><span class="co"># Becker classification, see ?as.mo ----------------------------------------</span></span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="fu">mo_fullname</span><span class="op">(</span><span class="st">"Staph epidermidis"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Staphylococcus epidermidis"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_fullname</span><span class="op">(</span><span class="st">"Staph epidermidis"</span>, Becker <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Coagulase-negative Staphylococcus (CoNS)"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_shortname</span><span class="op">(</span><span class="st">"Staph epidermidis"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "S. epidermidis"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_shortname</span><span class="op">(</span><span class="st">"Staph epidermidis"</span>, Becker <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "CoNS"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># Lancefield classification, see ?as.mo ------------------------------------</span></span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="fu">mo_fullname</span><span class="op">(</span><span class="st">"Strep agalactiae"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Streptococcus agalactiae"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_fullname</span><span class="op">(</span><span class="st">"Strep agalactiae"</span>, Lancefield <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Streptococcus Group B"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_shortname</span><span class="op">(</span><span class="st">"Strep agalactiae"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "S. agalactiae"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_shortname</span><span class="op">(</span><span class="st">"Strep agalactiae"</span>, Lancefield <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "GBS"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># language support --------------------------------------------------------</span></span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="fu">mo_gramstain</span><span class="op">(</span><span class="st">"Klebsiella pneumoniae"</span>, language <span class="op">=</span> <span class="st">"de"</span><span class="op">)</span> <span class="co"># German</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Gramnegativ"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_gramstain</span><span class="op">(</span><span class="st">"Klebsiella pneumoniae"</span>, language <span class="op">=</span> <span class="st">"nl"</span><span class="op">)</span> <span class="co"># Dutch</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Gram-negatief"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_gramstain</span><span class="op">(</span><span class="st">"Klebsiella pneumoniae"</span>, language <span class="op">=</span> <span class="st">"es"</span><span class="op">)</span> <span class="co"># Spanish</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Gram negativo"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_gramstain</span><span class="op">(</span><span class="st">"Klebsiella pneumoniae"</span>, language <span class="op">=</span> <span class="st">"el"</span><span class="op">)</span> <span class="co"># Greek</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Αρνητικό κατά Gram"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_gramstain</span><span class="op">(</span><span class="st">"Klebsiella pneumoniae"</span>, language <span class="op">=</span> <span class="st">"uk"</span><span class="op">)</span> <span class="co"># Ukrainian</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Грамнегативні"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># mo_type is equal to mo_kingdom, but mo_kingdom will remain untranslated</span></span></span>
|
||||
<span class="r-in"><span><span class="fu">mo_kingdom</span><span class="op">(</span><span class="st">"Klebsiella pneumoniae"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Bacteria"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_type</span><span class="op">(</span><span class="st">"Klebsiella pneumoniae"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Bacteria"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_kingdom</span><span class="op">(</span><span class="st">"Klebsiella pneumoniae"</span>, language <span class="op">=</span> <span class="st">"zh"</span><span class="op">)</span> <span class="co"># Chinese, no effect</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Bacteria"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_type</span><span class="op">(</span><span class="st">"Klebsiella pneumoniae"</span>, language <span class="op">=</span> <span class="st">"zh"</span><span class="op">)</span> <span class="co"># Chinese, translated</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "细菌"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="fu">mo_fullname</span><span class="op">(</span><span class="st">"S. pyogenes"</span>, Lancefield <span class="op">=</span> <span class="cn">TRUE</span>, language <span class="op">=</span> <span class="st">"de"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Streptococcus Gruppe A"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">mo_fullname</span><span class="op">(</span><span class="st">"S. pyogenes"</span>, Lancefield <span class="op">=</span> <span class="cn">TRUE</span>, language <span class="op">=</span> <span class="st">"uk"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Streptococcus Група A"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># other --------------------------------------------------------------------</span></span></span>
|
||||
@ -664,145 +658,28 @@
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/filter.html" class="external-link">filter</a></span><span class="op">(</span><span class="fu">mo_is_gram_positive</span><span class="op">(</span><span class="op">)</span><span class="op">)</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%>%</a></span></span></span>
|
||||
<span class="r-in"><span> <span class="fu"><a href="count.html">count</a></span><span class="op">(</span><span class="fu">mo_genus</span><span class="op">(</span><span class="op">)</span>, sort <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> ℹ Using column 'mo' as input for mo_is_gram_positive()</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> ℹ Using column 'mo' as input for mo_genus()</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 18 × 2</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> `mo_genus()` n</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><int></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> Staphylococcus 840</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> Streptococcus 275</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> Enterococcus 83</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> Corynebacterium 17</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> Micrococcus 6</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> Gemella 3</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> Aerococcus 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> Cutibacterium 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> Dermabacter 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> Fusibacter 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">11</span> Globicatella 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">12</span> Granulicatella 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">13</span> Lactobacillus 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">14</span> Leuconostoc 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">15</span> Listeria 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">16</span> Paenibacillus 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">17</span> Rothia 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">18</span> Schaalia 1</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in filter(., mo_is_gram_positive()):</span> <span style="color: #00BBBB;">ℹ</span> In argument: `mo_is_gram_positive()`.</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span style="font-weight: bold;">Caused by error:</span></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span style="color: #BBBB00;">!</span> in mo_is_gram_positive(): argument x is missing and no column with info</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> about microorganisms could be found.</span>
|
||||
<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="st"><a href="https://dplyr.tidyverse.org" class="external-link">"dplyr"</a></span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span>
|
||||
<span class="r-in"><span> <span class="va">example_isolates</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%>%</a></span></span></span>
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/filter.html" class="external-link">filter</a></span><span class="op">(</span><span class="fu">mo_is_intrinsic_resistant</span><span class="op">(</span>ab <span class="op">=</span> <span class="st">"vanco"</span><span class="op">)</span><span class="op">)</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%>%</a></span></span></span>
|
||||
<span class="r-in"><span> <span class="fu"><a href="count.html">count</a></span><span class="op">(</span><span class="fu">mo_genus</span><span class="op">(</span><span class="op">)</span>, sort <span class="op">=</span> <span class="cn">TRUE</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> ℹ Using column 'mo' as input for mo_is_intrinsic_resistant()</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> ℹ Using column 'mo' as input for mo_genus()</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 20 × 2</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> `mo_genus()` n</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><int></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> Escherichia 467</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> Klebsiella 77</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> Proteus 39</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> Pseudomonas 30</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> Serratia 25</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> Enterobacter 23</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> Citrobacter 11</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> Haemophilus 8</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> Acinetobacter 6</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> Morganella 6</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">11</span> Pantoea 4</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">12</span> Salmonella 3</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">13</span> Neisseria 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">14</span> Stenotrophomonas 2</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">15</span> Campylobacter 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">16</span> Enterococcus 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">17</span> Hafnia 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">18</span> Lactobacillus 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">19</span> Leuconostoc 1</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">20</span> Pseudescherichia 1</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in filter(., mo_is_intrinsic_resistant(ab = "vanco")):</span> <span style="color: #00BBBB;">ℹ</span> In argument: `mo_is_intrinsic_resistant(ab = "vanco")`.</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span style="font-weight: bold;">Caused by error:</span></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span style="color: #BBBB00;">!</span> in mo_is_intrinsic_resistant(): argument x is missing and no column with</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> info about microorganisms could be found.</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># get a list with the complete taxonomy (from kingdom to subspecies)</span></span></span>
|
||||
<span class="r-in"><span><span class="fu">mo_taxonomy</span><span class="op">(</span><span class="st">"Klebsiella pneumoniae"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $kingdom</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Bacteria"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $phylum</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Pseudomonadota"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $class</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Gammaproteobacteria"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $order</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Enterobacterales"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $family</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Enterobacteriaceae"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $genus</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Klebsiella"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $species</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "pneumoniae"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $subspecies</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] ""</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># get a list with the taxonomy, the authors, Gram-stain,</span></span></span>
|
||||
<span class="r-in"><span><span class="co"># SNOMED codes, and URL to the online database</span></span></span>
|
||||
<span class="r-in"><span><span class="fu">mo_info</span><span class="op">(</span><span class="st">"Klebsiella pneumoniae"</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $mo</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "B_KLBSL_PNMN"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $kingdom</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Bacteria"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $phylum</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Pseudomonadota"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $class</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Gammaproteobacteria"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $order</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Enterobacterales"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $family</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Enterobacteriaceae"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $genus</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Klebsiella"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $species</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "pneumoniae"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $subspecies</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] ""</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $status</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "accepted"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $synonyms</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> NULL</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $gramstain</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Gram-negative"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $oxygen_tolerance</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "aerobe"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $url</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "https://lpsn.dsmz.de/species/klebsiella-pneumoniae"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $ref</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Trevisan, 1887"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $snomed</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "1098101000112102" "446870005" "1098201000112108" "409801009" </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [5] "56415008" "714315002" "713926009" </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $lpsn</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "777151"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> $gbif</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "3221874"</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="co"># }</span></span></span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
|
@ -12,7 +12,7 @@ This is the fastest way to have your organisation (or analysis) specific codes p
|
||||
|
||||
<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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
|
Before Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 88 KiB |
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
@ -273,22 +273,9 @@
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://ggplot2.tidyverse.org/reference/labs.html" class="external-link">labs</a></span><span class="op">(</span>title <span class="op">=</span> <span class="st">"Title here"</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span> <span class="op">}</span></span></span>
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>There were 73 warnings in `summarise()`.</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> The first warning was:</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> <span style="color: #00BBBB;">ℹ</span> In argument: `PEN = (function (..., minimum = 30, as_percent = FALSE,</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> only_all_tested = FALSE) ...`.</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> <span style="color: #00BBBB;">ℹ</span> In group 5: `order = "Lactobacillales"`, `genus = "Enterococcus"`.</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> Caused by warning:</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> <span style="color: #BBBB00;">!</span> Introducing NA: only 14 results available for PEN in group: order =</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> "Lactobacillales", genus = "Enterococcus" (minimum = 30).</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> <span style="color: #00BBBB;">ℹ</span> Run `dplyr::last_dplyr_warnings()` to see the 72 remaining warnings.</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> ℹ Columns selected for PCA: "AMC", "CAZ", "CTX", "CXM", "GEN", "SXT",</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> "TMP", and "TOB". Total observations available: 7.</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Groups (n=4, named as 'order'):</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "Caryophanales" "Enterobacterales" "Lactobacillales" "Pseudomonadales" </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> </span>
|
||||
<span class="r-plt img"><img src="pca-1.png" alt="" width="700" height="433"></span>
|
||||
<span class="r-plt img"><img src="pca-2.png" alt="" width="700" height="433"></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in group_by(., order = mo_order(mo), genus = mo_genus(mo)):</span> <span style="color: #00BBBB;">ℹ</span> In argument: `order = mo_order(mo)`.</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span style="font-weight: bold;">Caused by error in `.Call()`:</span></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span style="color: #BBBB00;">!</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="co"># }</span></span></span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
|
Before Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 26 KiB |
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
@ -177,6 +177,8 @@
|
||||
<span> colours_SIR <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"#3CAEA3"</span>, <span class="st">"#F6D55C"</span>, <span class="st">"#ED553B"</span><span class="op">)</span>,</span>
|
||||
<span> language <span class="op">=</span> <span class="fu"><a href="translate.html">get_AMR_locale</a></span><span class="op">(</span><span class="op">)</span>,</span>
|
||||
<span> expand <span class="op">=</span> <span class="cn">TRUE</span>,</span>
|
||||
<span> include_PKPD <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/options.html" class="external-link">getOption</a></span><span class="op">(</span><span class="st">"AMR_include_PKPD"</span>, <span class="cn">TRUE</span><span class="op">)</span>,</span>
|
||||
<span> breakpoint_type <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/options.html" class="external-link">getOption</a></span><span class="op">(</span><span class="st">"AMR_breakpoint_type"</span>, <span class="st">"human"</span><span class="op">)</span>,</span>
|
||||
<span> <span class="va">...</span></span>
|
||||
<span><span class="op">)</span></span>
|
||||
<span></span>
|
||||
@ -192,6 +194,8 @@
|
||||
<span> colours_SIR <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"#3CAEA3"</span>, <span class="st">"#F6D55C"</span>, <span class="st">"#ED553B"</span><span class="op">)</span>,</span>
|
||||
<span> language <span class="op">=</span> <span class="fu"><a href="translate.html">get_AMR_locale</a></span><span class="op">(</span><span class="op">)</span>,</span>
|
||||
<span> expand <span class="op">=</span> <span class="cn">TRUE</span>,</span>
|
||||
<span> include_PKPD <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/options.html" class="external-link">getOption</a></span><span class="op">(</span><span class="st">"AMR_include_PKPD"</span>, <span class="cn">TRUE</span><span class="op">)</span>,</span>
|
||||
<span> breakpoint_type <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/options.html" class="external-link">getOption</a></span><span class="op">(</span><span class="st">"AMR_breakpoint_type"</span>, <span class="st">"human"</span><span class="op">)</span>,</span>
|
||||
<span> <span class="va">...</span></span>
|
||||
<span><span class="op">)</span></span>
|
||||
<span></span>
|
||||
@ -210,6 +214,8 @@
|
||||
<span> colours_SIR <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"#3CAEA3"</span>, <span class="st">"#F6D55C"</span>, <span class="st">"#ED553B"</span><span class="op">)</span>,</span>
|
||||
<span> language <span class="op">=</span> <span class="fu"><a href="translate.html">get_AMR_locale</a></span><span class="op">(</span><span class="op">)</span>,</span>
|
||||
<span> expand <span class="op">=</span> <span class="cn">TRUE</span>,</span>
|
||||
<span> include_PKPD <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/options.html" class="external-link">getOption</a></span><span class="op">(</span><span class="st">"AMR_include_PKPD"</span>, <span class="cn">TRUE</span><span class="op">)</span>,</span>
|
||||
<span> breakpoint_type <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/options.html" class="external-link">getOption</a></span><span class="op">(</span><span class="st">"AMR_breakpoint_type"</span>, <span class="st">"human"</span><span class="op">)</span>,</span>
|
||||
<span> <span class="va">...</span></span>
|
||||
<span><span class="op">)</span></span>
|
||||
<span></span>
|
||||
@ -225,6 +231,8 @@
|
||||
<span> colours_SIR <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"#3CAEA3"</span>, <span class="st">"#F6D55C"</span>, <span class="st">"#ED553B"</span><span class="op">)</span>,</span>
|
||||
<span> language <span class="op">=</span> <span class="fu"><a href="translate.html">get_AMR_locale</a></span><span class="op">(</span><span class="op">)</span>,</span>
|
||||
<span> expand <span class="op">=</span> <span class="cn">TRUE</span>,</span>
|
||||
<span> include_PKPD <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/options.html" class="external-link">getOption</a></span><span class="op">(</span><span class="st">"AMR_include_PKPD"</span>, <span class="cn">TRUE</span><span class="op">)</span>,</span>
|
||||
<span> breakpoint_type <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/options.html" class="external-link">getOption</a></span><span class="op">(</span><span class="st">"AMR_breakpoint_type"</span>, <span class="st">"human"</span><span class="op">)</span>,</span>
|
||||
<span> <span class="va">...</span></span>
|
||||
<span><span class="op">)</span></span>
|
||||
<span></span>
|
||||
@ -294,6 +302,14 @@
|
||||
<dd><p>a <a href="https://rdrr.io/r/base/logical.html" class="external-link">logical</a> to indicate whether the range on the x axis should be expanded between the lowest and highest value. For MIC values, intermediate values will be factors of 2 starting from the highest MIC value. For disk diameters, the whole diameter range will be filled.</p></dd>
|
||||
|
||||
|
||||
<dt>include_PKPD</dt>
|
||||
<dd><p>a <a href="https://rdrr.io/r/base/logical.html" class="external-link">logical</a> to indicate that PK/PD clinical breakpoints must be applied as a last resort - the default is <code>TRUE</code>. Can also be set with the <a href="AMR-options.html">package option</a> <code><a href="AMR-options.html">AMR_include_PKPD</a></code>.</p></dd>
|
||||
|
||||
|
||||
<dt>breakpoint_type</dt>
|
||||
<dd><p>the type of breakpoints to use, either "ECOFF", "animal", or "human". ECOFF stands for Epidemiological Cut-Off values. The default is <code>"human"</code>, which can also be set with the <a href="AMR-options.html">package option</a> <code><a href="AMR-options.html">AMR_breakpoint_type</a></code>.</p></dd>
|
||||
|
||||
|
||||
<dt>...</dt>
|
||||
<dd><p>arguments passed on to methods</p></dd>
|
||||
|
||||
@ -317,37 +333,40 @@
|
||||
<div class="section level2">
|
||||
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="va">some_mic_values</span> <span class="op"><-</span> <span class="fu"><a href="random.html">random_mic</a></span><span class="op">(</span>size <span class="op">=</span> <span class="fl">100</span><span class="op">)</span></span></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="va">some_disk_values</span> <span class="op"><-</span> <span class="fu"><a href="random.html">random_disk</a></span><span class="op">(</span>size <span class="op">=</span> <span class="fl">100</span>, mo <span class="op">=</span> <span class="st">"Escherichia coli"</span>, ab <span class="op">=</span> <span class="st">"cipro"</span><span class="op">)</span></span></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="va">some_sir_values</span> <span class="op"><-</span> <span class="fu"><a href="random.html">random_sir</a></span><span class="op">(</span><span class="fl">50</span>, prob_SIR <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="fl">0.55</span>, <span class="fl">0.05</span>, <span class="fl">0.30</span><span class="op">)</span><span class="op">)</span></span></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="fu">plot</span><span class="op">(</span><span class="va">some_mic_values</span><span class="op">)</span></span></span>
|
||||
<span class="r-plt img"><img src="plot-1.png" alt="" width="700" height="433"></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in eval(expr, envir, enclos):</span> object 'some_mic_values' not found</span>
|
||||
<span class="r-in"><span><span class="fu">plot</span><span class="op">(</span><span class="va">some_disk_values</span><span class="op">)</span></span></span>
|
||||
<span class="r-plt img"><img src="plot-2.png" alt="" width="700" height="433"></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in eval(expr, envir, enclos):</span> object 'some_disk_values' not found</span>
|
||||
<span class="r-in"><span><span class="fu">plot</span><span class="op">(</span><span class="va">some_sir_values</span><span class="op">)</span></span></span>
|
||||
<span class="r-plt img"><img src="plot-3.png" alt="" width="700" height="433"></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in eval(expr, envir, enclos):</span> object 'some_sir_values' not found</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># when providing the microorganism and antibiotic, colours will show interpretations:</span></span></span>
|
||||
<span class="r-in"><span><span class="fu">plot</span><span class="op">(</span><span class="va">some_mic_values</span>, mo <span class="op">=</span> <span class="st">"S. aureus"</span>, ab <span class="op">=</span> <span class="st">"ampicillin"</span><span class="op">)</span></span></span>
|
||||
<span class="r-plt img"><img src="plot-4.png" alt="" width="700" height="433"></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in eval(expr, envir, enclos):</span> object 'some_mic_values' not found</span>
|
||||
<span class="r-in"><span><span class="fu">plot</span><span class="op">(</span><span class="va">some_disk_values</span>, mo <span class="op">=</span> <span class="st">"Escherichia coli"</span>, ab <span class="op">=</span> <span class="st">"cipro"</span><span class="op">)</span></span></span>
|
||||
<span class="r-plt img"><img src="plot-5.png" alt="" width="700" height="433"></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in eval(expr, envir, enclos):</span> object 'some_disk_values' not found</span>
|
||||
<span class="r-in"><span><span class="fu">plot</span><span class="op">(</span><span class="va">some_disk_values</span>, mo <span class="op">=</span> <span class="st">"Escherichia coli"</span>, ab <span class="op">=</span> <span class="st">"cipro"</span>, language <span class="op">=</span> <span class="st">"uk"</span><span class="op">)</span></span></span>
|
||||
<span class="r-plt img"><img src="plot-6.png" alt="" width="700" height="433"></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in eval(expr, envir, enclos):</span> object 'some_disk_values' not found</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># \donttest{</span></span></span>
|
||||
<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="st"><a href="https://ggplot2.tidyverse.org" class="external-link">"ggplot2"</a></span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span>
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://ggplot2.tidyverse.org/reference/autoplot.html" class="external-link">autoplot</a></span><span class="op">(</span><span class="va">some_mic_values</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-plt img"><img src="plot-7.png" alt="" width="700" height="433"></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in eval(expr, envir, enclos):</span> object 'some_mic_values' not found</span>
|
||||
<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="st"><a href="https://ggplot2.tidyverse.org" class="external-link">"ggplot2"</a></span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span>
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://ggplot2.tidyverse.org/reference/autoplot.html" class="external-link">autoplot</a></span><span class="op">(</span><span class="va">some_disk_values</span>, mo <span class="op">=</span> <span class="st">"Escherichia coli"</span>, ab <span class="op">=</span> <span class="st">"cipro"</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-plt img"><img src="plot-8.png" alt="" width="700" height="433"></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in eval(expr, envir, enclos):</span> object 'some_disk_values' not found</span>
|
||||
<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="st"><a href="https://ggplot2.tidyverse.org" class="external-link">"ggplot2"</a></span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span>
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://ggplot2.tidyverse.org/reference/autoplot.html" class="external-link">autoplot</a></span><span class="op">(</span><span class="va">some_sir_values</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-plt img"><img src="plot-9.png" alt="" width="700" height="433"></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in eval(expr, envir, enclos):</span> object 'some_sir_values' not found</span>
|
||||
<span class="r-in"><span><span class="co"># }</span></span></span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
|
@ -12,7 +12,7 @@ resistance() should be used to calculate resistance, susceptibility() should be
|
||||
|
||||
<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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
@ -315,7 +315,7 @@ resistance() should be used to calculate resistance, susceptibility() should be
|
||||
<h2 id="interpretation-of-sir">Interpretation of SIR<a class="anchor" aria-label="anchor" href="#interpretation-of-sir"></a></h2>
|
||||
|
||||
|
||||
<p>In 2019, the European Committee on Antimicrobial Susceptibility Testing (EUCAST) has decided to change the definitions of susceptibility testing categories S, I, and R as shown below (<a href="https://www.eucast.org/newsiandr/" class="external-link">https://www.eucast.org/newsiandr/</a>):</p><ul><li><p><strong>S - Susceptible, standard dosing regimen</strong><br>
|
||||
<p>In 2019, the European Committee on Antimicrobial Susceptibility Testing (EUCAST) has decided to change the definitions of susceptibility testing categories S, I, and R as shown below (<a href="https://www.eucast.org/newsiandr" class="external-link">https://www.eucast.org/newsiandr</a>):</p><ul><li><p><strong>S - Susceptible, standard dosing regimen</strong><br>
|
||||
A microorganism is categorised as "Susceptible, standard dosing regimen", when there is a high likelihood of therapeutic success using a standard dosing regimen of the agent.</p></li>
|
||||
<li><p><strong>I - Susceptible, increased exposure</strong> <em><br>
|
||||
A microorganism is categorised as "Susceptible, Increased exposure</em>" when there is a high likelihood of therapeutic success because exposure to the agent is increased by adjusting the dosing regimen or by its concentration at the site of infection.</p></li>
|
||||
@ -334,63 +334,44 @@ A microorganism is categorised as "Resistant" when there is a high likelihood of
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="co"># example_isolates is a data set available in the AMR package.</span></span></span>
|
||||
<span class="r-in"><span><span class="co"># run ?example_isolates for more info.</span></span></span>
|
||||
<span class="r-in"><span><span class="va">example_isolates</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 2,000 × 46</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> date patient age gender ward mo PEN OXA FLC AMX </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><date></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><dbl></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><mo></span> <span style="color: #949494; font-style: italic;"><sir></span> <span style="color: #949494; font-style: italic;"><sir></span> <span style="color: #949494; font-style: italic;"><sir></span> <span style="color: #949494; font-style: italic;"><sir></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> 2002-01-02 A77334 65 F Clinical B_ESCHR_COLI R NA NA NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> 2002-01-03 A77334 65 F Clinical B_ESCHR_COLI R NA NA NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> 2002-01-07 067927 45 F ICU B_STPHY_EPDR R NA R NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> 2002-01-07 067927 45 F ICU B_STPHY_EPDR R NA R NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> 2002-01-13 067927 45 F ICU B_STPHY_EPDR R NA R NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> 2002-01-13 067927 45 F ICU B_STPHY_EPDR R NA R NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> 2002-01-14 462729 78 M Clinical B_STPHY_AURS R NA S R </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> 2002-01-14 462729 78 M Clinical B_STPHY_AURS R NA S R </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> 2002-01-16 067927 45 F ICU B_STPHY_EPDR R NA R NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> 2002-01-17 858515 79 F ICU B_STPHY_EPDR R NA S NA </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 1,990 more rows</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># ℹ 36 more variables: AMC <sir>, AMP <sir>, TZP <sir>, CZO <sir>, FEP <sir>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># CXM <sir>, FOX <sir>, CTX <sir>, CAZ <sir>, CRO <sir>, GEN <sir>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># TOB <sir>, AMK <sir>, KAN <sir>, TMP <sir>, SXT <sir>, NIT <sir>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># FOS <sir>, LNZ <sir>, CIP <sir>, MFX <sir>, VAN <sir>, TEC <sir>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># TCY <sir>, TGC <sir>, DOX <sir>, ERY <sir>, CLI <sir>, AZM <sir>,</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># IPM <sir>, MEM <sir>, MTR <sir>, CHL <sir>, COL <sir>, MUP <sir>, …</span></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># base R ------------------------------------------------------------</span></span></span>
|
||||
<span class="r-in"><span><span class="co"># determines %R</span></span></span>
|
||||
<span class="r-in"><span><span class="fu">resistance</span><span class="op">(</span><span class="va">example_isolates</span><span class="op">$</span><span class="va">AMX</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.5955556</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error:</span> in resistance(): NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">sir_confidence_interval</span><span class="op">(</span><span class="va">example_isolates</span><span class="op">$</span><span class="va">AMX</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.5688204 0.6218738</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">sir_confidence_interval</span><span class="op">(</span><span class="va">example_isolates</span><span class="op">$</span><span class="va">AMX</span>,</span></span>
|
||||
<span class="r-in"><span> confidence_level <span class="op">=</span> <span class="fl">0.975</span></span></span>
|
||||
<span class="r-in"><span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.5650148 0.6255670</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">sir_confidence_interval</span><span class="op">(</span><span class="va">example_isolates</span><span class="op">$</span><span class="va">AMX</span>,</span></span>
|
||||
<span class="r-in"><span> confidence_level <span class="op">=</span> <span class="fl">0.975</span>,</span></span>
|
||||
<span class="r-in"><span> collapse <span class="op">=</span> <span class="st">", "</span></span></span>
|
||||
<span class="r-in"><span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] "0.565, 0.626"</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># determines %S+I:</span></span></span>
|
||||
<span class="r-in"><span><span class="fu">susceptibility</span><span class="op">(</span><span class="va">example_isolates</span><span class="op">$</span><span class="va">AMX</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.4044444</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error:</span> in susceptibility(): NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">sir_confidence_interval</span><span class="op">(</span><span class="va">example_isolates</span><span class="op">$</span><span class="va">AMX</span>,</span></span>
|
||||
<span class="r-in"><span> ab_result <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/c.html" class="external-link">c</a></span><span class="op">(</span><span class="st">"S"</span>, <span class="st">"I"</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.3781262 0.4311796</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># be more specific</span></span></span>
|
||||
<span class="r-in"><span><span class="fu">proportion_S</span><span class="op">(</span><span class="va">example_isolates</span><span class="op">$</span><span class="va">AMX</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.4022222</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error:</span> in proportion_S(): NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">proportion_SI</span><span class="op">(</span><span class="va">example_isolates</span><span class="op">$</span><span class="va">AMX</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.4044444</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error:</span> in proportion_SI(): NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">proportion_I</span><span class="op">(</span><span class="va">example_isolates</span><span class="op">$</span><span class="va">AMX</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.002222222</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error:</span> in proportion_I(): NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">proportion_IR</span><span class="op">(</span><span class="va">example_isolates</span><span class="op">$</span><span class="va">AMX</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.5977778</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error:</span> in proportion_IR(): NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">proportion_R</span><span class="op">(</span><span class="va">example_isolates</span><span class="op">$</span><span class="va">AMX</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.5955556</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error:</span> in proportion_R(): NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># dplyr -------------------------------------------------------------</span></span></span>
|
||||
<span class="r-in"><span><span class="co"># \donttest{</span></span></span>
|
||||
@ -402,12 +383,10 @@ A microorganism is categorised as "Resistant" when there is a high likelihood of
|
||||
<span class="r-in"><span> n <span class="op">=</span> <span class="fu"><a href="count.html">n_sir</a></span><span class="op">(</span><span class="va">CIP</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span> <span class="op">)</span> <span class="co"># n_sir works like n_distinct in dplyr, see ?n_sir</span></span></span>
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 3 × 3</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> ward r n</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><dbl></span> <span style="color: #949494; font-style: italic;"><int></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> Clinical 0.147 869</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> ICU 0.190 447</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> Outpatient 0.161 93</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in summarise(., r = resistance(CIP), n = n_sir(CIP)):</span> <span style="color: #00BBBB;">ℹ</span> In argument: `r = resistance(CIP)`.</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span style="color: #00BBBB;">ℹ</span> In group 1: `ward = "Clinical"`.</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span style="font-weight: bold;">Caused by error:</span></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span style="color: #BBBB00;">!</span> in resistance(): NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="st"><a href="https://dplyr.tidyverse.org" class="external-link">"dplyr"</a></span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span>
|
||||
<span class="r-in"><span> <span class="va">example_isolates</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%>%</a></span></span></span>
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/group_by.html" class="external-link">group_by</a></span><span class="op">(</span><span class="va">ward</span><span class="op">)</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%>%</a></span></span></span>
|
||||
@ -417,12 +396,10 @@ A microorganism is categorised as "Resistant" when there is a high likelihood of
|
||||
<span class="r-in"><span> ci_max <span class="op">=</span> <span class="fu">sir_confidence_interval</span><span class="op">(</span><span class="va">CIP</span>, side <span class="op">=</span> <span class="st">"max"</span><span class="op">)</span>,</span></span>
|
||||
<span class="r-in"><span> <span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 3 × 4</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> ward cipro_R ci_min ci_max</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><dbl></span> <span style="color: #949494; font-style: italic;"><dbl></span> <span style="color: #949494; font-style: italic;"><dbl></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> Clinical 0.147 0.124 0.173</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> ICU 0.190 0.155 0.230</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> Outpatient 0.161 0.093<span style="text-decoration: underline;">2</span> 0.252</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in summarise(., cipro_R = resistance(CIP), ci_min = sir_confidence_interval(CIP, side = "min"), ci_max = sir_confidence_interval(CIP, side = "max"), ):</span> <span style="color: #00BBBB;">ℹ</span> In argument: `cipro_R = resistance(CIP)`.</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span style="color: #00BBBB;">ℹ</span> In group 1: `ward = "Clinical"`.</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span style="font-weight: bold;">Caused by error:</span></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span style="color: #BBBB00;">!</span> in resistance(): NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="st"><a href="https://dplyr.tidyverse.org" class="external-link">"dplyr"</a></span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span>
|
||||
<span class="r-in"><span> <span class="co"># scoped dplyr verbs with antibiotic selectors</span></span></span>
|
||||
<span class="r-in"><span> <span class="co"># (you could also use across() of course)</span></span></span>
|
||||
@ -433,22 +410,7 @@ A microorganism is categorised as "Resistant" when there is a high likelihood of
|
||||
<span class="r-in"><span> <span class="va">resistance</span></span></span>
|
||||
<span class="r-in"><span> <span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> ℹ For aminoglycosides() using columns 'GEN' (gentamicin), 'TOB'</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> (tobramycin), 'AMK' (amikacin), and 'KAN' (kanamycin)</span>
|
||||
<span class="r-msg co"><span class="r-pr">#></span> ℹ For carbapenems() using columns 'IPM' (imipenem) and 'MEM' (meropenem)</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> <span class="warning">Warning: </span>There was 1 warning in `summarise()`.</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> <span style="color: #00BBBB;">ℹ</span> In argument: `KAN = (function (..., minimum = 30, as_percent = FALSE,</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> only_all_tested = FALSE) ...`.</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> <span style="color: #00BBBB;">ℹ</span> In group 3: `ward = "Outpatient"`.</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> Caused by warning:</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> <span style="color: #BBBB00;">!</span> Introducing NA: only 23 results available for KAN in group: ward =</span>
|
||||
<span class="r-wrn co"><span class="r-pr">#></span> "Outpatient" (minimum = 30).</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 3 × 7</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> ward GEN TOB AMK KAN IPM MEM</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><dbl></span> <span style="color: #949494; font-style: italic;"><dbl></span> <span style="color: #949494; font-style: italic;"><dbl></span> <span style="color: #949494; font-style: italic;"><dbl></span> <span style="color: #949494; font-style: italic;"><dbl></span> <span style="color: #949494; font-style: italic;"><dbl></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">1</span> Clinical 0.229 0.315 0.626 1 0.049<span style="text-decoration: underline;">8</span> 0.045<span style="text-decoration: underline;">8</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">2</span> ICU 0.290 0.400 0.662 1 0.086<span style="text-decoration: underline;">2</span> 0.089<span style="text-decoration: underline;">4</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">3</span> Outpatient 0.2 0.368 0.605 <span style="color: #BB0000;">NA</span> 0.054<span style="text-decoration: underline;">1</span> 0.054<span style="text-decoration: underline;">1</span></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="kw">if</span> <span class="op">(</span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">require</a></span><span class="op">(</span><span class="st"><a href="https://dplyr.tidyverse.org" class="external-link">"dplyr"</a></span><span class="op">)</span><span class="op">)</span> <span class="op">{</span></span></span>
|
||||
<span class="r-in"><span> <span class="va">example_isolates</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%>%</a></span></span></span>
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/group_by.html" class="external-link">group_by</a></span><span class="op">(</span><span class="va">ward</span><span class="op">)</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%>%</a></span></span></span>
|
||||
@ -511,21 +473,10 @@ A microorganism is categorised as "Resistant" when there is a high likelihood of
|
||||
<span class="r-in"><span> <span class="fu"><a href="https://dplyr.tidyverse.org/reference/group_by.html" class="external-link">group_by</a></span><span class="op">(</span><span class="va">ward</span><span class="op">)</span> <span class="op"><a href="https://magrittr.tidyverse.org/reference/pipe.html" class="external-link">%>%</a></span></span></span>
|
||||
<span class="r-in"><span> <span class="fu">sir_df</span><span class="op">(</span>translate <span class="op">=</span> <span class="cn">FALSE</span><span class="op">)</span></span></span>
|
||||
<span class="r-in"><span><span class="op">}</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #949494;"># A tibble: 12 × 7</span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> ward antibiotic interpretation value ci_min ci_max isolates</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">*</span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><chr></span> <span style="color: #949494; font-style: italic;"><ord></span> <span style="color: #949494; font-style: italic;"><dbl></span> <span style="color: #949494; font-style: italic;"><dbl></span> <span style="color: #949494; font-style: italic;"><dbl></span> <span style="color: #949494; font-style: italic;"><int></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 1</span> Clinical AMX SI 0.423 0.389 0.457 357</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 2</span> Clinical AMX R 0.577 0.543 0.611 487</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 3</span> Clinical CIP SI 0.853 0.827 0.876 741</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 4</span> Clinical CIP R 0.147 0.124 0.173 128</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 5</span> ICU AMX SI 0.369 0.323 0.417 158</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 6</span> ICU AMX R 0.631 0.583 0.677 270</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 7</span> ICU CIP SI 0.810 0.770 0.845 362</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 8</span> ICU CIP R 0.190 0.155 0.230 85</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;"> 9</span> Outpatient AMX SI 0.397 0.288 0.515 31</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">10</span> Outpatient AMX R 0.603 0.485 0.712 47</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">11</span> Outpatient CIP SI 0.839 0.748 0.907 78</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> <span style="color: #BCBCBC;">12</span> Outpatient CIP R 0.161 0.093<span style="text-decoration: underline;">2</span> 0.252 15</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in summarise(., R = resistance(CIP, as_percent = TRUE), SI = susceptibility(CIP, as_percent = TRUE), n1 = count_all(CIP), n2 = n_sir(CIP), total = n()):</span> <span style="color: #00BBBB;">ℹ</span> In argument: `R = resistance(CIP, as_percent = TRUE)`.</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span style="color: #00BBBB;">ℹ</span> In group 1: `ward = "Clinical"`.</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span style="font-weight: bold;">Caused by error:</span></span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span style="color: #BBBB00;">!</span> in resistance(): NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="co"># }</span></span></span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
|
@ -10,7 +10,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="">2.0.0.9028</small>
|
||||
<small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">2.0.0.9030</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">
|
||||
@ -209,43 +209,27 @@
|
||||
<div class="section level2">
|
||||
<h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
|
||||
<div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="fu">random_mic</span><span class="op">(</span><span class="fl">25</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'mic'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.025 0.125 2 0.001 16 >=128 2 32 64 2 0.5 0.5 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [13] 1 8 0.002 0.25 64 2 32 0.002 0.25 0.025 0.5 16 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [25] 16 </span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">random_disk</span><span class="op">(</span><span class="fl">25</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'disk'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 37 43 42 43 44 38 14 25 37 9 10 49 34 17 50 43 9 19 45 42 18 17 43 26 31</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">random_sir</span><span class="op">(</span><span class="fl">25</span><span class="op">)</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'sir'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] S I S I S S I S R S S I S S R I R S R I S I S R S</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="co"># \donttest{</span></span></span>
|
||||
<span class="r-in"><span><span class="co"># make the random generation more realistic by setting a bug and/or drug:</span></span></span>
|
||||
<span class="r-in"><span><span class="fu">random_mic</span><span class="op">(</span><span class="fl">25</span>, <span class="st">"Klebsiella pneumoniae"</span><span class="op">)</span> <span class="co"># range 0.0625-64</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'mic'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 1 32 2 64 0.5 0.025 32 0.01 64 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [10] 8 0.002 0.5 0.01 0.01 <=0.001 0.125 8 16 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [19] 0.025 16 4 32 0.01 0.25 0.25 </span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">random_mic</span><span class="op">(</span><span class="fl">25</span>, <span class="st">"Klebsiella pneumoniae"</span>, <span class="st">"meropenem"</span><span class="op">)</span> <span class="co"># range 0.0625-16</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'mic'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 1 1 8 >=16 4 4 8 1 4 8 1 >=16 2 4 4 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [16] >=16 8 8 >=16 2 4 2 4 8 1 </span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">random_mic</span><span class="op">(</span><span class="fl">25</span>, <span class="st">"Streptococcus pneumoniae"</span>, <span class="st">"meropenem"</span><span class="op">)</span> <span class="co"># range 0.0625-4</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'mic'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 0.25 2 0.5 1 0.125 4 0.25 4 4 0.5 0.25 4 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [13] 8 0.25 0.5 0.125 8 4 0.5 0.125 0.125 2 0.25 0.5 </span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [25] 0.5 </span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span></span></span>
|
||||
<span class="r-in"><span><span class="fu">random_disk</span><span class="op">(</span><span class="fl">25</span>, <span class="st">"Klebsiella pneumoniae"</span><span class="op">)</span> <span class="co"># range 8-50</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'disk'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 17 11 43 16 49 47 41 41 23 28 26 35 44 19 50 43 36 20 45 46 14 50 40 8 17</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">random_disk</span><span class="op">(</span><span class="fl">25</span>, <span class="st">"Klebsiella pneumoniae"</span>, <span class="st">"ampicillin"</span><span class="op">)</span> <span class="co"># range 11-17</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'disk'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 15 14 14 13 14 11 11 17 16 15 13 14 11 16 11 13 12 13 17 16 17 12 17 11 12</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="fu">random_disk</span><span class="op">(</span><span class="fl">25</span>, <span class="st">"Streptococcus pneumoniae"</span>, <span class="st">"ampicillin"</span><span class="op">)</span> <span class="co"># range 12-27</span></span></span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> Class 'disk'</span>
|
||||
<span class="r-out co"><span class="r-pr">#></span> [1] 26 26 27 21 18 19 22 19 19 15 23 23 24 19 17 19 20 21 19 21 22 23 16 19 23</span>
|
||||
<span class="r-err co"><span class="r-pr">#></span> <span class="error">Error in .Call(Cchin, x, table):</span> NULL value passed as symbol address</span>
|
||||
<span class="r-in"><span><span class="co"># }</span></span></span>
|
||||
</code></pre></div>
|
||||
</div>
|
||||
|
Before Width: | Height: | Size: 43 KiB |
Before Width: | Height: | Size: 70 KiB |
Before Width: | Height: | Size: 46 KiB |