multi_locus_genealogy Class Reference

class multi_locus_genealogy

Genealogy for multiple loci

__init__()

Default constructor

__str__() <==> str(x)
__repr__() <==> repr(x)
track_locus(new_locus)

Start tracking a new locus.

Parameters:
  • new_locus: locus to be tracked

Note

the locus gets appended to the ‘loci’ array.

reset()

Reset (empty) the genealogy.

reset_but_loci()

Reset (empty) the genealogy but keep the loci indices.

get_tree(locus)

Get the genealogy tree for a certain locus.

Parameters:
  • locus: site whose tree is being returned

Note

if you want to know what loci are being tracked, look into the ‘loci’ attribute.

loci

The loci that are being tracked

Previous topic

index_value_pair Class Reference

Next topic

polymorphism Class Reference

This Page