szhan / tsimpute

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

Improve function to add an individual to an existing tree sequence #98

Closed szhan closed 1 year ago

szhan commented 1 year ago

The current add_individual_to_tree_sequence function adds one sample path at a time and associates each with a separate individual. So, two sample paths from a diploid individual are treated as separate sample paths from two separate individuals. Obviously, this is wrong, but it did the job when I needed something quick. It needs to be implemented and tested properly.

See #96 and #97

szhan commented 1 year ago

It is much faster to use append_columns to add a bunch of new edges at once.

szhan commented 1 year ago

There are more TODOs in the comments, but good for now.