Skip to content

Commit

Permalink
allow condition that's not in sample index
Browse files Browse the repository at this point in the history
  • Loading branch information
jykr committed Apr 9, 2024
1 parent 6a1cd04 commit 2e250b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bean/notebooks/sample_quality_report.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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]"
]
},
{
Expand Down

0 comments on commit 2e250b6

Please sign in to comment.