1
0
mirror of https://github.com/msberends/AMR.git synced 2026-05-14 01:10:45 +02:00
Commit Graph

568 Commits

Author SHA1 Message Date
cead31bed0 prepare for morphology 2026-05-04 22:57:42 +02:00
Claude
9707450b89 Fix emend. author bug in get_author_year() and update ref documentation
Strip emend. and everything after it so the ref column retains the
combination authority, not the emendation author. Update data.R and
mo_property.R docs to describe the correct semantics of the ref field.

https://claude.ai/code/session_01VH4Ju4Xq9aW1AHuoVbjGEo
2026-05-02 14:34:45 +00:00
Matthijs Berends
24f24ecaf8 Generalise interpretive rules for multi-guideline support (#268) (#283)
* Generalise interpretive rules for multi-guideline support (#268)

- Rename data-raw/eucast_rules.tsv → interpretive_rules.tsv; add rule.provider
  column (value: "EUCAST") to distinguish future CLSI rows
- Rename EUCAST_RULES_DF → INTERPRETIVE_RULES_DF in _pre_commit_checks.R;
  filter by rule.provider == guideline when applying rules in interpretive_rules()
- Rename custom_eucast_rules() → custom_interpretive_rules() with new S3 class
  "custom_interpretive_rules"; old function becomes a deprecated wrapper in
  zz_deprecated.R; backward-compat S3 dispatch shims added for old class
- Remove stop_if(guideline == "CLSI", ...) so clsi_rules() no longer errors
- Add .onLoad shim in zzz.R to create INTERPRETIVE_RULES_DF from EUCAST_RULES_DF
  for transitional compatibility until sysdata.rda is regenerated

https://claude.ai/code/session_01D46BTsfJSPo3HnLWp3PRkP

* Fix namespace load failure: remove assignInNamespace from .onLoad (#268)

assignInNamespace cannot add NEW bindings to a locked package namespace
(R locks namespace bindings before .onLoad runs). Replace the .onLoad
shim with a runtime fallback inside interpretive_rules(): if
INTERPRETIVE_RULES_DF is absent (pre-regeneration sysdata.rda), derive
it from EUCAST_RULES_DF by adding the rule.provider column. This also
fixes the screening_abx line to reuse the already-resolved
interpretive_rules_df_total instead of a bare INTERPRETIVE_RULES_DF
reference.

https://claude.ai/code/session_01D46BTsfJSPo3HnLWp3PRkP

* fixes

* fixes

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-05-01 18:38:51 +01:00
e7780b6d5f (v3.0.1.9048) fix #275 2026-04-22 08:16:44 +02:00
Matthijs Berends
8ff5d4472a Add add_if_missing parameter to control NA handling in interpretive rules (#264) 2026-04-21 21:53:43 +02:00
Matthijs Berends
fb8758f36b fix: convert Python lists to R vectors in wrapper generator (#270)
* fix: convert Python lists to R vectors in wrapper to prevent R list coercion errors

Fixes #267. Python lists passed to R functions via rpy2 are received as
R lists, not R character/numeric vectors. This causes is.mic(), is.sir(),
is.disk() etc. to return length > 1 logicals, which break R's && operator.

Added convert_to_r() helper that maps Python list/tuple to the appropriate
typed R vector (StrVector, IntVector, FloatVector) based on element types.
The r_to_python decorator now applies this to all args and kwargs before
calling the R function.

* docs: instruct Claude to install git and gh before computing version
2026-04-05 17:26:21 +02:00
26613d774b (v3.0.1.9042) add EUCAST breakpoint table v16 to interpretive_rules() 2026-04-02 11:42:19 +02:00
3a736bc484 (v3.0.1.9041) add breakpoints 2026 2026-03-30 10:01:49 +02:00
353eaa3f38 (v3.0.1.9033) add ionophores(), clorobiocin, aminocoumarins group 2026-03-09 11:57:36 +01:00
daab605ca4 (v3.0.1.9028) fix unique CIDs 2026-03-06 18:53:42 +01:00
b6211931f8 (v3.0.1.9022) add ceftibuten/avibactam (CTA), kasugamycin (KAS), ostreogrycin (OST), thiostrepton (THS), xeruborbactam (XER), zorbamycin (ZOR) 2026-03-03 15:41:08 +01:00
ba4c159154 (v3.0.1.9019) Wildtype/Non-wildtype support, and start with interpretive_rules()
Fixes #246
Fixes #254
Fixes #255
Fixes #256
2026-02-08 23:15:40 +01:00
2df2911cf4 (v3.0.1.9018) fixes #249
updates AB groups
2026-01-16 10:57:03 +01:00
cfbbfb4fa5 (v3.0.1.9007) fix #246 2026-01-06 23:08:50 +01:00
ba30b08f76 (v3.0.1.9003) Add taniborbactam and cefepime/taniborbactam 2025-11-24 11:24:02 +01:00
d366949f1b (v3.0.1.9002) replace WHONET directives with their GitHub repo 2025-10-13 22:12:48 +02:00
10ba36821e (v3.0.0.9034) fix MycoBank synonyms 2025-09-18 13:58:34 +01:00
60bd631e1a (v3.0.0.9019) Fixes #229, #230, #227, #225 2025-09-01 16:56:55 +02:00
Nick Thomson
68442f3042 (v3.0.0.9012) Python wrapper fix 2025-07-17 19:43:07 +02:00
d94bdd2c6a (v3.0.0.9008) fix ggplot_sir(), support lighter green for SDD 2025-07-17 17:05:41 +02:00
8dab0a3730 (v3.0.0.9007) allow any tidyselect language in as.sir() 2025-07-17 14:29:35 +02:00
72db2b2562 (v3.0.0.9003) eucast_rules fix, new tidymodels integration 2025-06-13 14:03:21 +02:00
5667ce3eae (v2.1.1.9287) fix antibiotics 2025-06-01 12:17:47 +02:00
e70f3de02e (v2.1.1.9286) deprecate antibiotics better, add ATC for ceftaroline 2025-06-01 11:54:40 +02:00
fcd8b95e51 (v2.1.1.9272) mo codes sensititre 2025-05-04 18:50:25 +02:00
a778eb9bcf (v2.1.1.9272) (v2.1.1.9271) add sensititre AB and animal codes 2025-05-04 16:40:08 +02:00
dc5559a2c4 (v2.1.1.9270) Add support for Korean, fix ATCs 2025-05-04 14:24:43 +02:00
b8f0f64287 (v2.1.1.9269) Support 7 new languages 2025-05-02 19:25:19 +02:00
5e6bbdf3d1 (v2.1.1.9267) update ATCs 2025-05-01 11:48:49 +02:00
30caa5e654 (v2.1.1.9262) fix knit printing 2025-04-29 16:31:38 +02:00
faa9ae0d85 (v2.1.1.9260) fix antibiogram 2025-04-29 16:15:18 +02:00
92316d5ddc (v2.1.1.9254) fix antimicrobial synonyms 2025-04-26 16:23:14 +02:00
4e7fca3b38 (v2.1.1.9253) parallel computing 2025-04-26 15:47:00 +02:00
abee2a954e (v2.1.1.9252) fix MIC for >= and <= 2025-04-25 10:19:40 +02:00
6135805455 (v2.1.1.9251) fix colour on GitHub docs 2025-04-21 16:04:01 +02:00
4a336d040c (v2.1.1.9250) Automated README and index.md 2025-04-21 15:37:26 +02:00
9e64d7708e (v2.1.1.9248) unit test fix 2025-04-20 15:27:36 +02:00
ea443f7483 (v2.1.1.9247) CLSI/EUCAST 2025! 2025-04-20 12:55:31 +02:00
0bab49ff86 (v2.1.1.9246) website fix 2025-04-19 16:23:17 +02:00
492fe6872f (v2.1.1.9244) automated GPT training data 2025-04-19 15:57:12 +02:00
ca00ed468e (v2.1.1.9243) fix sir documentation 2025-04-18 16:32:45 +02:00
29b0ef1089 (v2.1.1.9242) sir log 2025-04-18 16:03:50 +02:00
579025f678 (v2.1.1.9241) fix sir 2025-04-18 13:25:59 +02:00
cf91e677c6 (v2.1.1.9240) fix sir interpretation 2025-04-16 15:22:12 +02:00
ec937e8179 (v2.1.1.9239) documentation 2025-04-14 09:40:35 +02:00
7c3320b967 update reproduction scripts links 2025-04-13 10:02:47 +02:00
d31371613e (v2.1.1.9237) clean-up 2025-04-13 09:59:40 +02:00
40d7a971c3 (v2.1.1.9236) documentation 2025-04-12 11:46:42 +02:00
36fd99e1f4 (v2.1.1.9235) New website! 2025-04-08 15:54:30 +01:00
a905303296 (v2.1.1.9234) fix CLSI 2025-04-07 17:36:01 +01:00