Interview-Driven Workflow Construction and Repair in Galaxy

Free-Form Source Summary: Planetary-Scale Retrospective DMS of Bacteriophage ΦX174

0. Scope note (read this first)

The primary source is /Users/scottcain/git/dms/paper/draft_manuscript.tex (“The Petabase Evolutionary Landscape of Bacteriophage ΦX174: Deconvoluting Laboratory Spike-In Clouds, Dual-Coding Constraints, and Uncultivated Microviral Diversity”, Nekrutenko et al., draft, Sept 2026). As it stands today, this .tex file contains only the Introduction and the first Results section (SRA landscape certification / spike-in sieve, ~6 pages). It does not yet contain the later results sections (real-time purging kinetics, HyphAeon VEP benchmarking, dual-coding shadow effect, Fane morphogenesis) that are drafted in sections/02..07_*.md and in the sibling manuscript phiX174_planetary_dms.tex (explicitly out of scope per instructions).

Because the task asked for the computational methods underlying the whole project (this summary feeds a Galaxy-workflow-reconstruction pipeline, not a manuscript-text pipeline), this document covers the full computational pipeline implied by draft_manuscript.tex plus the supplementary project material (HANDOVER.md, PROJECT_SUMMARY.md, README.md, the ChronAeon/ HyphAeon reanalysis report, the per-section drafts, and the actual Python/shell scripts at the repo root). Facts that come only from the current draft_manuscript.tex are marked [PAPER]; facts that come from the broader project context are marked [CONTEXT]. Downstream phases should treat [PAPER] facts as the authoritative scope of “the paper” and [CONTEXT] facts as enrichment / rationale for why each pipeline stage exists.

The manuscript’s actual object of study is not a single wet-lab experiment: it is a retrospective computational re-analysis of public sequence archives (the NCBI SRA / Logan petabase index) for the historically important model virus ΦX174, cross-validated against a 2026 whole-genome saturation-mutagenesis (deep mutational scanning, DMS) dataset and several classical experimental-evolution datasets. The reproducible “workflow” is therefore a data mining + curation + statistics pipeline, not a wet-lab protocol.

1. High-level pipeline shape

[Stage A] Reference & query prep (genome, 10 CDS FASTAs)
        |
[Stage B] Petabase k-mer containment screen: kmindex (Galaxy tool) across 109 Logan k-mer DBs
        |
[Stage C] Track 1 — LexicMap sequence-to-graph streaming search (Galaxy tool) across Logan indices
        |         -> custom streaming client (stream_lexicmap_msa.py) does multi-HSP coordinate
        |            tiling, codon QC, haplotype collapsing -> clean/flagged FASTA + TSV + JSON
        |
