Quickstart¶
Define a clonal tree¶
from fluffyclone import ClonalTree
Parent sequence encoding¶
# Option 1: pass the parent sequence directly
tree = ClonalTree(0, 0, 0, 2, 5)
# Option 2: define parent sequence first
p = (0, 0, 0, 2, 5)
tree = ClonalTree(p)
# Option 3: add root explicitly (node 0 with no parent)
p = (None, 0, 0, 0, 2, 5)
tree = ClonalTree(p)