mirror of
https://github.com/microsoft/foldingdiff.git
synced 2026-06-04 13:30:33 +08:00
Update plot
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 19,
|
||||
"execution_count": 25,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
@@ -11,7 +11,7 @@
|
||||
"PosixPath('/home/wukevin/projects/protdiff/plots')"
|
||||
]
|
||||
},
|
||||
"execution_count": 19,
|
||||
"execution_count": 25,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
@@ -22,6 +22,7 @@
|
||||
"import json\n",
|
||||
"\n",
|
||||
"import numpy as np\n",
|
||||
"from scipy import stats\n",
|
||||
"from matplotlib import pyplot as plt\n",
|
||||
"import seaborn as sns\n",
|
||||
"\n",
|
||||
@@ -45,6 +46,34 @@
|
||||
" generated_sctm = json.load(source)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 31,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"MannwhitneyuResult(statistic=417832.5, pvalue=4.374068292433547e-60)"
|
||||
]
|
||||
},
|
||||
"execution_count": 31,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"def to_arr(x):\n",
|
||||
" x = np.array(list(x))\n",
|
||||
" return x[~np.isnan(x)]\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"stats.mannwhitneyu(\n",
|
||||
" to_arr(generated_sctm.values()),\n",
|
||||
" to_arr(baseline_sctm.values()),\n",
|
||||
")"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 24,
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user