Repository navigation
Reads site: study accessions link to their NCBI BioProject, with the project title on hover - #317
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
On each reads species page, study accessions now link to NCBI BioProject, and the link's hover text is the project title.
PRJNA…/PRJEB…/PRJDB…link tohttps://www.ncbi.nlm.nih.gov/bioproject/<acc>. BareSRP/ERP/DRPaccessions link to a BioProject search instead.Where the titles come from
datasets/reads/sra_survey/pilot/study_titles.pycollects the studies in the committed wave tables. It takes eachstudy_titlefrom the PopSeq kingdom run table (cache/fungi_runs_ena_2026-11-06.tsv.gz), so PopSeq stays the metadata source.study_titles.tsv, committed, holds 3,912 studies, all with a title (3,663 PRJNA, 174 PRJEB, 75 PRJDB).scripts/build_reads_site.pyaddsstudy_titlesto each species JSON, limited to that species' own studies. If the TSV is missing, the map is empty.CONTRACT.md.Checks
tests/test_build_reads_site_script.py.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