Skip to content

Commit

Permalink
fix differing types
Browse files Browse the repository at this point in the history
  • Loading branch information
jamorrison committed Jun 15, 2023
1 parent ef4f905 commit d0cedb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dupsifter.c
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ uint64_t get_packed_barcode(bam1_t *read1, ds_conf_t *conf) {
// This could be a corrected sequence, which should hopefully avoid any basecalling errors
s = bam_aux_get(read1, "CB");
if (s) {
char *full = s+1;
uint8_t *full = s+1;
s++;
while (*s) {
if (*s != 'A' && *s != 'C' && *s != 'G' && *s != 'T' && *s != '+' && *s != '-') {
Expand All @@ -789,7 +789,7 @@ uint64_t get_packed_barcode(bam1_t *read1, ds_conf_t *conf) {
// If CB cannot be found, try finding the CR tag, which is the uncorrected sequence that comes off the sequencer
s = bam_aux_get(read1, "CR");
if (s) {
char *full = s+1;
uint8_t *full = s+1;
s++;
while (*s) {
if (*s != 'A' && *s != 'C' && *s != 'G' && *s != 'T' && *s != '+' && *s != '-') {
Expand Down

0 comments on commit d0cedb5

Please sign in to comment.