Skip to content

Commit

Permalink
Quick bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joshfactorial committed May 29, 2024
1 parent 866fbd7 commit d650d2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neat/read_simulator/utils/output_file_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def write_bam_record(self, read: Read, contig_id: int, bam_handle: bgzf.BgzfWrit
template_length = read.get_tlen()
alt_sequence = read.read_sequence

cigar, n_corr, crap = read.make_cigar()
cigar = read.make_cigar()

cig_letters = re.split(r"\d+", cigar)[1:]
cig_numbers = [int(n) for n in re.findall(r"\d+", cigar)]
Expand Down Expand Up @@ -408,4 +408,4 @@ def write_bam_record(self, read: Read, contig_id: int, bam_handle: bgzf.BgzfWrit
encoded_cig +
encoded_seq +
encoded_qual.encode('utf-8')))
return n_corr, crap

0 comments on commit d650d2b

Please sign in to comment.