We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9caa020 + c5cea70 commit e8547ccCopy full SHA for e8547cc
1 file changed
tables_and_editing.md
@@ -603,12 +603,13 @@ edge_table.set_columns(
603
edge_table
604
```
605
606
-And finally we can add a site and a mutation: here we'll use 0/1 mutations rather than
+Finally we can add a site and a mutation: here we'll use 0/1 mutations rather than
607
ATGC.
608
609
```{code-cell} ipython3
610
site_id = tables.sites.add_row(position=500.0, ancestral_state='0')
611
tables.mutations.add_row(site=site_id, node=2, derived_state='1')
612
+tables.sort() # make sure the edges & sites are in the right order
613
ts = tables.tree_sequence()
614
print("A hand-built tree sequence!")
615
ts.draw_svg(y_axis=True)
0 commit comments