Skip to content

Commit

Permalink
Fix for multi-contig references in map
Browse files Browse the repository at this point in the history
Short contigs may be skipped entirely due to no matches, so need to keep advancing writer
  • Loading branch information
johnlees committed Oct 12, 2023
1 parent dd2c90a commit e285a89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ska_ref/aln_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ impl<'a> AlnWriter<'a> {
/// Call in a loop over mapped positions, usually excluding '-' base which
/// haven't actually been mapped
pub fn write_split_kmer(&mut self, mapped_pos: usize, mapped_chrom: usize, base: u8) {
if mapped_chrom > self.curr_chrom {
while mapped_chrom > self.curr_chrom {
self.fill_contig();
}
// Ambiguous bases may clash with the flanks, which are copied from
Expand Down

0 comments on commit e285a89

Please sign in to comment.