Skip to content

Commit

Permalink
update to experimental PPI evaluation on gold standard
Browse files Browse the repository at this point in the history
  • Loading branch information
jrurogers committed Apr 26, 2024
1 parent 6c1b9da commit 580ca6b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"gold standard has 33042 pairs\n",
"gold standard has 32504 pairs\n",
"filtered gold standard has 31888 pairs\n",
"\n"
]
Expand Down Expand Up @@ -184,32 +184,32 @@
"output_type": "stream",
"text": [
"HT-VIDAL\n",
" Reported interactions: 13944\n",
" Reported interactions: 13375\n",
" Number of proteins: 4204\n",
" Number of true positives based on gold: 458\n",
" Number of gold possible to detect: 3465.0\n",
" Recall of gold: 0.13217893217893217 \n",
" Number of true positives based on gold: 420\n",
" Number of gold possible to detect: 3397.0\n",
" Recall of gold: 0.12363850456284957 \n",
"\n",
"HT-Mann\n",
" Reported interactions: 27963\n",
" Number of proteins: 5351\n",
" Number of true positives based on gold: 1060\n",
" Number of gold possible to detect: 11222.0\n",
" Recall of gold: 0.09445731598645518 \n",
" Number of gold possible to detect: 11010.0\n",
" Recall of gold: 0.09627611262488647 \n",
"\n",
"HT-Mann HC\n",
" Reported interactions: 14240\n",
" Reported interactions: 12058\n",
" Number of proteins: 4281\n",
" Number of true positives based on gold: 1293\n",
" Number of gold possible to detect: 11222.0\n",
" Recall of gold: 0.11522010336838354 \n",
" Number of true positives based on gold: 951\n",
" Number of gold possible to detect: 11010.0\n",
" Recall of gold: 0.08637602179836512 \n",
"\n",
"HT-GYGI\n",
" Reported interactions: 56416\n",
" Number of proteins: 10883\n",
" Number of true positives based on gold: 1414\n",
" Number of gold possible to detect: 18233.0\n",
" Recall of gold: 0.07755169198705644 \n",
" Number of gold possible to detect: 17870.0\n",
" Recall of gold: 0.0791270285394516 \n",
"\n"
]
}
Expand Down Expand Up @@ -344,7 +344,7 @@
"outputs": [
{
"data": {
"image/png": "iVBOR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WrMGiRYug0+l6vI+e9Jmk1t0+U29TZZh4EZmISvMxXLGVY0BIIu6O+J5sgtSKMfFGH8lUeqNFipnikyABFCbCkbz+zIiiUZgINxQmwg2FiXBDYSLcUJgINxQmwg2FiXDzf1Tkmoc5LLxpAAAAAElFTkSuQmCC\n",
"text/plain": [
"<Figure size 147.6x266.03 with 1 Axes>"
]
Expand Down
9 changes: 7 additions & 2 deletions publication_analysis/results/scripts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,17 @@ def load_model_threshold_fpr(directory):
mdict[k] = np.loadtxt(os.path.join(directory, f), skiprows=1, delimiter=',')
return mdict

def load_prots(fname):
def load_prots(fname, deduplicate=True, strip_isoform=True):
"Load protein pairs from csv file."
prots2d = np.loadtxt(fname, delimiter=',', usecols=(0,1), dtype=str)
prots2d = strip_isoform_uniprotid(prots2d)
if strip_isoform: prots2d = strip_isoform_uniprotid(prots2d)
prots1d = np.array([','.join(sorted(prot)) for prot in prots2d])

if deduplicate:
_, m = np.unique(prots1d, return_index=True)
prots1d = prots1d[m]
prots2d = prots2d[m]

return prots1d, prots2d

def strip_isoform_uniprotid(a):
Expand Down

0 comments on commit 580ca6b

Please sign in to comment.