[Stage C'] Track 2 — Disassembler/logan-walker cDBG traversal (Rust binary) on stratified
        |            diversity cohorts -> intra-host SNVs/haplotypes (VCF-like / codon MSA)
        |
[Stage D] Nominal-taxonomy SRA metadata audit (manual/registry-based BioProject certification)
        |
[Stage E] Reference experimental-evolution datasets ingested independently:
        |   - Idaho 2024 SRA time series (download -> bowtie2 align -> samtools mpileup -> custom
        |     Python trajectory caller) -> selection-rate vs DMS-fitness correlation
        |   - Dickins & Nekrutenko 2009 chemostat GAII reads (Galaxy library download -> bowtie2
        |     -> samtools mpileup -> custom trajectory caller)
        |
[Stage F] Wei/Li/Lehner 2026 whole-genome DMS dataset (external ground truth, NOT bundled in
        |   this repo — see Gaps) joined against every other stage by mutation ID
        |
[Stage G] HyphAeon (real installed CLI + Python package) zero-shot variant-effect prediction,
        |   benchmarked against GEMME/ProteoCast/ESCOTT/RSALOR/DDMut/ESM-2/ESM3/Tranception
        |
[Stage H] hyphaeon_overlaps (custom package) dual-coding consequence classification + shadow-
        |   effect calibration on overlapping ORFs (D/E, B/A, K/C, K/A)
        |
[Stage I] "ChronAeon" multi-scale sieve = a fixed sequence of HyphAeon CLI subcommands
        |   (autoclock -> r0 -> meme -> filter) plus closed-form stats (ACAT/Cauchy combination)
        |   run over the curated sequence cohorts, in run_chronaeon_phix174_sieve.py
        |
[Stage J] Fane-mechanics / Bull-Wichman literature cross-referencing (pandas joins against DMS
        |   table + curated bibliography JSON, no external tool)
        |
[Stage K] Figure generation (matplotlib/seaborn) + manuscript style linting (project-internal,
            not a science tool)

2. Stage-by-stage detail

Stage A — Reference genome and per-gene CDS query panel

Stage B — Petabase k-mer containment screen (kmindex, real Galaxy tool)

Stage C — Track 1: LexicMap streaming search (real Galaxy tool) + custom tiling/QC client

Stage C′ — Track 2: Disassembler / logan-walker cDBG traversal (real external tool, Rust)

Stage D — Nominal-taxonomy SRA metadata audit

Stage D2 — The Sanger am3 dual-coding molecular fingerprint (core finding, not a tool stage)

Stage E — Reference experimental-evolution datasets (real tools: bowtie2 + samtools)

Stage F — Wei, Li & Lehner (2026) whole-genome DMS ground truth (external dataset, NOT in repo)

Stage G — HyphAeon zero-shot variant-effect prediction (real installed tool)

Stage H — Dual-coding / overlapping-frame consequence classification (custom package, real code)

Stage I — “ChronAeon Multi-Scale SRA Sieve” (run_chronaeon_phix174_sieve.py)

Stage J — Fane-mechanics and Bull/Wichman literature cross-referencing (pure pandas, no external tool)

Stage K — Figure generation and manuscript QA (project tooling, not science tools)

3. Sample / reference data catalog (for test-data resolution phases)

Dataset Identifier(s) Role Location in repo
ΦX174 reference genome RefSeq NC_001422.1 (5,386 nt) Universal alignment reference ref/NC_001422.1.fasta[.fai]
ΦX174 proteome 10 genes, ref/phix174_proteins.faa Query panel for LexicMap/kmindex ref/, cds/*.fasta
Logan SRA petabase index kmindex: 109 DB shards; LexicMap: 25 domain indices Universe being mined external (usegalaxy.org-hosted Galaxy tools)
Idaho 2024 chemostat time series BioProject PRJNA1174868, SRP539859; runs SRR31059334SRR31059340 Real-time selection-rate validation data/sra_evolution/idaho2024/ (post-download)
Dickins & Nekrutenko 2009 10 samples A1-4/B1,3,4/C1,3,4; Galaxy library folder F175d7d5ddeeb1d43 on usegalaxy.org Classical chemostat sweep validation data/dickins2009/ (post-download); full text dickins2009_pmc2817424.xml
Wei, Li & Lehner 2026 DMS bioRxiv 10.64898/2026.07.25.740675; N=39,335 variants / 16,098 SNVs Ground-truth fitness surface for everything NOT present in repo — expected at phix174_WGM/data/...zip
NCBI Virus complete genomes 185 complete GenBank records “91.8% derive from lab evolution” certification data/ncbi_virus_*
Nominal-taxonomy SRA audit TaxID 10847 / 2886930; 18 BioProjects incl. SRP042938,SRP008975,ERP002532,ERP000074,SRP001260,ERP001254,SRP347090,SRP653402,ERP001281,SRP066453,SRP059208,SRP082602,SRP009433,ERP000177,SRP003315,SRP363953,DRP008496 Provenance certification / negative-control catalog paper/results_section1_sra_landscape.md, Table 2 in the .tex
Fane genetics bibliography 61–69 curated papers Mechanistic cross-referencing fane_phage_abstracts.json, fane_ba_papers.json
EVcouplings MSAs author-supplied, from Figshare HyphAeon input alignments msas/, msas_sub/ (350-taxa subsampled)
Structural references PDB 1CD3 / 2BPA (cryo-EM coordinates) Structural context for Fane mechanics, cited not computed on none locally (citation only)

4. results/ directory shape (already-computed intermediate/output tables — useful as

expected-output fixtures for a Galaxy test plan)

results/00_ingestion/            lexicmap_9genes_ingestion_manifest.csv, qc_clean_contigs.fasta, qc_clean_metadata.csv
results/01_autoclock_deconvolution/  autoclock_summary.json, hierarchical_summary.json, hierarchical_tree.json,
                                      classified_taxa_metadata.csv, contemporaneous_dyads.csv
results/02_layer1_quasispecies/   gene_e_am3_quarantine_audit.json, quasispecies_cloud.csv, purifying_selection_gradient.csv
results/03_layer2_transmission/   dickins2009_chemostat_trajectories.csv, idaho2024_realtime_purging_kinetics.csv, r0_phylodynamics_summary.json
results/04_layer3_speciation/     bull_wichman_adaptive_sites_benchmark.csv, hyphaeon_meme_attributed.json,
                                   hyphaeon_meme_sites.csv, layer3_speciation_alignment.fasta, neural_lineage_selection_drivers.csv
results/05_layer4_superfamily/    deep_structural_invariants.csv, structural_skeleton.fasta
results/06_dms_benchmarking/      proteome_vep_benchmark.csv
results/07_overlapping_frames/    ba_overlap_dms_summary.csv, de_overlap_dms_summary.csv, shadow_effect_calibration.json
results/08_fane_mechanics/        fane_mechanistic_landmarks.csv, gene_a_domain_dms_summary.csv, interface_kde_curves.csv

This numbered-layer structure (00 ingestion → 01 autoclock → 02 layer1 → 03 layer2 → 04 layer3 → 05 layer4 → 06 benchmarking → 07 overlaps → 08 Fane) is a strong hint for how to decompose the eventual Galaxy workflow into stages/subworkflows.

5. Tool inventory — real/installable vs. custom/internal

Real, externally installable tools/CLIs actually invoked in code:

Custom/internal orchestration code (no separate installable tool exists — would need to be Galaxy-wrapped as bespoke scripts, or reimplemented as native Galaxy steps):

Names that are NOT separate tools (flagging per task instructions): “ChronAeon” is a project/spec-document name for an orchestration pattern (a fixed sequence of hyphaeon CLI calls + a custom ACAT step), not an importable package or binary distinct from hyphaeon itself. “Fane mechanics” / “Fane morphogenesis” refers to the body of work by virologist Bentley A. Fane (cited literature), not a tool. “AM3 sieve” / “am3 quarantine” refers to the biological am3 mutant + the QC filtering logic inside stream_lexicmap_msa.py, not a separate program.

6. Key literature / reference data anchors (for citation/README generation downstream)

7. Assumptions and open gaps (carried forward per skill protocol)

  1. draft_manuscript.tex is materially narrower than the full project. Treated the .tex file as authoritative for “what the paper claims” and everything else as context/rationale, per explicit task instruction. A later phase should confirm whether the Galaxy workflow target is scoped to only the SRA-landscape/spike-in pipeline (Stages A–D, D2) actually in the current .tex, or the full multi-stage project (through HyphAeon/Fane synthesis) implied by HANDOVER.md/sections. This summary documents both but does not resolve the scoping question.
  2. The Wei et al. 2026 DMS dataset is a hard external dependency not present in this repo (phix174_WGM/...zip, expected at a path that doesn’t exist locally). Any reproducible workflow needs this sourced from the paper’s data-availability statement / bioRxiv supplement.
  3. HyphAeon’s installability/licensing/Tool-Shed status is unverified. Confirmed it’s a real CLI+library (github.com/veg/hyphaeon per citations) invoked via subprocess/import, but this summary could not check whether it’s conda/pip-installable or Tool-Shed-wrapped already — important for the Galaxy tool-discovery phase.
  4. The host/biome/platform metadata stratification of the 2.1M-accession union set (Figure 1B/C numbers in the paper) has no corresponding script among the root-level .py files found; likely produced via ad hoc NCBI Entrez/SRA-metadata queries or manual curation not captured in this repo snapshot. Flagged as a reproducibility gap rather than invented.
  5. Several absolute paths are hardcoded to the original author’s machine (/home/anton/..., /Users/anton/..., /Users/sergei/..., /tmp/gxy.txt API key) — treat all such paths as illustrative/non-portable; a Galaxy workflow would need these parameterized as inputs/config.
  6. manuscript-authoring-protocol/ was checked and confirmed to be purely about prose style/ citation-hygiene tooling (per instructions), not science methods — excluded from the pipeline description above.
  7. run_chronaeon_phix174_sieve.py (Stage I) mixes genuine tool calls (Phases 1/3/4, real hyphaeon CLI invocations) with a synthetic-metadata demo step (Phase 0’s fabricated pseudo-dates) and several hardcoded/pre-baked statistics in the later phases. Treat this script as evidence of intended pipeline shape, not as a script to port verbatim into Galaxy steps — flagged so a later phase does not mistake baked-in constants for a computation to reproduce.
  8. Only two stages are confirmed to already run as installed Galaxy Tool Shed tools today (kmindex_query 0.6.1+galaxy4, lexicmap_search 0.9.0+galaxy1, both via BioBlend against usegalaxy.org). Everything else in the pipeline (multi-HSP tiling/QC, disassembler/logan-walker, mpileup trajectory calling, HyphAeon, hyphaeon_overlaps, FastTree, ChronAeon orchestration) is currently ad hoc local/BioBlend scripting and will need new Galaxy tool wrappers or reimplementation as native Galaxy steps.

8. Foundry feedback

No feedback ledger entry was appended for this run. Rationale: nothing encountered during this extraction pointed at a defect, gap, or self-contradiction in the summarize-paper skill bundle itself (its SKILL.md and _feedback.md protocol were both clear and sufficient to complete this task). The difficulties encountered — a narrower-than-expected primary paper, an external dataset missing from the repo, an unscripted metadata-stratification step — are properties of this specific project’s source material, not of the Foundry skill asset, so per the ledger’s own scope rule (“does not record unmet requirements in the workflow being built”) they do not qualify as ledger entries; they are instead recorded above in Section 7 as assumptions/gaps for the next pipeline phase to consume.