From 110543c9f35027786957f81371042112e9313484 Mon Sep 17 00:00:00 2001 From: Vitalii Kleshchevnikov Date: Wed, 18 May 2022 01:10:19 +0100 Subject: [PATCH] update heading anchors in tutorial --- docs/notebooks/cell2location_tutorial.ipynb | 44 ++++++++++----------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/docs/notebooks/cell2location_tutorial.ipynb b/docs/notebooks/cell2location_tutorial.ipynb index ec8f4f14..7ced9533 100755 --- a/docs/notebooks/cell2location_tutorial.ipynb +++ b/docs/notebooks/cell2location_tutorial.ipynb @@ -39,24 +39,24 @@ "\n", "\n", "## Contents\n", - "* [Loading packages](#Loading_packages)\n", - "* [Loading Visium and single cell data data](#Loading_Visium)\n", - "1. [Estimating cell type signatures (NB regression)](#Estimating_signatures)\n", - "2. [Cell2location: spatial mapping](#cell2location)\n", - "3. [Visualising cell abundance in spatial coordinates](#Visualising)\n", - "4. [Downstream analysis](#downstream)\n", - "* [Leiden clustering of cell abundance](#region_clustering)\n", - "* [Identifying cellular compartments / tissue zones using matrix factorisation (NMF)](#NMF)\n", - "5. [Advanced use](#advanced)\n", - "* [Estimate cell-type specific expression of every gene in the spatial data](#per_cell_type_expression)\n", - "* [Working with the posterior distribution and computing arbitrary quantiles](#posterior_summary)" + "* [Loading packages](#Loading-packages)\n", + "* [Loading Visium and single cell data data](#Loading-Visium-and-scRNA-seq-reference-data)\n", + "1. [Estimating cell type signatures (NB regression)](#Estimation-of-reference-cell-type-signatures-(NB-regression))\n", + "2. [Cell2location: spatial mapping](#Cell2location:-spatial-mapping)\n", + "3. [Visualising cell abundance in spatial coordinates](#Visualising-cell-abundance-in-spatial-coordinates)\n", + "4. [Downstream analysis](#Downstream-analysis)\n", + "* [Leiden clustering of cell abundance](#Identifying-discrete-tissue-regions-by-Leiden-clustering)\n", + "* [Identifying cellular compartments / tissue zones using matrix factorisation (NMF)](#Identifying-cellular-compartments-/-tissue-zones-using-matrix-factorisation-(NMF))\n", + "* [Estimate cell-type specific expression of every gene in the spatial data (needed for NCEM)](#Estimate-cell-type-specific-expression-of-every-gene-in-the-spatial-data-(needed-for-NCEM))\n", + "5. [Advanced use](#Advanced-use)\n", + "* [Working with the posterior distribution and computing arbitrary quantiles](#Working-with-the-posterior-distribution-and-computing-arbitrary-quantiles)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ - "## Loading packages " + "## Loading packages " ] }, { @@ -126,7 +126,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "## Loading Visium and scRNA-seq reference data " + "## Loading Visium and scRNA-seq reference data " ] }, { @@ -300,7 +300,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "## Estimation of reference cell type signatures (NB regression) \n", + "## Estimation of reference cell type signatures (NB regression) \n", "\n", "The signatures are estimated from scRNA-seq data, accounting for batch effect, using a Negative binomial regression model.\n", "\n", @@ -990,7 +990,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "## Cell2location: spatial mapping \n", + "## Cell2location: spatial mapping \n", "\n", "
\n", "Find shared genes and prepare anndata.\n", @@ -1418,7 +1418,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "## Visualising cell abundance in spatial coordinates \n", + "## Visualising cell abundance in spatial coordinates \n", "\n", "
\n", "Note\n", @@ -1517,9 +1517,9 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "## Downstream analysis \n", + "## Downstream analysis \n", "\n", - "### Identifying discrete tissue regions by Leiden clustering\n", + "### Identifying discrete tissue regions by Leiden clustering\n", "\n", "We identify tissue regions that differ in their cell composition by clustering locations using cell abundance estimated by cell2location. \n", "\n", @@ -1623,7 +1623,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "### Identifying cellular compartments / tissue zones using matrix factorisation (NMF) \n", + "### Identifying cellular compartments / tissue zones using matrix factorisation (NMF) \n", "\n", "Here, we use the cell2location mapping results to identify the spatial co-occurrence of cell types in order to better understand the tissue organisation and predict cellular interactions. We performed non-negative matrix factorization (NMF) of the cell type abundance estimates from cell2location ([paper section 4, Fig 4D](https://www.nature.com/articles/s41587-021-01139-4)). Similar to the established benefits of applying NMF to conventional scRNA-seq, the additive NMF decomposition yielded a grouping of spatial cell type abundance profiles into components that capture co-localised cell types ([Supplemenary Methods section 4.2, p. 60](https://www.nature.com/articles/s41587-021-01139-4#Sec50)). This NMF-based decomposition naturally accounts for the fact that multiple cell types and microenvironments can co-exist at the same Visium locations (see [paper Fig S20, p. 34](https://www.nature.com/articles/s41587-021-01139-4#Sec50)), while sharing information across tissue areas (e.g. individual germinal centres). \n", "\n", @@ -1762,7 +1762,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "### Estimate cell-type specific expression of every gene in the spatial data (needed for NCEM) \n", + "### Estimate cell-type specific expression of every gene in the spatial data (needed for NCEM) \n", "\n", "The cell-type specific expression of every gene at every spatial location in the spatial data enables learning cell communication with NCEM model using Visium data (https://github.com/theislab/ncem). \n", "\n", @@ -1865,7 +1865,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "### Working with the posterior distribution and computing arbitrary quantiles \n", + "### Working with the posterior distribution and computing arbitrary quantiles \n", "\n", "In addition to the posterior distribution mean, std and quantiles presented earlier in the notebook you can fetch an arbitrary number of samples from the posterior distribution. To limit memory use, it could be beneficial to select particular varibles in the model. \n", "\n", @@ -1943,7 +1943,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "#### Modules and their versions used for this analysis\n", + "### Modules and their versions used for this analysis\n", "\n", "\n", "Useful for debugging and reporting issues."