From 2e250b6b0ece14d44db46f0d6d71d373f1428a77 Mon Sep 17 00:00:00 2001 From: jykr Date: Tue, 9 Apr 2024 18:27:21 -0400 Subject: [PATCH] allow condition that's not in sample index --- bean/notebooks/sample_quality_report.ipynb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bean/notebooks/sample_quality_report.ipynb b/bean/notebooks/sample_quality_report.ipynb index 23f49ec..2f96598 100755 --- a/bean/notebooks/sample_quality_report.ipynb +++ b/bean/notebooks/sample_quality_report.ipynb @@ -94,7 +94,8 @@ "source": [ "if not isinstance(replicate_label, str):\n", " bdata.uns[\"sample_covariates\"] = replicate_label[1:]\n", - "bdata.samples[replicate_label] = bdata.samples[replicate_label].astype(str)" + "bdata.samples[\"replicate\"] = bdata.samples[replicate_label] = bdata.samples[replicate_label].astype(str)\n", + "bdata.samples[\"condition\"] = bdata.samples[condition_label]" ] }, {