Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions content/tskit.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"id": "0969a7e2-ac66-4d98-bf16-af2a5389bd06",
"metadata": {},
"source": [
"## Loading an ARG in tree sequence format"
"## Loading an ARG in \"succinct tree sequence\" format"
]
},
{
Expand All @@ -40,7 +40,7 @@
"metadata": {},
"outputs": [],
"source": [
"ts = tskit.load(\"data/demo.trees\")"
"ts = tskit.load(\"data/demo.trees\") # By convention we use `ts` or `arg` for the object name"
]
},
{
Expand Down Expand Up @@ -68,7 +68,9 @@
"source": [
"<div class=\"alert alert-block alert-info\"><b>Note:</b> the <a href=\"https://tskit.dev/tskit/docs/stable/provenance.html\">provenances</a> listed above (in the last part of the output) show how this tree sequence was originally generated. In this case, close inspection shows it was initially simulated by the command <a href=\"https://tskit.dev/msprime/docs/stable/api.html#msprime.sim_ancestry\"><code>sim_ancestry()</code></a>, provided by <a href=\"https://tskit.dev/msprime/docs/stable/intro.html\"><i>msprime</i></a> version 1.4.0, then simplified, with mutations finally added using the <i>msprime</i> <a href=\"https://tskit.dev/msprime/docs/stable/api.html#msprime.sim_mutations\"><code>sim_mutations()</code></a> function.</div>\n",
"\n",
"Each [node](https://tskit.dev/tskit/docs/stable/data-model.html#node-table) in the tree sequence represents a (haploid) genome. *Sample* nodes are the (usually current-day) genomes whose DNA sequences are known. In this tree sequence there are 80 sample nodes, belonging to 40 (diploid) individuals.\n",
"Each [node](https://tskit.dev/tskit/docs/stable/data-model.html#node-table) in the tree sequence represents a (haploid) genome. *Sample* nodes are the (usually current-day) genomes whose DNA sequences are known. Here there are 80 sample nodes, belonging to 40 (diploid) individuals.\n",
"\n",
"As its name suggests, a tree sequence can be interpreted as a sequence of evolutionary (\"gene\") trees along a genome. This is done by linking the sample nodes to ancestral nodes via *edges*. The table above reveals that there are 6979 edges in this tree sequence, defining 1811 trees. Later in this workbook you'll see how to plot one of the local trees.\n",
"\n",
"## Mutations and genetic variation\n",
"\n",
Expand Down
Loading