From 899a885a67168e3a7eb285e5e76aabcb8f35b96b Mon Sep 17 00:00:00 2001 From: Nick Croucher Date: Thu, 18 Apr 2024 13:17:49 +0100 Subject: [PATCH] Update downstream recombinations function --- src/branch_sequences.c | 34 ++++++++++++++-------------------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/src/branch_sequences.c b/src/branch_sequences.c index fdc393be..ca2fdf58 100644 --- a/src/branch_sequences.c +++ b/src/branch_sequences.c @@ -77,33 +77,27 @@ int copy_and_concat_2d_integer_arrays(int ** array_1, int array_1_size, int ** a // Loop over all recombination blocks and return a list of all snp indices that fall within those blocks. int get_list_of_snp_indices_which_fall_in_downstream_recombinations(int ** current_block_coordinates,int num_blocks, int * snp_locations,int number_of_snps, int * snps_in_recombinations) { - int num_snps_in_recombinations =0; - int i = 0; + int num_snps_in_recombinations =0; + int i = 0; // loop over each block - for(i = 0; i