Skip to content

Commit 298fb3d

Browse files
committed
finish cell2location
1 parent 83ed3ef commit 298fb3d

File tree

1 file changed

+22
-11
lines changed

1 file changed

+22
-11
lines changed

cell2location_lymph_node_spatial_tutorial.ipynb

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,16 @@
165165
"cell_type": "markdown",
166166
"metadata": {},
167167
"source": [
168-
"<div class=\"alert alert-block alert-warning\">\n",
169-
"<b>Note!</b>\n",
168+
"<div class=\"alert alert-info\">\n",
169+
"Note\n",
170170
"Here we rename genes to ENSEMBL ID for correct matching between single cell and spatial data.\n",
171-
"</div>\n",
172-
"\n",
171+
"</div>"
172+
]
173+
},
174+
{
175+
"cell_type": "markdown",
176+
"metadata": {},
177+
"source": [
173178
"You can still plot gene expression by name using standard scanpy functions as follows: \n",
174179
"```python\n",
175180
"sc.pl.spatial(color='PTPRC', gene_symbols='SYMBOL', ...)\n",
@@ -190,8 +195,9 @@
190195
"cell_type": "markdown",
191196
"metadata": {},
192197
"source": [
193-
"<div class=\"alert alert-block alert-danger\">\n",
194-
"<b>Note!</b>\n",
198+
"<div class=\"alert alert-info\">\n",
199+
"Note\n",
200+
" \n",
195201
"Mitochondia-encoded genes (gene names start with prefix mt- or MT-) are irrelevant for spatial mapping because their expression represents technical artifacts in the single cell and nucleus data rather than biological abundance of mitochondria. Yet these genes compose 15-40% of mRNA in each location. Hence, to avoid mapping artifacts we strongly recommend removing mitochondrial genes.\n",
196202
"</div>"
197203
]
@@ -255,7 +261,6 @@
255261
"Warning\n",
256262
" \n",
257263
"Here we rename genes to ENSEMBL ID for correct matching between single cell and spatial data.\n",
258-
" \n",
259264
"</div>"
260265
]
261266
},
@@ -276,11 +281,17 @@
276281
"cell_type": "markdown",
277282
"metadata": {},
278283
"source": [
279-
"<div class=\"alert alert-block alert-warning\">\n",
280-
"<b>Note!</b>\n",
284+
"<div class=\"alert alert-info\">\n",
285+
"Note\n",
286+
" \n",
281287
"Before we estimate the reference cell type signature we recommend to perform very permissive genes selection. We prefer this to standard highly-variable-gene selection because our procedure keeps markers of rare genes while removing most of the uninformative genes.\n",
282-
"</div>\n",
283-
"\n",
288+
"</div>"
289+
]
290+
},
291+
{
292+
"cell_type": "markdown",
293+
"metadata": {},
294+
"source": [
284295
"In this 2D histogram, orange rectangle highlights genes excluded based on the combination of number of cells expressing that gene (Y-axis) and average RNA count for cells where the gene was detected (X-axis).\n",
285296
"\n",
286297
"In this case, the downloaded dataset was already filtered using this method, hence no density under the orange rectangle (to be changed in the future version of the tutorial)."

0 commit comments

Comments
 (0)