Skip to content

Commit

Permalink
Issue #1316: fixed the seg-fault which occurred if --soloType CB_samT…
Browse files Browse the repository at this point in the history
…agOut and --soloCBwhitelist None are used together.
  • Loading branch information
alexdobin committed Sep 24, 2021
1 parent 4408118 commit e49af00
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
* Issue #1316: fixed the seg-fault which occurred if --soloType CB_samTagOut and --soloCBwhitelist None are used together.
* Changed Solo summary statistics outputs in Barcodes.stats and Features.stats files.
* Implemented --soloCBmatchWLtype ParseBio_ED3 to allow multiple mismatches and one insertion+deletion for --soloType CB_UMI_Complex.
* Implemented Solo BAM tags gx gn: output ';'-separated gene IDs and names for both unique- and multi-gene reads. Note that GX/GN tags are used to output gene ID/name for unique-gene reads.
Expand Down
6 changes: 5 additions & 1 deletion source/SoloReadBarcode_getCBandUMI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,11 @@ void SoloReadBarcode::getCBandUMI(char **readSeq, char **readQual, uint64 *readL
matchCBtoWL(cbSeq, cbQual, pSolo.cbWL, cbMatch, cbMatchInd, cbMatchString);

if ( cbMatch==0 || cbMatch==1 ) {
cbSeqCorrected=pSolo.cbWLstr[cbMatchInd[0]];
if (pSolo.cbWLyes) {
cbSeqCorrected = pSolo.cbWLstr[cbMatchInd[0]];
} else {
cbSeqCorrected = cbSeq; //no WL - no correction
};
} else {
cbSeqCorrected="";
};
Expand Down

0 comments on commit e49af00

Please sign in to comment.