Skip to content

fix(solo): --soloBarcodeMate 1 requires clipping the barcode off that mate - #240

Open
BenjaminDEMAILLE wants to merge 1 commit into
mainfrom
fix/solo-barcode-mate-clip
Open

fix(solo): --soloBarcodeMate 1 requires clipping the barcode off that mate#240
BenjaminDEMAILLE wants to merge 1 commit into
mainfrom
fix/solo-barcode-mate-clip

Conversation

@BenjaminDEMAILLE

Copy link
Copy Markdown
Contributor

Closes #227.

--soloBarcodeMate 1 says the CB+UMI sits inside mate 1. Nothing else in the parameter set says how many bases that is, which is why STAR refuses the run unless that mate is clipped (ParametersSolo.cpp:145-150).

Here the combination ran to completion: the barcode prefix was handed to the aligner as if it were cDNA (28 bases of it for 10x v3), and no output said so. Best case the aligner soft-clipped it and the effective mate got shorter; worse, it dragged the alignment start.

Validation only. The message names the fix the way STAR's does, and a clip on either end of mate 1 satisfies it, including the single-value form that applies to both mates. A clip that covers only mate 2 does not.

Tests: the existing solo_barcode_mate_validation now supplies a clip (it was relying on the combination being accepted), plus a new test for each arm of the rule.

cargo test, cargo clippy --all-targets -- -D warnings on a cold cache, and cargo fmt --check are green.

🤖 Generated with Claude Code

… mate

STAR refuses the combination (ParametersSolo.cpp:145-150) because the barcode
region is not cDNA and nothing else says how long it is. Here it ran to
completion with the CB+UMI prefix aligned as sequence: 28 bases for 10x v3,
with no error at any point in the run.

Validation only, with the message pointing at --clip5pNbases / --clip3pNbases
as STAR's does. A clip on either end of mate 1 satisfies it; a clip that only
covers mate 2 does not.

Closes #227.
@BenjaminDEMAILLE
BenjaminDEMAILLE force-pushed the fix/solo-barcode-mate-clip branch from 1ea468f to f353f14 Compare August 26, 2026 22:27
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.

solo: --soloBarcodeMate does not require clipping the barcode off the mate, so the barcode bases stay in the aligned read

1 participant