Skip to content

Reads site: study accessions link to their NCBI BioProject, with the project title on hover - #317

Merged
hyphaltip merged 1 commit into
mainfrom
reads-bioproject-links
Nov 8, 2026
Merged

hyphaltip merged 1 commit into
mainfrom
reads-bioproject-links

Conversation

@hyphaltip

Copy link
Copy Markdown
Member

What

On each reads species page, study accessions now link to NCBI BioProject, and the link's hover text is the project title.

  • Links: PRJNA…/PRJEB…/PRJDB… link to https://www.ncbi.nlm.nih.gov/bioproject/<acc>. Bare SRP/ERP/DRP accessions link to a BioProject search instead.
  • Where: the study column of the runs table, and the "By study" rows of the counts table. The "All studies pooled" row stays plain text.
  • Hover: for example, PRJNA624742 shows "Genomic determinants of host specialization in the polyphagous fungal pathogen Botrytis cinerea".
  • Search: the runs search box also matches project titles.
  • Wording: the outdated "up to 50 per species, at most 4 per study" text on the reads index now reads "up to 700 per species".

Where the titles come from

  • New script: datasets/reads/sra_survey/pilot/study_titles.py collects the studies in the committed wave tables. It takes each study_title from the PopSeq kingdom run table (cache/fungi_runs_ena_2026-11-06.tsv.gz), so PopSeq stays the metadata source.
  • New table: study_titles.tsv, committed, holds 3,912 studies, all with a title (3,663 PRJNA, 174 PRJEB, 75 PRJDB).
  • Builder: scripts/build_reads_site.py adds study_titles to each species JSON, limited to that species' own studies. If the TSV is missing, the map is empty.
  • Docs: documented in CONTRACT.md.

Checks

  • Tests: 2 new tests in tests/test_build_reads_site_script.py.
  • Full suite on the HPCC at ad0c89c: 1951 passed, 6 skipped.
  • Headless browser, Botrytis cinerea page:
    • 338 of 338 run rows linked, and 14 of 14 study rows in the counts table.
    • PRJNA624742 has the correct href and its title on hover.
    • No console errors.

The live site changes only after this is merged and then deployed, either with a version tag or with a manual "Deploy browser page" run with build_only unticked.

🤖 Generated with Claude Code

…project title on hover

- study_titles.py builds study_titles.tsv from the PopSeq kingdom run table (3,912 studies, all titled);
  build_reads_site.py puts each species' own titles into its report (study_titles).
- species.html: the runs table and the by-study counts table link PRJ* accessions to
  https://www.ncbi.nlm.nih.gov/bioproject/<acc> (SRP/ERP/DRP to a BioProject search) with the title as
  the tooltip; the run search also matches project titles. Checked in a headless browser on
  Botrytis cinerea: 338 of 338 run rows and 14 of 14 study rows linked, PRJNA624742 titled 'Genomic
  determinants of host specialization in the polyphagous fungal pathogen Botrytis cinerea', 0 console errors.
- Stale text fixed: 'up to 50 per species and at most 4 per study' -> up to 700 per species, one run
  per BioSample.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hyphaltip
hyphaltip merged commit f13691f into main Nov 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant