Skip to content

Replace the 2020 Bergey's scrape with a sentence-level extraction of all 2,249 genus abstracts #274

Closed
waldronlab/bugphyzzExports
#88

Description

@lwaldron

The 2020 Bergey's scrape (bergeys.webscraper, keyword matching on genus abstracts) is the only genus-level source in bugphyzz. Checked against BacDive strain majorities, Madin 2020 genus consensus and a fresh LLM extraction of the same abstracts (Gemini Flash, all 2,249 genus chapters listed in Crossref; scripts and tables in waldronlab/bugphyzz-review, analysis/bergeys/):

2020 scrape 2026 extraction
genera with aerophilicity 1,196 1,768
aerophilicity agrees with BacDive majority (499 genera) 84% 88%
where BacDive is >= 80% consistent (407 genera) 92% 95%
gram stain agrees with BacDive (413 genera) 96% 98%
shape agrees with BacDive (397 genera) 82% 93%
genera with motility / spore formation / GC content 0 / 0 / 0 1,666 / 1,208 / 2,083

The scraper's systematic error is keeping one state from "aerobic or facultatively anaerobic" (6.5% of shared genera; Bacillus, Streptococcus, Listeria, the Enterobacteriaceae) and keyword hits inside other sentences for shape (Mycobacterium and Burkholderia as vibrioid, Bifidobacterium as coccus). The extraction reads whole sentences and reports every state with a frequency.

For BugSigDB's 556 bacterial genera, adding the extraction raises genus-level coverage of aerophilicity from 60% to 66%, shape 51% to 65%, and motility from 0 to 54%.

Caveats: 200 genera in the 2020 scrape have no Bergey's genus chapter in Crossref (e.g. Aquicella, Acidicapsa), so their source label may be wrong, or Crossref is missing chapters; needs a look before dropping them. Haemophilus and Amphibacillus came out worse in the extraction. Extraction of "always/usually" only is stricter than the scrape for shape (73% vs 82%), so keep "sometimes" states with their lower score.

Proposal: replace the Bergey's rows in the sheets with sources/bergeys_2026/traits.tsv in bugphyzzExports (waldronlab/bugphyzzExports#69), keep the 2020 rows only for the 200 genera the new extraction lacks until resolved, and spot-check 30 genera by hand against the abstracts before the switch.

Drafted with Claude Code.

Activity

  1. added
    enhancement
    on Nov 5, 2026
  2. lwaldron commented on Nov 7, 2026

    @lwaldron
    MemberAuthor

    Correction: the genera the 2020 scrape has but Bergeys_2026 lacks are 35, not about 200; most have chapters and were matched by raw title. #287 lists them.

    Drafted with Claude Code.

  3. lwaldron commented on Nov 7, 2026

    @lwaldron
    MemberAuthor

    Done in waldronlab/bugphyzzExports#88. Bergeys_2026 now also has cell arrangement, spore shape, width and length, and the export drops the 2020 rows. Agreement with the scrape on shared genera: aerophilicity 85%, gram stain 98%, shape 72%, arrangement 88%, spore shape 89%, width and length ranges overlap 95%. Hand check of 30 random genera against their abstracts: 28 right on every trait; Methanospirillum length is the filament's, and Pasteuria's arrangement describes sporangia. About ten genera only the scrape had are lost (#287).

    Drafted with Claude Code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    curationenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions