Skip to content

Commit

Permalink
correct bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
sky1ove committed Sep 27, 2024
1 parent e2dc27e commit f4de050
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 17 deletions.
1 change: 1 addition & 0 deletions katlas_raw/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "0.0.1"
8 changes: 8 additions & 0 deletions katlas_raw/_modidx.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Autogenerated by nbdev

d = { 'settings': { 'branch': 'main',
'doc_baseurl': '/katlas_raw',
'doc_host': 'https://sky1ove.github.io',
'git_url': 'https://github.com/sky1ove/katlas_raw',
'lib_path': 'katlas_raw'},
'syms': {}}
2 changes: 1 addition & 1 deletion nbs/04a_Plot_heatmap_logo_CDDM.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@
"outputs": [],
"source": [
"# data.to_parquet('ks_main_upper.parquet')\n",
"data.to_csv('supp/CDDM_upper.csv')"
"# data.to_csv('supp/CDDM_upper.csv')"
]
},
{
Expand Down
12 changes: 2 additions & 10 deletions nbs/07a_Combine_psp_ochoa.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -440,22 +440,14 @@
"psp = psp[psp.LT_LIT.notna()].reset_index(drop=True)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "299536e3-8b80-4796-95ed-8fff549f0cf4",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 23,
"id": "6aa7326c-17b0-498d-af51-44eb4c5f66aa",
"metadata": {},
"outputs": [],
"source": [
"psp = psp[['uniprot','site']] #'protein','gene'"
"psp = psp[['uniprot','site']].copy() #'protein','gene'"
]
},
{
Expand Down Expand Up @@ -483,7 +475,7 @@
"metadata": {},
"outputs": [],
"source": [
"ochoa = ochoa[['uniprot','site']]"
"ochoa = ochoa[['uniprot','site']].copy()"
]
},
{
Expand Down
16 changes: 13 additions & 3 deletions nbs/07b_Plot_distribution.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,17 @@
"outputs": [],
"source": [
"# you can also directly load through Data\n",
"unique= Data.get_combine_site_psp_ochoa()"
"comb= Data.get_combine_site_psp_ochoa()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "a7322a50-b68f-4ecc-85b4-5a332a09c618",
"metadata": {},
"outputs": [],
"source": [
"comb['acceptor'] = comb.site_seq.str[7]"
]
},
{
Expand All @@ -72,9 +82,9 @@
"metadata": {},
"outputs": [],
"source": [
"results = predict_kinase_df(unique,'site_seq',**param_CDDM_upper)\n",
"results = predict_kinase_df(comb,'site_seq',**param_CDDM_upper)\n",
"\n",
"df = pd.concat([unique,results],axis=1)"
"df = pd.concat([comb,results],axis=1)"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion nbs/09c_ML_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"metadata": {},
"outputs": [],
"source": [
"oof_results = load_pickle('raw/oof.pkl')"
"oof_results = pd.read_pickle('raw/oof.pkl')"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions nbs/others_02_CPTAC_IDmapping.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@
"metadata": {},
"outputs": [],
"source": [
"linkedomics.to_parquet('linkedomics_ID.parquet')\n",
"linkedomicsKB.to_parquet('linkedomicsKB_ID.parquet')"
"# linkedomics.to_parquet('linkedomics_ID.parquet')\n",
"# linkedomicsKB.to_parquet('linkedomicsKB_ID.parquet')"
]
},
{
Expand Down

0 comments on commit f4de050

Please sign in to comment.