Skip to content

Commit

Permalink
enable barcode option for single-end data
Browse files Browse the repository at this point in the history
minor fix, that allows for de-duplication of single-end data to barcode wise.
barcode option is now available for single-end data
  • Loading branch information
koriege authored Nov 6, 2024
1 parent 213ba63 commit 5187127
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dupsifter.c
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,11 @@ void mark_dup(bam1_chain_t *bc, bam_hdr_t *hdr, ds_conf_t *conf, refcache_t *rs,
return;
}

// Extract packed barcode for single-end reads
if (conf->single_end && conf->has_barcode) {
packed_barcode = get_packed_barcode(r1, conf);
}

is_single = 1;
} else {
// Add MC and MQ tags if desired
Expand Down

0 comments on commit 5187127

Please sign in to comment.