Skip to content

docs(zipper): name the tc tag in comments that still say pa - #695

Merged
nh13 merged 1 commit into
mainfrom
nh/docs-zipper-tc-tag-comments
Aug 5, 2026
Merged

nh13 merged 1 commit into
mainfrom
nh/docs-zipper-tc-tag-comments

Conversation

@nh13

@nh13 nh13 commented Aug 1, 2026 •

Copy link
Copy Markdown
Member

fgumi zipper writes the template-coordinate sort key as tc, and has since 0.2.0, when the tag was renamed to stop colliding with bwa-mem's pa:f (primary-alignment score fraction). The code says so — add_template_coordinate_tags_raw appends SamTag::TC and tc_info_from_raw reads it — but about forty doc comments, inline comments, and assertion messages in zipper.rs still call it the pa tag. The section banner reads "Primary Alignment Tag (pa) Tests", naming the exact tag the rename exists to avoid, and failures print messages like Supplementary should have pa tag for a tag no fgumi release has written in four minor versions.

This renames those to tc, plus the has_pa_tag local. The --skip-pa-tags flag alias is deliberately untouched — that spelling is real and stays accepted.

One site in fgumi-raw-bam keeps its pa literal: test_dedup_pa_tag_check_fails_on_b_array reproduces a historical dedup bug and the legacy bytes are the point. Its comment claimed the tag was "produced by fgumi zipper", which stopped being true in 0.2.0; it now says what it actually is and notes that the tag name is incidental to the bug — what defeats dedup's check is the B:i array type, which tc still uses.

Comments and assertion messages only; no behavior change. Verified to merge cleanly with #682, which touches the help text in the same file.

Summary by CodeRabbit

  • Documentation

    • Clarified template-coordinate metadata terminology and legacy tag context.
    • Updated comments and test descriptions to consistently reference the tc tag.
  • Tests

    • Improved regression test clarity for template-coordinate tags without changing existing behavior.

`fgumi zipper` writes the template-coordinate sort key as `tc`; it has been
spelled that way since 0.2.0, when the tag was renamed to avoid colliding with
bwa-mem's `pa:f` (primary-alignment score fraction). The code follows suit --
`add_template_coordinate_tags_raw` appends `SamTag::TC`, and `tc_info_from_raw`
reads it -- but roughly forty doc comments, inline comments, and assertion
messages in `zipper.rs` still call it the `pa` tag, including the section banner
"Primary Alignment Tag (pa) Tests", which names the very tag the rename exists
to avoid.

Rename those to `tc`, along with the `has_pa_tag` local. The `--skip-pa-tags`
alias is untouched: that flag really is spelled with `pa` and stays accepted.

In `fgumi-raw-bam`, `test_dedup_pa_tag_check_fails_on_b_array` keeps its `pa`
literal -- it reproduces a historical dedup bug -- but its comment claimed the
tag was "produced by fgumi zipper", which stopped being true in 0.2.0. Say what
it actually is, and note that the tag name is incidental to the bug: what
defeats the dedup check is the `B:i` array type, which `tc` still uses.

Comments and assertion messages only; no behavior change.
@nh13
nh13 temporarily deployed to github-actions August 1, 2026 17:04 — with GitHub Actions Inactive
@coderabbitai

coderabbitai Bot commented Aug 1, 2026 •

Copy link
Copy Markdown

Review Change Stack

Note

Reviews paused

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 329af062-8b92-434c-a817-df50cf138ee2

📥 Commits

Reviewing files that changed from the base of the PR and between 565df42 and 86c94f9.

📒 Files selected for processing (2)
  • crates/fgumi-raw-bam/src/tags.rs
  • src/lib/commands/zipper.rs

Walkthrough

The change replaces legacy pa terminology with tc in comments, helper documentation, test descriptions, diagnostics, and assertions. Tag-generation behavior remains unchanged.

Changes

Template-coordinate tag terminology

Layer / File(s) Summary
Align tc documentation and tests
crates/fgumi-raw-bam/src/tags.rs, src/lib/commands/zipper.rs
Comments, helper documentation, test descriptions, diagnostics, and assertions now consistently refer to the tc template-coordinate tag and its B:i representation.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the documentation and comment updates that rename the template-coordinate tag from pa to tc.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch nh/docs-zipper-tc-tag-comments

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Aug 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.95%. Comparing base (565df42) to head (86c94f9).
⚠️ Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #695      +/-   ##
==========================================
- Coverage   93.95%   93.95%   -0.01%     
==========================================
  Files         178      178              
  Lines      108059   108059              
==========================================
- Hits       101525   101523       -2     
- Misses       6534     6536       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nh13

nh13 commented Aug 1, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai pause

@coderabbitai

coderabbitai Bot commented Aug 1, 2026

Copy link
Copy Markdown
✅ Action performed

Reviews paused.

@nh13

nh13 commented Aug 5, 2026

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@nh13
nh13 merged commit 73779f3 into main Aug 5, 2026
14 checks passed
@nh13
nh13 deleted the nh/docs-zipper-tc-tag-comments branch August 5, 2026 15:50
@nh13 nh13 mentioned this pull request Aug 5, 2026
@nh13 nh13 mentioned this pull request Aug 15, 2026

This branch was previously deployed

1 inactive deployment
github-actions — 86c94f9c Deployed Aug 1, 2026 by nh13 via coverage #3201
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