Skip to content

Commit

Permalink
Remove obsolete function
Browse files Browse the repository at this point in the history
  • Loading branch information
nickjcroucher committed Apr 23, 2024
1 parent b942613 commit 5478d65
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
3 changes: 0 additions & 3 deletions src/Newickform.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,6 @@ newick_node* build_newick_tree(char * filename, FILE *vcf_file_pointer,int * snp
int num_threads = 1; // Adjust as needed
pthread_t threads[num_threads];
struct ThreadData threadData[num_threads];

// First carry gaps up tree
carry_unambiguous_gaps_up_tree(root);

// iterate through depths and identify batches of analyses to be run
for (int depth = 0; depth <= max_depth; ++depth)
Expand Down
24 changes: 0 additions & 24 deletions src/branch_sequences.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,30 +279,6 @@ int calculate_number_of_bases_in_recombations_excluding_gaps(int ** block_coordi
return total_bases;
}

void carry_unambiguous_gaps_up_tree(newick_node *root)
{
if(root->childNum > 0)
{
newick_child *child;
int parent_sequence_index = find_sequence_index_from_sample_name(root->taxon);

child = root->child;
int child_sequence_indices[root->childNum];
int child_counter = 0;
while (child != NULL)
{
child_sequence_indices[child_counter] = find_sequence_index_from_sample_name(child->node->taxon);
carry_unambiguous_gaps_up_tree(child->node);
child = child->next;
child_counter++;
}

// compare the parent sequence to the each child sequence and update the gaps
fill_in_unambiguous_gaps_in_parent_from_children(parent_sequence_index, child_sequence_indices,child_counter);
//fill_in_unambiguous_bases_in_parent_from_children_where_parent_has_a_gap(parent_sequence_index, child_sequence_indices,child_counter);
}
}

void generate_branch_sequences(newick_node *node, FILE *vcf_file_pointer,int * snp_locations, int number_of_snps, char** column_names, int number_of_columns, int length_of_original_genome, FILE * block_file_pointer, FILE * gff_file_pointer,int min_snps,FILE * branch_snps_file_pointer, int window_min, int window_max, float uncorrected_p_value, float trimming_ratio, int extensive_search_flag, int thread_index)
{
newick_child *child;
Expand Down

0 comments on commit 5478d65

Please sign in to comment.