You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#3317 Added missingness support for alignments via a pure-Python implementation. Implement a C API for this and use it. Something like tsk_tree_sequence_alignments(tsk_tree_sequence_t *self, const char *ref_seq, tsk_size_t ref_seq_length, tsk_id_t *nodes, double* left, double *right, char **alignments)? Although we don't have any existing C API that returns what could be a huge chunk of memory like this. We could consider an iterator like the variants API, decoding a sensible amount of nodes at a time for efficiency.
Iterator seems unnecessary to me. User can easily spilt over the input sets of nodes, right?
One thing we should do that's different to existing APIs is not require that the nodes are unique. Turns out there's lots of good reasons for duplicate nodes and its a faff working around it.
Left and right are just single input numbers, so don't need to be pointers?
Activity
jeromekelleher commentedon Nov 11, 2025
Iterator seems unnecessary to me. User can easily spilt over the input sets of nodes, right?
One thing we should do that's different to existing APIs is not require that the nodes are unique. Turns out there's lots of good reasons for duplicate nodes and its a faff working around it.
Left and right are just single input numbers, so don't need to be pointers?