Skip to content

Commit

Permalink
Fix fasta read lengths error
Browse files Browse the repository at this point in the history
  • Loading branch information
jonperdomo committed Sep 6, 2024
1 parent b53ad18 commit 92c15eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/fasta_module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ static int qc1fasta(const char *input_file, Output_FA &py_output_fa, FILE *read_
}
long_read_info.total_num_reads += 1;

// Store the read length
long_read_info.read_lengths.push_back(base_count);

// Get the sequence length distribution
if (base_count < long_read_info.read_length_count.size()) {
long_read_info.read_length_count[(int)base_count] += 1;
Expand Down

0 comments on commit 92c15eb

Please sign in to comment.