}

Tsinfer is a Python package to infer a tree sequence from large quantities of phased DNA sequence data, for example in a VCF file (see the tutorial for how to convert data from a VCF into a suitable input format).

sample_data = tsinfer.load(
    "phased_sequence_data.samples"
)
ts = tsinfer.infer(sample_data)