37 Commits
Author SHA1 Message Date
Matthijs BerendsandClaude Opus 5.5 0ca43df459 Update taxonomy of microorganisms (2026-10) (#312)
* Update taxonomy of microorganisms (2026-10)

Rebuild of the microorganisms data set from COL 2026-04-18 XR, LPSN and BacDive of October 2026
and MycoBank of January 2026, with v3.0.1 as the previous data set: 111,103 records (v3.0.1:
78,679), 0 changed MO codes of existing names, 522 released codes retired (275 to be reviewed).

Script fixes (data-raw/_reproduction_scripts/reproduction_of_microorganisms.R):
- previous data set from the last release; COL read as COL Data Package (NameUsage.tsv)
- keep COL records without authors (a filter on NA dropped them, e.g. Balamuthia mandrillaris)
- genus homonyms: unclassified MycoBank entries are not authoritative; the released domain of a
  genus wins if a source supports it (e.g. Moorella, Serpula, Pirella stay Bacteria)
- protect current names of relevant species instead of whole current genera (data set tripled)
- current names and synonyms only within the same domain and for known names (Brugia -> Lycoperdon)
- MycoBank names in Latin script only; old records outside their source's scope become manually added
- Graphium butterflies of v3.0.1 are not carried over, re-added or restored
- restore released taxa by name and rank; retire older cross-domain homonyms for review
- fill empty families from COL and a commented override list (Ascaris, Balamuthia)
- add Brugia malayi and B. timori; remove Salmonella species synonyms that are serovars
- BacDive: a minority of facultative strain records no longer decides (C. difficile)
- translate codes of other data sets with the development version; review unmatched codes
- scope decisions: COL XR names only if relevant or released; Protozoa follow the Fungi rules

Also: all checkpoints (data-raw/taxonomy*.rds), updated data sets, Bartlett et al. list, accessed
dates in TAXONOMY_VERSION, NEWS, two staphylococci added to CoNS, tests updated for real taxonomic
changes, known defects file removed (all solved), and the findings report with all review files in
data-raw/taxonomy_review/2026-10/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Taxonomy review report: note on the .dta export and the single commit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Fix as.mo() for Salmonella serovars written with the species; add S. xeri to CoNS

- "Salmonella enterica (subsp. enterica) serovar Typhi" returned S. bongori, and
  "S. enterica Typhimurium" S. enterica diarizonae; "Paratyphi A/B/C" became serogroups
- Staphylococcus xeri and S. parequorum confirmed as coagulase-negative

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Taxonomy build: remove lichens (decision of 5 October 2026)

Fungi in the lichen-forming classes and the order Verrucariales are removed unless their genus is
clinically relevant, with the synonyms that point to them (4,155 records); released lichens are
restored. microorganisms now has 107,126 records (Fungi 45,739); all tests pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Taxonomy review decisions: microsporidia in Fungi, accepted names, missing protozoa

- all microsporidia in the Fungi (1,394 names of v3.0.1 from P_ to F_, old codes translated by name)
- Enterocytozoon bieneusi and Encephalitozoon cuniculi as accepted names (accepted_name_override)
- Balantidium and Isospora added to MO_RELEVANT_GENERA; Cystoisospora belli as synonym of Isospora belli
- synonym cycles decided: Capillidium and Scolecobasidium are the current genera
- removed the stale data-raw/taxonomy_lpsn0.rds
- microorganisms now has 107,253 records; all tests pass

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Taxonomy review report: all items reviewed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Rule matching by accepted taxon; Erysipelatoclostridium as synonym of Thomasclavelia

- interpretive_rules(): species named in a rule (literal names, genus_species/fullname) now also match all other
  names of the same accepted taxon, e.g. 'Clostridium ramosum' for Thomasclavelia ramosa; not for genera or regex rules
- Erysipelatoclostridium and its species are synonyms of Thomasclavelia (accepted_name_override); E. merdavium is
  retired by decision of 6 October 2026, and the build removes taxa retired by a human decision
- microorganisms patched with the same logic as the build script (no full rebuild): 107,252 records
- intrinsic_resistant regenerated with the new taxonomy and rule matching: 308,646 rows
- clinical_breakpoints: EUCAST workbook rows merged again, 24 EUCAST 2026 rows moved from C. ramosum to T. ramosa

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Taxonomy: correct records for names listed twice, no synonyms without a current name, strict data tests

- one record per name keeps the accepted record (e.g. Eggerthella lenta, Gordonia amarae, Anisakis simplex and
  Enterobius vermicularis were synonyms without a current name), links to dropped records are moved
- LPSN lookup reads the taxonomic status and correct name; validly published synonyms are no longer 'accepted'
- synonyms without a current name: linked via LPSN or removed, released codes retired (3,668); records with kept
  children become 'unknown'; the M. tuberculosis complex is protected (decisions of 7 October 2026)
- subspecies codes reserved, current names of synonyms kept when pruning, missing parent records added or moved,
  higher taxonomy harmonised, shared identifiers resolved per domain and rank, pointers and parent links cleaned
- data sets refer only to current names (except intrinsic_resistant); group members only from current names;
  internal CoNS/CoPS/streptococcal lists keep a synonym only with its current name
- intrinsic_resistant, clinical_breakpoints (EUCAST workbooks) and microorganisms.groups regenerated
- 28 new tests in test-data.R; devtools::test(): 1,581 expectations, 0 failures
- open decisions listed in data-raw/taxonomy_review/2026-10/REPORT.md, section 6

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Taxonomy: protect WHO priority genera, follow LPSN for the M. tuberculosis complex, place protist groups in one domain

- all taxa of the genera in MO_WHO_PRIORITY_GENERA are protected, also names that are not validly published
  (replaces the hard-coded M. tuberculosis complex; keeps e.g. Klebsiella quasivariicola, M. canettii, M. orygis)
- LPSN is followed for the M. tuberculosis complex: M. bovis, M. africanum, M. caprae, M. microti and M. pinnipedii
  are heterotypic synonyms of M. tuberculosis (Riojas et al. 2018); a test enforces this
- labyrinthulids in the Chromista (Aplanochytrium), Dictydiaethalium in the Protozoa (genus_domain_move), and the
  rank suffix also between domains ('Acantharia {class}' next to the fungal genus Acantharia)
- devtools::test(): 1,582 expectations, 0 failures

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Taxonomy build no longer depends on the previous build

- intrinsic_resistant is no input of the microorganisms build anymore (it is computed from it); the genera named in
  the interpretive rules are read from the rules instead
- the previous data set no longer makes genera relevant; Debaryomyces added to MO_RELEVANT_GENERA
- new run_after_microorganisms_build.R recreates microorganisms.groups, the EUCAST breakpoints and
  intrinsic_resistant in the right order, and the build runs it at its end
- reproduction_of_intrinsic_resistant.R uses devtools::load_all() instead of the installed package
- effect: 24 never released, not relevant COL records less; devtools::test(): 1,582 expectations, 0 failures

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Taxonomy review report: summary updated to the second round

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* MO code retirements: mark the 265 reviewed retirements as reviewed

The Graphium and v2.x Protozoa retirements were reviewed and accepted on 6 October 2026 (see the taxonomy review
report, section 5); 'NEEDS REVIEW' is replaced by 'reviewed by Matthijs S. Berends on 2026-10-06'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 12:55:12 +02:00
dr. M.S. (Matthijs) BerendsandClaude Opus 5.5 ca5fa333ca (v3.0.1.9095) Taxonomy build: fix root causes of missing and misclassified taxa, add unattended run prompt
Review of reproduction_of_microorganisms.R against the 2026 intermediates:
- genus homonyms: overrides, LPSN/MycoBank first, status within LPSN/MycoBank,
  move misplaced protists, remove true homonyms (Necator, Capillaria, Graphium)
- keep clinically relevant names that are not validly published (Tropheryma)
- one set of relevant genera for all filters; 30 genera added to MO_RELEVANT_GENERA
- MycoBank classification parsed from all columns; empty values never overwrite
- GBIF synonyms in another genus get the lineage of their own genus
- prevalence no longer copied from genus; current names inherit from synonyms
- inferred records follow the relevance filters (no more unrelated lichens)
- ASCII names before deduplication (12 duplicate full names in 2026)
- MO codes: robust code parsing, reserved old codes, single allocator,
  domain column used directly (2026 rename would now fail)
- name clean-up applied to taxonomy before MO codes, BacDive rows filled
- unattended running: review() instead of View(), CSV export of reviews,
  LPSN cache and retries, stops when raw source files are missing
- reproduction_of_microorganisms_CLAUDE.md: prompt for an unattended run with
  findings report and checklist for human review in the PR

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 09:06:27 +02:00
dr. M.S. (Matthijs) Berends 637ada920b (v3.0.1.9070) Fix #293, update EUCAST rules for PEF 2026-06-26 08:56:59 +02:00
dr. M.S. (Matthijs) Berends 5b99888151 (v3.0.0.9030) fix NEWS 2025-09-11 14:41:28 +02:00
dr. M.S. (Matthijs) Berends 4a336d040c (v2.1.1.9250) Automated README and index.md 2025-04-21 15:37:26 +02:00
dr. M.S. (Matthijs) Berends e1b7252ff6 (v2.1.1.9193) new antimicrobials for screening 2025-03-12 15:09:28 +01:00
dr. M.S. (Matthijs) Berends 87271d261a add Python package to repo 2024-11-21 10:06:26 +01:00
dr. M.S. (Matthijs) Berends 94501371cd (v2.1.1.9094) fix antibiotics 2024-10-10 16:38:20 +02:00
dr. M.S. (Matthijs) Berends 380cbec0e8 prehook 2023-02-18 14:58:02 +01:00
dr. M.S. (Matthijs) Berends 3864ab2fb8 Feather and Parquet files 2022-08-26 22:25:15 +02:00
dr. M.S. (Matthijs) Berends 578e7dfee9 (v1.7.1.9070) Better WHONET support 2021-12-13 10:18:28 +01:00
dr. M.S. (Matthijs) Berends c8698347cb (v1.7.1.9055) added EUCAST 3.3 and all LPSN records numbers 2021-11-29 10:38:38 +01:00
dr. M.S. (Matthijs) Berends 28e77680c5 (v1.4.0) matching score update 2020-10-08 11:16:03 +02:00
dr. M.S. (Matthijs) Berends 219cff403f (v1.0.1.9004) Support dplyr 1.0.0 2020-03-14 14:05:43 +01:00
dr. M.S. (Matthijs) Berends f7eb6e4107 (v0.9.0.9002) website updates 2019-12-16 11:08:25 +01:00
dr. M.S. (Matthijs) Berends 00cdb498a0 (v0.7.1.9102) lintr 2019-10-11 17:21:02 +02:00
dr. M.S. (Matthijs) Berends f553a08a7b (v0.7.1.9074) CI updates 2019-09-16 12:00:56 +02:00
dr. M.S. (Matthijs) Berends 398c5bdc4f (v0.7.1.9073) as.mo() self-learning algorithm 2019-09-15 22:57:30 +02:00
dr. M.S. (Matthijs) Berends 6598c5615d (v0.7.1.9033) 5000 new fungi 2019-08-09 23:22:10 +02:00
dr. M.S. (Matthijs) Berends 0a6580b4eb (v0.6.1.9047) ggplot fix 2019-05-31 20:48:22 +02:00
dr. M.S. (Matthijs) Berends 6eb08a2ea3 new git flow to repository 2019-05-20 14:16:53 +02:00
dr. M.S. (Matthijs) Berends 248e508e9b CI - test also on r-devel 2019-03-29 14:34:39 +01:00
dr. M.S. (Matthijs) Berends 46dcc7e2e8 set_mo_source 2019-01-21 15:53:01 +01:00
dr. M.S. (Matthijs) Berends 193a2d2863 EUCAST update, as.mo bugfix for empty vlaues 2019-01-08 16:23:45 +01:00
dr. M.S. (Matthijs) Berends eab3c9dac8 gitlab ci 2019-01-04 10:41:18 +01:00
dr. M.S. (Matthijs) Berends 6652f7d82b fix warnings 2019-01-04 09:49:42 +01:00
dr. M.S. (Matthijs) Berends fd646fe1fc introduction of Packrat 2018-12-30 08:40:40 +01:00
dr. M.S. (Matthijs) Berends 92a32b62a7 new website, freq updates 2018-12-29 22:24:19 +01:00
dr. M.S. (Matthijs) Berends b937662a97 limits for scale_y_percent - Licence update 2018-12-16 22:45:12 +01:00
dr. M.S. (Matthijs) Berends 5cfa5bbfe3 v0.5.0 2018-11-30 16:16:04 +01:00
dr. M.S. (Matthijs) Berends 029157b3be 163 new trade names, added ab_tradenames 2018-08-29 12:27:37 +02:00
dr. M.S. (Matthijs) Berends 1ba7d883fe new ggplot enhancement 2018-08-11 21:30:00 +02:00
dr. M.S. (Matthijs) Berends b6655f6454 Welcome C++! 2018-07-13 17:23:46 +02:00
uscloud dcc26dd942 Update freq function 2018-05-22 16:34:22 +02:00
dr. M.S. (Matthijs) Berends f05e7178cb added vignette of freq 2018-05-09 11:44:46 +02:00
dr. M.S. (Matthijs) Berends c182a9673d fix clipboard on linux 2018-04-02 11:11:21 +02:00
dr. M.S. (Matthijs) Berends 62304dc23f first commit 2018-02-21 11:52:31 +01:00