@@ -7397,7 +7397,9 @@ def extend_haplotypes(self, max_iter=10):
73977397 `n` to `c` are extended, and the span of the edge from `p` to `c` is
73987398 reduced. Thus, the ancestral haplotype represented by `n` is extended
73997399 to a longer span of the genome. However, any edges whose child node is
7400- a sample are not modified.
7400+ a sample are not modified. See
7401+ `Fritze et al. (2025) <https://doi.org/10.1093/genetics/iyaf198>`_
7402+ for more details.
74017403
74027404 Since some edges may be removed entirely, this process usually reduces
74037405 the number of edges in the tree sequence.
@@ -7420,15 +7422,15 @@ def extend_haplotypes(self, max_iter=10):
74207422 known mutation times. See :meth:`.impute_unknown_mutations_time` if
74217423 mutation times are not known.
74227424
7423- The method will not affect the marginal trees (so, if the original tree
7424- sequence was simplified, then following up with `simplify` will recover
7425- the original tree sequence, possibly with edges in a different order).
7426- It will also not affect the genotype matrix, or any of the tables other
7427- than the edge table or the node column in the mutation table.
7425+ .. note::
7426+ The method will not affect the marginal trees (so, if the original tree
7427+ sequence was simplified, then following up with `simplify` will recover
7428+ the original tree sequence, possibly with edges in a different order).
7429+ It will also not affect the genotype matrix, or any of the tables other
7430+ than the edge table or the node column in the mutation table.
74287431
7429- :param int max_iters : The maximum number of iterations over the tree
7432+ :param int max_iter : The maximum number of iterations over the tree
74307433 sequence. Defaults to 10.
7431-
74327434 :return: A new tree sequence with unary nodes extended.
74337435 :rtype: tskit.TreeSequence
74347436 """
0 commit comments