Skip to content

Commit 8d8bc4c

Browse files
committed
feat: clarify receptor resolution logic for centroidId axis in detectMode function
1 parent 32d5946 commit 8d8bc4c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

workflow/src/main.tpl.tengo

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ detectMode := func(axisSpec) {
5656
// (aminoacid) per cluster on a 2-axis [sampleId, centroidId] anchor. Treat as legacy-bulk
5757
// vdj for sequence pulling; single-cell centroids still carry the chain domain on the
5858
// sequence columns, so the per-chain handling in the body works unchanged.
59+
// The centroidId axis carries no VDJ receptor/chain keys, so receptor is resolved
60+
// solely from the chain domain on the sequence columns. A producer that omits chain
61+
// metadata leaves receptorSeen false and falls back to the IG default — surfaced (not
62+
// silent) by the R13b receptorNotDetected() warning at the !receptorSeen check below.
5963
if axisSpec.name == "pl7.app/clustering/centroidId" {
6064
return "antibody_tcr_legacy_bulk"
6165
}

0 commit comments

Comments
 (0)