R/snv_relevant_functions.R
identify_recurrent_mutations.RdIdentifies mutations that occur multiple times at the same genomic location across different cells in a lineage.
identify_recurrent_mutations(cell_mutations)A data frame containing only the recurrent mutations (mutations that appear more than once at the same genomic location)
This function identifies recurrent mutations by:
Creating a unique key for each mutation based on its haplotype, chromosome, and position
Identifying duplicate keys, which indicate the same mutation occurring multiple times
Extracting and returning only the recurrent mutations