Repository navigation
The route from a click to a tube map is drawn, twice - #79
Merged
Merged
Conversation
The seqtubemap pipeline crosses two repositories, three processes and five file formats, and until now it was only readable by following it through the source. These two documents draw it: an architecture overview, an end-to-end sequence, and five detail sequences — the click becoming a URL, the region becoming vg JSON, the vg JSON becoming band data, the layout passes inside createTubeMap, and the bytes becoming a picture again. The Markdown carries the diagrams as Mermaid, in the shape of pgb's annotation-track document. The HTML redraws them as ruled lifeline charts and reuses the design already in docs/tube-map-pipeline.html, so the three documents read as a family; it is published at https://claude.ai/code/artifact/ca74cc4a-c68c-452a-9682-3c8480705b36. Both are written in CONTEXT.md's vocabulary — node, segment, strand, band — and both end on the invariants the route rests on, because those are the part that is expensive to rediscover: the walk-checked cache, the per-thread tabix handle, the six arguments both generators take by construction, and the one collector the document and the band payload are two sinks over. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015wyakF7DEbvddMqaL9kSB6
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.
Sequence and interaction diagrams for the seqtubemap pipeline, in Markdown and HTML.
The route crosses two repositories, three processes and five file formats, and
until now it was only readable by following it through the source. These
documents draw it end to end: a right-click on a node in
pgb, through theeligibility gate that has to live in the client because the API answers an
unknown
minigraphnodewith 200, through/seqtubemap— format validation,the walk-checked cache, gbz extraction, the tabix walk lookup,
vg convert -gand
vg view -j, the PCLAI lookup — into the spawned Node render, and back outas a band payload the viewer reads without a regular expression.
What is in them
everything above
BandCollectorcomputes numbers, everything below encodesthem.
the region becoming vg JSON, the vg JSON becoming band data, the layout
passes inside
createTubeMap, and the bytes becoming a picture again.docs/perf/, on one shared scale.Two documents, one subject
docs/seqtubemap-interaction.mdcarries the diagrams as Mermaid, in the shapeof
pgb'sannotation-track-interaction.md, so the two repositories describethemselves the same way.
docs/seqtubemap-interaction.htmlredraws them as ruled lifeline charts —dashed lifelines, solid arrows for calls and dashed for returns, the client
half and the server half in the two colours
docs/tube-map-pipeline.htmlalready uses. It reuses that document's type and palette so the three HTML docs
in
docs/read as a family. Published athttps://claude.ai/code/artifact/ca74cc4a-c68c-452a-9682-3c8480705b36
Vocabulary throughout is
CONTEXT.md's: node, segment, strand,band, pivot strand, region.
Not verified in this branch
Two claims are carried over from the source they document rather than re-run
here: that
pathnumoption's presence is what returns 369 strands instead of46 (
pgb's finding, recorded inpangenomeURL.ts), and that theband-thickness and dense-strand-id invariants throw in
band-data.mjs— readfrom the code and its tests' descriptions, not executed.
Documentation only. No code changes, no test changes.
🤖 Generated with Claude Code
https://claude.ai/code/session_015wyakF7DEbvddMqaL9kSB6