fix(solo): --soloBarcodeMate 1 requires clipping the barcode off that mate - #240
Open
BenjaminDEMAILLE wants to merge 1 commit into
Open
fix(solo): --soloBarcodeMate 1 requires clipping the barcode off that mate#240BenjaminDEMAILLE wants to merge 1 commit into
BenjaminDEMAILLE wants to merge 1 commit into
Conversation
… 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
force-pushed
the
fix/solo-barcode-mate-clip
branch
from
August 26, 2026 22:27
1ea468f to
f353f14
Compare
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.
Closes #227.
--soloBarcodeMate 1says 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_validationnow 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 warningson a cold cache, andcargo fmt --checkare green.🤖 Generated with Claude Code