Skip to content

Commit f9b02f7

Browse files
Revert cell 14 to 1x2 and add total_counts=7500 cutoff line to both panels
Agent-Logs-Url: https://github.com/compbiocore/singlecell_python_workshop/sessions/6148e5ea-d7fd-48e9-8dd4-f9ded9ac6250 Co-authored-by: EricSalomaki <6400723+EricSalomaki@users.noreply.github.com>
1 parent 1f1c821 commit f9b02f7

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

notebooks/scRNAseq_in_Python.ipynb

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -384,22 +384,18 @@
384384
"outputs": [],
385385
"source": [
386386
"# Scatter plots — visually identify outlier cells\n",
387-
"fig, axes = plt.subplots(1, 3, figsize=(18, 4))\n",
387+
"fig, axes = plt.subplots(1, 2, figsize=(12, 4))\n",
388388
"\n",
389389
"sc.pl.scatter(adata, x='total_counts', y='pct_counts_mt', ax=axes[0], show=False)\n",
390390
"axes[0].axhline(5, color='red', linestyle='--', label='5% MT threshold')\n",
391+
"axes[0].axvline(7500, color='green', linestyle='--', label='7500 total_counts cutoff')\n",
391392
"axes[0].legend()\n",
392393
"\n",
393394
"sc.pl.scatter(adata, x='total_counts', y='n_genes_by_counts', ax=axes[1], show=False)\n",
394395
"axes[1].axhline(2500, color='red', linestyle='--', label='2500 gene threshold')\n",
396+
"axes[1].axvline(7500, color='green', linestyle='--', label='7500 total_counts cutoff')\n",
395397
"axes[1].legend()\n",
396398
"\n",
397-
"# Standard total_counts cutoff — flag cells with very low library size\n",
398-
"sc.pl.scatter(adata, x='total_counts', y='n_genes_by_counts', ax=axes[2], show=False)\n",
399-
"axes[2].axvline(500, color='green', linestyle='--', label='500 UMI min (total_counts)')\n",
400-
"axes[2].set_title('total_counts — standard cutoff')\n",
401-
"axes[2].legend()\n",
402-
"\n",
403399
"plt.tight_layout()\n",
404400
"plt.show()\n"
405401
]

0 commit comments

Comments
 (0)