Skip to content

Commit 736bde2

Browse files
committed
fig updates
1 parent b33e85d commit 736bde2

29 files changed

+46143
-111
lines changed

src/evaluation/figure_notebooks/figure_6/final_figures/format_af_caqtls-Copy1.ipynb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,22 @@
1111
},
1212
{
1313
"cell_type": "code",
14-
"execution_count": 2,
14+
"execution_count": 146,
1515
"metadata": {},
1616
"outputs": [],
1717
"source": [
1818
"data = pd.read_csv(\"all_caqtls.scores.tsv\", sep=\"\\t\")"
1919
]
2020
},
21+
{
22+
"cell_type": "code",
23+
"execution_count": 147,
24+
"metadata": {},
25+
"outputs": [],
26+
"source": [
27+
"data[['chr', 'pos', 'allele1', 'allele2', \"rsid\"]].to_csv(\"/mnt/lab_data2/anusri/enformer/eu_caqtls/afgr_all.tsv\", sep=\"\\t\", header=True, index=False)\n"
28+
]
29+
},
2130
{
2231
"cell_type": "code",
2332
"execution_count": 3,

src/evaluation/figure_notebooks/figure_6/final_figures/format_cagi.ipynb

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -568,28 +568,18 @@
568568
},
569569
{
570570
"cell_type": "code",
571-
"execution_count": 215,
571+
"execution_count": 1,
572572
"metadata": {},
573573
"outputs": [
574574
{
575-
"name": "stdout",
576-
"output_type": "stream",
577-
"text": [
578-
"challenge_HBG1.tsv\n",
579-
"challenge_PKLR.tsv\n",
580-
"challenge_MYCrs6983267.tsv\n",
581-
"challenge_TERT-GBM.tsv\n",
582-
"challenge_MSMB.tsv\n",
583-
"challenge_F9.tsv\n",
584-
"challenge_IRF6.tsv\n",
585-
"challenge_HNF4A.tsv\n",
586-
"challenge_IRF4.tsv\n",
587-
"challenge_SORT1.tsv\n",
588-
"challenge_ZFAND3.tsv\n",
589-
"challenge_HBB.tsv\n",
590-
"challenge_LDLR.tsv\n",
591-
"challenge_TERT-HEK293T.tsv\n",
592-
"challenge_GP1BB.tsv\n"
575+
"ename": "NameError",
576+
"evalue": "name 'dirs' is not defined",
577+
"output_type": "error",
578+
"traceback": [
579+
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
580+
"\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)",
581+
"\u001b[0;32m<ipython-input-1-59d188bd8e8a>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[0menf_dfs\u001b[0m\u001b[0;34m=\u001b[0m \u001b[0;34m[\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 2\u001b[0;31m \u001b[0;32mfor\u001b[0m \u001b[0midir\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mdirs\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 3\u001b[0m \u001b[0midir\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mstr\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0midir\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 4\u001b[0m \u001b[0mifile\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0modir\u001b[0m\u001b[0;34m+\u001b[0m\u001b[0midir\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mos\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpath\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0misfile\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mifile\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
582+
"\u001b[0;31mNameError\u001b[0m: name 'dirs' is not defined"
593583
]
594584
}
595585
],
@@ -626,6 +616,7 @@
626616
" \n",
627617
" enf_f = \"/mnt/lab_data2/anusri/chrombpnet/results/variant_data/CAGI/enformer_preds/alldata/\"+idir.replace(\"challenge_\",\"\").replace(\".tsv\",\"\")+\".ZigaDataLocal.csv\"\n",
628618
" enf_f = pd.read_csv(enf_f, sep=\",\", header=0)\n",
619+
" print(enf_h,head(1))\n",
629620
" #print(combined.drop_duplicates().shape[0], combined.shape[0])\n",
630621
" #print(enf_f.head(1))\n",
631622
" #assert(enf_f.shape[0] == combined.shape[0])\n",

src/evaluation/figure_notebooks/figure_6/final_figures/format_spi1_bqtls.ipynb

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@
759759
},
760760
{
761761
"cell_type": "code",
762-
"execution_count": 56,
762+
"execution_count": 73,
763763
"metadata": {},
764764
"outputs": [
765765
{
@@ -780,7 +780,7 @@
780780
" dtype='object')"
781781
]
782782
},
783-
"execution_count": 56,
783+
"execution_count": 73,
784784
"metadata": {},
785785
"output_type": "execute_result"
786786
}
@@ -789,6 +789,26 @@
789789
"snps.columns"
790790
]
791791
},
792+
{
793+
"cell_type": "code",
794+
"execution_count": 74,
795+
"metadata": {},
796+
"outputs": [
797+
{
798+
"data": {
799+
"text/plain": [
800+
"4834"
801+
]
802+
},
803+
"execution_count": 74,
804+
"metadata": {},
805+
"output_type": "execute_result"
806+
}
807+
],
808+
"source": [
809+
"len(mean_change)"
810+
]
811+
},
792812
{
793813
"cell_type": "code",
794814
"execution_count": 44,

src/evaluation/figure_notebooks/figure_6/final_figures_new/cagi_scoring_all.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
{
1313
"cell_type": "code",
14-
"execution_count": 32,
14+
"execution_count": 2,
1515
"metadata": {},
1616
"outputs": [],
1717
"source": [
@@ -20,7 +20,7 @@
2020
},
2121
{
2222
"cell_type": "code",
23-
"execution_count": 33,
23+
"execution_count": 3,
2424
"metadata": {},
2525
"outputs": [
2626
{
@@ -232,7 +232,7 @@
232232
"[5 rows x 25 columns]"
233233
]
234234
},
235-
"execution_count": 33,
235+
"execution_count": 3,
236236
"metadata": {},
237237
"output_type": "execute_result"
238238
}
@@ -243,7 +243,7 @@
243243
},
244244
{
245245
"cell_type": "code",
246-
"execution_count": 34,
246+
"execution_count": 4,
247247
"metadata": {},
248248
"outputs": [
249249
{
@@ -258,7 +258,7 @@
258258
" dtype='object')"
259259
]
260260
},
261-
"execution_count": 34,
261+
"execution_count": 4,
262262
"metadata": {},
263263
"output_type": "execute_result"
264264
}
@@ -269,7 +269,7 @@
269269
},
270270
{
271271
"cell_type": "code",
272-
"execution_count": 35,
272+
"execution_count": 5,
273273
"metadata": {},
274274
"outputs": [],
275275
"source": [

0 commit comments

Comments
 (0)