Skip to content

Commit

Permalink
Fix calculation of recombination lengths
Browse files Browse the repository at this point in the history
  • Loading branch information
nickjcroucher committed Jun 17, 2024
1 parent 13f1e64 commit 5777717
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/branch_sequences.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ void fill_in_recombinations_with_gaps(newick_node ** nodeArray, int node_index,
node->number_of_blocks,
node_sequence,
snp_locations,
node->num_recombinations + node->number_of_snps)
number_of_snps)
);

// Set number of total bases in recombination by iterating through
Expand All @@ -187,7 +187,7 @@ void fill_in_recombinations_with_gaps(newick_node ** nodeArray, int node_index,
(num_blocks[parent_node_index] + node->number_of_blocks),
node_sequence,
snp_locations,
current_total_snps[parent_node_index] + node->num_recombinations + node->number_of_snps)
number_of_snps)
);
free(node_sequence);

Expand Down

0 comments on commit 5777717

Please sign in to comment.