mirror of
https://github.com/msberends/AMR.git
synced 2024-12-26 18:46:13 +01:00
remove reshape2 dependency
This commit is contained in:
parent
510e8f22aa
commit
211e3bae14
12
.travis.yml
12
.travis.yml
@ -2,18 +2,21 @@
|
|||||||
language: r
|
language: r
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- r: 3.1
|
- r: 3.0
|
||||||
os: linux
|
os: linux
|
||||||
warnings_are_errors: false
|
warnings_are_errors: false
|
||||||
|
- r: 3.0
|
||||||
|
os: osx
|
||||||
|
warnings_are_errors: false
|
||||||
|
- r: 3.1
|
||||||
|
os: linux
|
||||||
- r: 3.1
|
- r: 3.1
|
||||||
os: osx
|
os: osx
|
||||||
warnings_are_errors: false
|
warnings_are_errors: false
|
||||||
- r: 3.2
|
- r: 3.2
|
||||||
os: linux
|
os: linux
|
||||||
warnings_are_errors: false
|
|
||||||
- r: 3.2
|
- r: 3.2
|
||||||
os: osx
|
os: osx
|
||||||
warnings_are_errors: false
|
|
||||||
- r: 3.3
|
- r: 3.3
|
||||||
os: linux
|
os: linux
|
||||||
- r: 3.3
|
- r: 3.3
|
||||||
@ -43,12 +46,13 @@ cran: https://cran.rstudio.com
|
|||||||
before_install:
|
before_install:
|
||||||
# needed for clipboard function:
|
# needed for clipboard function:
|
||||||
# - if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get -qq update; fi
|
# - if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get -qq update; fi
|
||||||
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get install -y xclip; fi
|
# - if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get install -y xclip; fi
|
||||||
- if [ $TRAVIS_OS_NAME = osx ]; then brew install xclip; fi
|
- if [ $TRAVIS_OS_NAME = osx ]; then brew install xclip; fi
|
||||||
- if [ $TRAVIS_OS_NAME = osx ]; then brew install libgit2; fi
|
- if [ $TRAVIS_OS_NAME = osx ]; then brew install libgit2; fi
|
||||||
|
|
||||||
# postrun
|
# postrun
|
||||||
after_success:
|
after_success:
|
||||||
|
# only run on osx, so clipboard functions can be checked
|
||||||
- if [ $TRAVIS_OS_NAME = osx ]; then Rscript -e 'covr::codecov()'; fi
|
- if [ $TRAVIS_OS_NAME = osx ]; then Rscript -e 'covr::codecov()'; fi
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Package: AMR
|
Package: AMR
|
||||||
Version: 0.2.0.9017
|
Version: 0.2.0.9018
|
||||||
Date: 2018-07-28
|
Date: 2018-07-30
|
||||||
Title: Antimicrobial Resistance Analysis
|
Title: Antimicrobial Resistance Analysis
|
||||||
Authors@R: c(
|
Authors@R: c(
|
||||||
person(
|
person(
|
||||||
@ -31,7 +31,6 @@ Imports:
|
|||||||
clipr,
|
clipr,
|
||||||
curl,
|
curl,
|
||||||
dplyr (>= 0.7.0),
|
dplyr (>= 0.7.0),
|
||||||
reshape2 (>= 1.4.0),
|
|
||||||
xml2 (>= 1.0.0),
|
xml2 (>= 1.0.0),
|
||||||
knitr (>= 1.0.0),
|
knitr (>= 1.0.0),
|
||||||
Rcpp (>= 0.12.14),
|
Rcpp (>= 0.12.14),
|
||||||
|
2
NEWS.md
2
NEWS.md
@ -28,7 +28,7 @@
|
|||||||
#### Changed
|
#### Changed
|
||||||
* Improvements for forcasting with `resistance_predict` and added more examples
|
* Improvements for forcasting with `resistance_predict` and added more examples
|
||||||
* More antibiotics for EUCAST rules
|
* More antibiotics for EUCAST rules
|
||||||
* Updated version of the `setic_patients` data set to better reflect the reality
|
* Updated version of the `septic_patients` data set to better reflect the reality
|
||||||
* Pretty printing for tibbles removed as it is not really the scope of this package
|
* Pretty printing for tibbles removed as it is not really the scope of this package
|
||||||
* Improved speed of key antibiotics comparison for determining first isolates
|
* Improved speed of key antibiotics comparison for determining first isolates
|
||||||
* Column names for the `key_antibiotics` function are now generic: 6 for broadspectrum ABs, 6 for Gram-positive specific and 6 for Gram-negative specific ABs
|
* Column names for the `key_antibiotics` function are now generic: 6 for broadspectrum ABs, 6 for Gram-positive specific and 6 for Gram-negative specific ABs
|
||||||
|
21
R/bactid.R
21
R/bactid.R
@ -126,23 +126,27 @@ as.bactid <- function(x) {
|
|||||||
}
|
}
|
||||||
if (tolower(x[i]) == '^h.*influenzae$') {
|
if (tolower(x[i]) == '^h.*influenzae$') {
|
||||||
# avoid detection of Haematobacter influenzae in case of H. influenzae
|
# avoid detection of Haematobacter influenzae in case of H. influenzae
|
||||||
x[i] <- 'Haemophilus influenzae'
|
x[i] <- 'HAEINF'
|
||||||
|
next
|
||||||
}
|
}
|
||||||
if (tolower(x[i]) == '^st.*au$'
|
if (tolower(x[i]) == '^st.*au$'
|
||||||
| tolower(x[i]) == '^stau$'
|
| tolower(x[i]) == '^stau$'
|
||||||
| tolower(x[i]) == '^staaur$') {
|
| tolower(x[i]) == '^staaur$') {
|
||||||
# avoid detection of Staphylococcus auricularis in case of S. aureus
|
# avoid detection of Staphylococcus auricularis in case of S. aureus
|
||||||
x[i] <- 'Staphylococcus aureus'
|
x[i] <- 'STAAUR'
|
||||||
|
next
|
||||||
}
|
}
|
||||||
if (tolower(x[i]) == '^p.*aer$') {
|
if (tolower(x[i]) == '^p.*aer$') {
|
||||||
# avoid detection of Pasteurella aerogenes in case of Pseudomonas aeruginosa
|
# avoid detection of Pasteurella aerogenes in case of Pseudomonas aeruginosa
|
||||||
x[i] <- 'Pseudomonas aeruginosa'
|
x[i] <- 'PSEAER'
|
||||||
|
next
|
||||||
}
|
}
|
||||||
if (tolower(x[i]) %like% 'coagulase'
|
if (tolower(x[i]) %like% 'coagulase'
|
||||||
| tolower(x[i]) %like% 'cns'
|
| tolower(x[i]) %like% 'cns'
|
||||||
| tolower(x[i]) %like% 'cons') {
|
| tolower(x[i]) %like% 'cons') {
|
||||||
# coerce S. coagulase negative, also as CNS and CoNS
|
# coerce S. coagulase negative, also as CNS and CoNS
|
||||||
x[i] <- 'Coagulase Negative Staphylococcus (CNS)'
|
x[i] <- 'STACNS'
|
||||||
|
next
|
||||||
}
|
}
|
||||||
|
|
||||||
# translate known trivial names to genus+species
|
# translate known trivial names to genus+species
|
||||||
@ -150,17 +154,20 @@ as.bactid <- function(x) {
|
|||||||
if (toupper(x.backup[i]) == 'MRSA'
|
if (toupper(x.backup[i]) == 'MRSA'
|
||||||
| toupper(x.backup[i]) == 'VISA'
|
| toupper(x.backup[i]) == 'VISA'
|
||||||
| toupper(x.backup[i]) == 'VRSA') {
|
| toupper(x.backup[i]) == 'VRSA') {
|
||||||
x[i] <- 'Staphylococcus aureus'
|
x[i] <- 'STAAUR'
|
||||||
|
next
|
||||||
}
|
}
|
||||||
if (toupper(x.backup[i]) == 'MRSE') {
|
if (toupper(x.backup[i]) == 'MRSE') {
|
||||||
x[i] <- 'Staphylococcus epidermidis'
|
x[i] <- 'Staphylococcus epidermidis'
|
||||||
}
|
}
|
||||||
if (toupper(x.backup[i]) == 'VRE') {
|
if (toupper(x.backup[i]) == 'VRE') {
|
||||||
x[i] <- 'Enterococcus'
|
x[i] <- 'ENC'
|
||||||
|
next
|
||||||
}
|
}
|
||||||
if (toupper(x.backup[i]) == 'MRPA') {
|
if (toupper(x.backup[i]) == 'MRPA') {
|
||||||
# multi resistant P. aeruginosa
|
# multi resistant P. aeruginosa
|
||||||
x[i] <- 'Pseudomonas aeruginosa'
|
x[i] <- 'PSEAER'
|
||||||
|
next
|
||||||
}
|
}
|
||||||
if (toupper(x.backup[i]) == 'PISP'
|
if (toupper(x.backup[i]) == 'PISP'
|
||||||
| toupper(x.backup[i]) == 'PRSP') {
|
| toupper(x.backup[i]) == 'PRSP') {
|
||||||
|
Loading…
Reference in New Issue
Block a user