Comments (6)
Hi! Yes, sure. It seems to be a bug, I’ll look into it!
from amr.
Thank you
from amr.
It was indeed a bug, I'll push a fix to this repo today.
But even fixed, the text used as input might not be very suitable for retrieving antibiotic codes - in what you posted there are almost no antibiotics to be found if I manually scan through them with my own knowledge about antibiotic/antifungal drugs.
This also leads to many false-positives. For example, the problematic one that led to the error was nr 17:
[17] "Euthyrox 150µg [150µg Levothyroxin natrium, (145,88µg Levothyroxin)] 1x1 => Hypothyreose seit 1980"
Without the bug, this would be the result:
ab_from_text(x[17], type = "drug", thorough_search = TRUE)
#> [[1]]
#> Class <ab>
#> [1] INH AKF AKF AKF CPO
So that's a list of isoniazid, 3 times amikacin/fosfomycin, and cefpirome. Not very helpful I guess... The ab_from_text()
function can only retrieve antibiotic/antifungal drugs, not other drugs.
Does this clarify things a bit?
from amr.
Dear @msberends,
Thank you very much for pushing this fix.
And indeed what you say makes sense. I have a list of 300 unique drugs, and was using the package to reduce my workload of manually validating which ones are antibiotics and which are not
Any (false)-positives that we get from this analyses, we will manually verify to make sure they are indeed antibiotics/antifungals, so this is already helpful.
I am assuming though, that if it doesn't find any matches, it'll simply report a NA
- is that correct?
And thanks again for fixing it so quickly.
from amr.
That’s a fine workflow!
Indeed, when no results are found it will return NA
.
from amr.
Awesome, thank you. It is a nice workflow indeed
from amr.
Related Issues (20)
- help with %like% HOT 3
- as.sir function not found HOT 2
- Possibility of adding EUCAST ECOFF values HOT 9
- Clinical breakpoints for *Burkholderia mallei* and *Burkholderia pseudomallei* for all antibiotic might be wrong HOT 2
- Breakpoints prefer PK/PD
- NA converted to first defined custom micro-organism HOT 5
- UTI coding not being recognised in SIR interpretation HOT 12
- First isolate: ICU filtering based on wrong ordering
- typo in function name in tutorial for "Predicting future antimicrobial resistance using regression models" HOT 3
- In `clinical_breakpoints`, some values in `ref_tbl` are missing
- Problem with getting S. coagulans instead of old S. schleiferi coagulans
- `minimum_matching_score` not always considered
- Update clinical_breakpoints to WHONET 2023
- Antibiotic resistance prediction challenge 1 HOT 2
- Add Bartlett et al. (2022) for human pathogenicity? HOT 1
- Add `mo_pathogenicity()` HOT 1
- EUCAST rules where there shouldn't be interpretations HOT 3
- g.test doesn't handle zero counts HOT 4
- set body site for SIR intepretation HOT 6
- strange results, when using first isolate() HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amr.