szhan / tsimpute

Genome-wide genotype imputation using tree sequences.
MIT License
0 stars 0 forks source link

Add mutations after adding new individuals to a tree sequence #144

Open szhan opened 1 year ago

szhan commented 1 year ago

The function add_individuals_to_tree_sequence only adds new edges to an existing tree sequence but not new mutations. A separate function needs to be implemented to add new mutations that occur above newly added sample nodes of the individuals.

szhan commented 1 year ago

It should be as simple as getting the inherited state of the parent node and checking whether it is identical to the observed state of the sample at each site.