Skip to content

Commit d650d2b

Browse files
committed
Quick bug fix
1 parent 866fbd7 commit d650d2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

neat/read_simulator/utils/output_file_writer.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def write_bam_record(self, read: Read, contig_id: int, bam_handle: bgzf.BgzfWrit
342342
template_length = read.get_tlen()
343343
alt_sequence = read.read_sequence
344344

345-
cigar, n_corr, crap = read.make_cigar()
345+
cigar = read.make_cigar()
346346

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

0 commit comments

Comments
 (0)