From d4d7a63cb61f51408d9391ea24f2c525409b5e1f Mon Sep 17 00:00:00 2001 From: KriBaLin <136562563+KriBaLin@users.noreply.github.com> Date: Tue, 15 Aug 2023 11:11:22 +0200 Subject: [PATCH] Changed regex for calculation of percent hemoglobulin genes --- jupyter-book/preprocessing_visualization/quality_control.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyter-book/preprocessing_visualization/quality_control.ipynb b/jupyter-book/preprocessing_visualization/quality_control.ipynb index 3681ded0..1f970a49 100644 --- a/jupyter-book/preprocessing_visualization/quality_control.ipynb +++ b/jupyter-book/preprocessing_visualization/quality_control.ipynb @@ -205,7 +205,7 @@ "# ribosomal genes\n", "adata.var[\"ribo\"] = adata.var_names.str.startswith((\"RPS\", \"RPL\"))\n", "# hemoglobin genes.\n", - "adata.var[\"hb\"] = adata.var_names.str.contains((\"^HB[^(P)]\"))" + "adata.var[\"hb\"] = adata.var_names.str.contains((\"^HB(?!EGF|S1L|P1).+\"))" ] }, {