Skip to content

Commit

Permalink
reordered cells to enable correct plotting (theislab#204)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Gregory Jones <[email protected]>
  • Loading branch information
mattjones315 and Matthew Gregory Jones authored Jun 1, 2023
1 parent 2444e58 commit 5264c49
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions jupyter-book/trajectories/lineage_tracing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1717,6 +1717,10 @@
}
],
"source": [
"tree.cell_meta = pd.DataFrame(\n",
" kptracer_adata.obs.loc[tree.leaves, \"Cluster-Name\"].astype(str)\n",
")\n",
"\n",
"cas.pl.plot_matplotlib(tree, meta_data=[\"Cluster-Name\"])"
]
},
Expand Down Expand Up @@ -1749,10 +1753,6 @@
}
],
"source": [
"tree.cell_meta = pd.DataFrame(\n",
" kptracer_adata.obs.loc[tree.leaves, \"Cluster-Name\"].astype(str)\n",
")\n",
"\n",
"parsimony = cas.tl.score_small_parsimony(tree, meta_item=\"Cluster-Name\")\n",
"\n",
"plasticity = parsimony / len(tree.nodes)\n",
Expand Down Expand Up @@ -2002,7 +2002,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.10.5 64-bit",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -2016,7 +2016,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.8"
"version": "3.9.12"
},
"vscode": {
"interpreter": {
Expand Down

0 comments on commit 5264c49

Please sign in to comment.