Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Commit

Permalink
Fix bug #15
Browse files Browse the repository at this point in the history
RSS need to be calculated for each clustering
  • Loading branch information
dweemx committed Feb 26, 2020
1 parent e3b6dbf commit 266c17b
Showing 1 changed file with 4 additions and 26 deletions.
30 changes: 4 additions & 26 deletions bin/reports/scenic_report.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -341,11 +341,6 @@
"### Show all dimensionality reduction plots with all clusterings clustering side-by-side"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": []
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -391,26 +386,6 @@
"import seaborn as sns"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Calculate RSS"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"for clustering in meta[\"clusterings\"]:\n",
" printmd(f'#### {clustering[\"name\"]}')\n",
" clusters = pd.Series(ca_clusterings[str(clustering[\"id\"])], index=ca_cell_id)\n",
" rss = regulon_specificity_scores( auc_mtx, clusters )\n",
" rss"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand All @@ -432,7 +407,10 @@
" fig_nrows = ceil(len(cats)/fig_ncols)\n",
" fig_asp = 3.75 # final figure aspect ratio\n",
"\n",
"\n",
" ## ############\n",
" # Calculate RSS\n",
" rss = regulon_specificity_scores( auc_mtx, clusters )\n",
" \n",
" fig = plt.figure(figsize=(15,15/fig_asp*fig_nrows) )\n",
" for c,num in zip(cats, range(1,len(cats)+1)):\n",
" x=rss.T[c]\n",
Expand Down

0 comments on commit 266c17b

Please sign in to comment.