Skip to content

Commit f40bf1a

Browse files
committed
Fix incorrect chromosome name being reported in summary statistics
1 parent 64f81f4 commit f40bf1a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

newmap/unique_counts.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ def write_unique_counts(fasta_filename: Path,
9393
open(UNIQUE_COUNT_FILENAME_FORMAT.format(
9494
sequence_segment.id.decode(),
9595
unique_count_suffix), "wb").close()
96-
# Update the current working sequence id
97-
current_sequence_id = sequence_segment.id
9896

97+
# Print out the summary statistics from the previously
98+
# processed chromosome
9999
print_summary_statisitcs(verbose,
100100
current_sequence_id,
101101
total_unique_lengths_count,
@@ -104,6 +104,9 @@ def write_unique_counts(fasta_filename: Path,
104104
max_length_found,
105105
min_length_found)
106106

107+
# Update the current working sequence id
108+
current_sequence_id = sequence_segment.id
109+
107110
verbose_print(verbose,
108111
"Writing minimum unique lengths for sequence "
109112
"ID: {}".format(sequence_segment.id.decode()))

0 commit comments

Comments
 (0)