AMR/_pkgdown.yml

290 lines
12 KiB
YAML
Raw Normal View History

2018-12-30 08:40:40 +01:00
# ==================================================================== #
# TITLE: #
2022-10-05 09:12:22 +02:00
# AMR: An R Package for Working with Antimicrobial Resistance Data #
2018-12-30 08:40:40 +01:00
# #
# SOURCE CODE: #
2020-07-08 14:48:06 +02:00
# https://github.com/msberends/AMR #
2018-12-30 08:40:40 +01:00
# #
# PLEASE CITE THIS SOFTWARE AS: #
2022-10-05 09:12:22 +02:00
# Berends MS, Luz CF, Friedrich AW, Sinha BNM, Albers CJ, Glasner C #
# (2022). AMR: An R Package for Working with Antimicrobial Resistance #
# Data. Journal of Statistical Software, 104(3), 1-31. #
2023-05-27 10:39:22 +02:00
# https://doi.org/10.18637/jss.v104.i03 #
2022-10-05 09:12:22 +02:00
# #
2022-12-27 15:16:15 +01:00
# Developed at the University of Groningen and the University Medical #
# Center Groningen in The Netherlands, in collaboration with many #
# colleagues from around the world, see our website. #
2018-12-30 08:40:40 +01:00
# #
2019-01-02 23:24:07 +01:00
# This R package is free software; you can freely use and distribute #
# it for both personal and commercial purposes under the terms of the #
# GNU General Public License version 2.0 (GNU GPL-2), as published by #
# the Free Software Foundation. #
# We created this package for both routine data analysis and academic #
# research and it was publicly released in the hope that it will be #
# useful, but it comes WITHOUT ANY WARRANTY OR LIABILITY. #
2020-10-08 11:16:03 +02:00
# #
# Visit our website for the full manual and a complete tutorial about #
# how to conduct AMR data analysis: https://msberends.github.io/AMR/ #
2018-12-30 08:40:40 +01:00
# ==================================================================== #
2019-06-09 08:57:54 +02:00
title: "AMR (for R)"
2020-10-08 11:16:03 +02:00
url: "https://msberends.github.io/AMR/"
2019-06-09 08:57:54 +02:00
2022-08-21 16:37:20 +02:00
template:
bootstrap: 5
bootswatch: "flatly"
assets: "pkgdown/logos" # use logos in this folder
bslib:
2024-02-25 14:20:43 +01:00
base_font: {google: "Lato"}
2024-02-25 14:40:19 +01:00
heading_font: {google: "Lato"}
2022-08-21 16:37:20 +02:00
code_font: {google: "Fira Code"}
2022-08-25 19:11:02 +02:00
# body-text-align: "justify"
2022-08-21 17:22:34 +02:00
line-height-base: 1.75
2023-02-17 11:39:00 +01:00
# make top bar a bit wider
2022-08-21 16:37:20 +02:00
navbar-padding-y: "0.5rem"
opengraph:
twitter:
creator: "@msberends"
card: summary_large_image
2019-06-09 08:57:54 +02:00
2019-05-31 20:25:57 +02:00
news:
one_page: true
cran_dates: true
2022-08-25 19:11:02 +02:00
2022-08-21 16:37:20 +02:00
footer:
2022-08-25 19:11:02 +02:00
structure:
2022-08-21 16:37:20 +02:00
left: [devtext]
right: [logo]
components:
2022-12-11 11:44:29 +01:00
devtext: '<code>AMR</code> (for R). Free and open-source, licenced under the <a target="_blank" href="https://github.com/msberends/AMR/blob/main/LICENSE">GNU General Public License version 2.0 (GPL-2)</a>.<br>Developed at the <a target="_blank" href="https://www.rug.nl">University of Groningen</a> and <a target="_blank" href="https://www.umcg.nl">University Medical Center Groningen</a> in The Netherlands.'
logo: '<a target="_blank" href="https://www.rug.nl"><img src="https://github.com/msberends/AMR/raw/main/pkgdown/logos/logo_rug.svg" style="max-width: 150px;"></a><a target="_blank" href="https://www.umcg.nl"><img src="https://github.com/msberends/AMR/raw/main/pkgdown/logos/logo_umcg.svg" style="max-width: 150px;"></a>'
2022-08-21 16:37:20 +02:00
home:
sidebar:
2022-11-13 13:44:25 +01:00
structure: [toc, links, authors]
2018-12-29 22:24:19 +01:00
navbar:
2019-06-09 08:57:54 +02:00
title: "AMR (for R)"
2018-12-29 22:24:19 +01:00
left:
2023-05-24 15:55:53 +02:00
# - text: "Home"
# icon: "fa-home"
# href: "index.html"
2019-06-09 08:57:54 +02:00
- text: "How to"
icon: "fa-question-circle"
2019-01-02 23:24:07 +01:00
menu:
2023-01-23 20:07:57 +01:00
- text: "Conduct AMR Analysis"
2019-06-09 08:57:54 +02:00
icon: "fa-directions"
href: "articles/AMR.html"
- text: "Generate Antibiogram (Trad./Syndromic/WISCA)"
icon: "fa-file-prescription"
href: "reference/antibiogram.html" # reference instead of an article
2023-01-23 20:07:57 +01:00
- text: "Predict Antimicrobial Resistance"
2019-06-09 08:57:54 +02:00
icon: "fa-dice"
href: "articles/resistance_predict.html"
2023-02-26 21:26:58 +01:00
- text: "Download Data Sets for Own Use"
icon: "fa-database"
href: "articles/datasets.html"
2023-02-26 21:26:58 +01:00
- text: "Set User- Or Team-specific Package Settings"
icon: "fa-gear"
href: "reference/AMR-options.html"
2023-01-23 20:07:57 +01:00
- text: "Conduct Principal Component Analysis for AMR"
2020-03-07 21:48:21 +01:00
icon: "fa-compress"
href: "articles/PCA.html"
2023-01-23 20:07:57 +01:00
- text: "Determine Multi-Drug Resistance (MDR)"
2019-06-09 08:57:54 +02:00
icon: "fa-skull-crossbones"
href: "articles/MDR.html"
2023-01-23 20:07:57 +01:00
- text: "Work with WHONET Data"
2019-06-09 08:57:54 +02:00
icon: "fa-globe-americas"
href: "articles/WHONET.html"
2023-05-24 15:55:53 +02:00
# - text: "Import Data From SPSS/SAS/Stata"
# icon: "fa-file-upload"
# href: "articles/SPSS.html"
2023-01-23 20:07:57 +01:00
- text: "Apply Eucast Rules"
2019-06-09 08:57:54 +02:00
icon: "fa-exchange-alt"
href: "articles/EUCAST.html"
2023-01-23 20:07:57 +01:00
- text: "Get Taxonomy of a Microorganism"
2019-06-09 08:57:54 +02:00
icon: "fa-bug"
href: "reference/mo_property.html" # reference instead of an article
2023-01-23 20:07:57 +01:00
- text: "Get Properties of an Antibiotic Drug"
2019-06-09 08:57:54 +02:00
icon: "fa-capsules"
href: "reference/ab_property.html" # reference instead of an article
2023-01-23 20:07:57 +01:00
- text: "Get Properties of an Antiviral Drug"
icon: "fa-capsules"
href: "reference/av_property.html" # reference instead of an article
2023-05-24 15:55:53 +02:00
- text: "With other pkgs"
2023-05-27 10:39:22 +02:00
icon: "fa-layer-group"
2023-05-24 15:55:53 +02:00
menu:
- text: "AMR & dplyr/tidyverse"
2023-05-27 10:39:22 +02:00
icon: "fa-layer-group"
2023-05-24 15:55:53 +02:00
href: "articles/other_pkg.html"
- text: "AMR & data.table"
2023-05-27 10:39:22 +02:00
icon: "fa-layer-group"
2023-05-24 15:55:53 +02:00
href: "articles/other_pkg.html"
- text: "AMR & tidymodels"
2023-05-27 10:39:22 +02:00
icon: "fa-layer-group"
2023-05-24 15:55:53 +02:00
href: "articles/other_pkg.html"
- text: "AMR & base R"
2023-05-27 10:39:22 +02:00
icon: "fa-layer-group"
2023-05-24 15:55:53 +02:00
href: "articles/other_pkg.html"
2019-06-09 08:57:54 +02:00
- text: "Manual"
icon: "fa-book-open"
2020-07-28 18:39:57 +02:00
href: "reference/index.html"
2019-06-09 08:57:54 +02:00
- text: "Authors"
icon: "fa-users"
href: "authors.html"
2023-05-24 15:55:53 +02:00
right:
2019-06-09 08:57:54 +02:00
- text: "Changelog"
icon: "far fa-newspaper"
2020-07-28 18:39:57 +02:00
href: "news/index.html"
2019-06-09 08:57:54 +02:00
- text: "Source Code"
2020-07-08 14:48:06 +02:00
icon: "fab fa-github"
href: "https://github.com/msberends/AMR"
2018-12-29 22:24:19 +01:00
reference:
2023-10-22 15:51:27 +02:00
- title: "Introduction to the package"
desc: >
Please find the introduction to (and some general information about) our package here.
contents:
- "`AMR`"
- title: "Preparing data: microorganisms"
desc: >
2022-12-30 12:57:27 +01:00
These functions are meant to get taxonomically valid properties of microorganisms from any input, but
also properties derived from taxonomy, such as the Gram stain (`mo_gramstain()`) , or `mo_is_yeast()`.
Use `mo_source()` to teach this package how to translate your own codes to valid microorganisms, and
use `add_custom_microorganisms() to add your own custom microorganisms to this package.
contents:
- "`as.mo`"
- "`mo_property`"
2022-12-27 16:03:03 +01:00
- "`add_custom_microorganisms`"
- "`mo_source`"
2022-08-25 19:11:02 +02:00
- title: "Preparing data: antibiotics"
2019-01-21 15:53:01 +01:00
desc: >
Use these functions to get valid properties of antibiotics from any input or to clean your input.
You can even retrieve drug names and doses from clinical text records, using `ab_from_text()`.
2019-01-21 15:53:01 +01:00
contents:
- "`as.ab`"
- "`ab_property`"
- "`ab_from_text`"
- "`atc_online_property`"
2022-10-10 20:21:41 +02:00
- "`add_custom_antimicrobials`"
2022-08-25 19:11:02 +02:00
- title: "Preparing data: antimicrobial results"
2019-01-21 15:53:01 +01:00
desc: >
With `as.mic()` and `as.disk()` you can transform your raw input to valid MIC or disk diffusion values.
2023-01-21 23:47:20 +01:00
Use `as.sir()` for cleaning raw data to let it only contain "R", "I" and "S", or to interpret MIC or disk diffusion values as SIR based on the lastest EUCAST and CLSI guidelines.
2020-10-08 11:16:03 +02:00
Afterwards, you can extend antibiotic interpretations by applying [EUCAST rules](https://www.eucast.org/expert_rules_and_intrinsic_resistance/) with `eucast_rules()`.
contents:
2023-01-21 23:47:20 +01:00
- "`as.sir`"
- "`as.mic`"
- "`as.disk`"
- "`eucast_rules`"
2021-04-07 08:37:42 +02:00
- "`custom_eucast_rules`"
2022-08-25 19:11:02 +02:00
- title: "Analysing data"
desc: >
Use these function for the analysis part. You can use `susceptibility()` or `resistance()` on any antibiotic column.
With `antibiogram()`, you can generate a traditional, combined, syndromic, or weighted-incidence syndromic combination
antibiogram(WISCA). This function also comes with support for R Markdown and Quarto.
2020-11-23 21:50:27 +01:00
Be sure to first select the isolates that are appropiate for analysis, by using `first_isolate()` or `is_new_episode()`.
2021-05-19 22:55:42 +02:00
You can also filter your data on certain resistance in certain antibiotic classes (`carbapenems()`, `aminoglycosides()`), or determine multi-drug resistant microorganisms (MDRO, `mdro()`).
2019-01-21 15:53:01 +01:00
contents:
- "`antibiogram`"
2020-03-07 21:48:21 +01:00
- "`proportion`"
- "`count`"
2020-11-23 21:50:27 +01:00
- "`is_new_episode`"
- "`first_isolate`"
- "`key_antimicrobials`"
- "`mdro`"
- "`count`"
- "`bug_drug_combinations`"
2020-06-17 01:39:30 +02:00
- "`antibiotic_class_selectors`"
2022-08-30 22:17:14 +02:00
- "`mean_amr_distance`"
- "`resistance_predict`"
- "`guess_ab_col`"
- title: "Plotting data"
desc: >
Use these functions for the plotting part. The `scale_*_mic()` functions extend the ggplot2 package to allow plotting of
MIC values, even within a manually set range.
If using `plot()` (base R) or `autoplot()` (ggplot2) on MIC values or disk diffusion values, the user can
set the interpretation guideline to give the bars the right SIR colours.
The `ggplot_sir()` function is a short wrapper for users not much accustomed to ggplot2 yet.
The `ggplot_pca()` function is a specific function to plot so-called biplots for PCA (principal component analysis).
contents:
- "`plot`"
- "`ggplot_sir`"
- "`ggplot_pca`"
- title: "AMR-specific options"
2023-01-23 20:07:57 +01:00
desc: >
The AMR package is customisable, by providing settings that can be set per user or per team. For
example, the default interpretation guideline can be changed from EUCAST to CLSI, or a supported
language can be set for the whole team (system-language independent) for antibiotic names in a
foreign language.
contents:
- "`AMR-options`"
- title: "Other: antiviral drugs"
desc: >
This package also provides extensive support for antiviral agents, even though it is not the primary
scope of this package. Working with data containing information about antiviral drugs was never easier.
Use these functions to get valid properties of antiviral drugs from any input or to clean your input.
You can even retrieve drug names and doses from clinical text records, using `av_from_text()`.
contents:
- "`as.av`"
- "`av_property`"
- "`av_from_text`"
2021-08-18 23:19:38 +02:00
- title: "Other: background information on included data"
2021-08-18 23:19:38 +02:00
desc: >
Some pages about our package and its external sources. Be sure to read our [How To's](./../articles/index.html)
for more information about how to work with functions in this package.
contents:
- "`microorganisms`"
- "`antibiotics`"
- "`clinical_breakpoints`"
- "`example_isolates`"
2021-08-18 23:19:38 +02:00
- "`microorganisms.codes`"
2023-07-08 21:00:49 +02:00
- "`microorganisms.groups`"
2021-08-18 23:19:38 +02:00
- "`intrinsic_resistant`"
- "`dosage`"
- "`WHOCC`"
- "`example_isolates_unclean`"
- "`WHONET`"
2022-08-25 19:11:02 +02:00
- title: "Other: miscellaneous functions"
2019-01-21 15:53:01 +01:00
desc: >
These functions are mostly for internal use, but some of
them may also be suitable for your analysis. Especially the
'like' function can be useful: `if (x %like% y) {...}`.
contents:
- "`age_groups`"
- "`age`"
- "`export_ncbi_biosample`"
- "`availability`"
- "`get_AMR_locale`"
- "`italicise_taxonomy`"
- "`join`"
- "`like`"
2020-09-19 12:57:51 +02:00
- "`mo_matching_score`"
- "`pca`"
2020-12-12 23:17:29 +01:00
- "`random`"
2022-08-25 19:11:02 +02:00
- title: "Other: statistical tests"
desc: >
2020-11-23 21:50:27 +01:00
Some statistical tests or methods are not part of base R and were added to this package for convenience.
contents:
- "`g.test`"
- "`kurtosis`"
- "`skewness`"
# - title: "Other: deprecated functions"
# desc: >
# These functions are deprecated, meaning that they will still
# work but show a warning with every use and will be removed
# in a future version.
# contents:
# - "`AMR-deprecated`"