diff --git a/2.evaluate-classifier-pdx.ipynb b/2.evaluate-classifier-pdx.ipynb
index ff17113..92d6679 100644
--- a/2.evaluate-classifier-pdx.ipynb
+++ b/2.evaluate-classifier-pdx.ipynb
@@ -252,8 +252,8 @@
"ALK 18\n",
"KRAS 16\n",
"NF1 12\n",
- "DMD 10\n",
"NRAS 10\n",
+ "DMD 10\n",
"CIC 8\n",
"SOS1 7\n",
"HRAS 4\n",
@@ -281,13 +281,13 @@
"text/plain": [
"Missense_Mutation 112\n",
"Shallow_Del 17\n",
- "Fusion 13\n",
"Nonsense_Mutation 13\n",
+ "Fusion 13\n",
"Frame_Shift_Del 5\n",
- "Frame_Shift_Ins 3\n",
"Splice_Site 3\n",
- "Deep_Del 1\n",
+ "Frame_Shift_Ins 3\n",
"In_Frame_Del 1\n",
+ "Deep_Del 1\n",
"Name: Variant_Classification, dtype: int64"
]
},
@@ -309,8 +309,8 @@
"data": {
"text/plain": [
"Osteosarcoma 45\n",
- "BCP-ALL 26\n",
"Neuroblastoma 26\n",
+ "BCP-ALL 26\n",
"Glioblastoma 13\n",
"Ewing Sarcoma 12\n",
"Ph-likeALL 7\n",
@@ -318,15 +318,15 @@
"MLL-ALL 4\n",
"Medulloblastoma 4\n",
"Alveolar Rhabdomyosarcoma 4\n",
- "Wilms 4\n",
"T-ALL 4\n",
- "Astrocytoma 3\n",
+ "Wilms 4\n",
"ATRT 3\n",
- "ETP-ALL 2\n",
+ "Astrocytoma 3\n",
"Other Sarcoma 2\n",
+ "ETP-ALL 2\n",
"Colon Carcinoma 1\n",
- "Small Cell Carcinoma 1\n",
"Rhabdoid 1\n",
+ "Small Cell Carcinoma 1\n",
"Name: Histology.Detailed, dtype: int64"
]
},
@@ -902,7 +902,155 @@
"cell_type": "code",
"execution_count": 12,
"metadata": {},
- "outputs": [],
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "
\n",
+ "\n",
+ "
\n",
+ " \n",
+ " \n",
+ " | \n",
+ " Model | \n",
+ " ALK | \n",
+ " BRAF | \n",
+ " CIC | \n",
+ " DMD | \n",
+ " HRAS | \n",
+ " KRAS | \n",
+ " NF1 | \n",
+ " NRAS | \n",
+ " PTPN11 | \n",
+ " SOS1 | \n",
+ " TP53 | \n",
+ " Histology_Full | \n",
+ " ras_status | \n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ " 0 | \n",
+ " ALL-03 | \n",
+ " 1 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " MLL-ALL | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " 1 | \n",
+ " ALL-07 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 1 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " BCP-ALL | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " 2 | \n",
+ " ALL-08 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 1 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " T-ALL | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " 3 | \n",
+ " ALL-108 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 1 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " Ph-likeALL | \n",
+ " 1 | \n",
+ "
\n",
+ " \n",
+ " 4 | \n",
+ " ALL-115 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 0 | \n",
+ " 1 | \n",
+ " BCP-ALL | \n",
+ " 0 | \n",
+ "
\n",
+ " \n",
+ "
\n",
+ "
"
+ ],
+ "text/plain": [
+ " Model ALK BRAF CIC DMD HRAS KRAS NF1 NRAS PTPN11 SOS1 TP53 \\\n",
+ "0 ALL-03 1 0 0 0 0 0 0 0 0 0 0 \n",
+ "1 ALL-07 0 0 0 0 0 1 0 0 0 0 0 \n",
+ "2 ALL-08 0 0 0 1 0 0 0 0 0 0 0 \n",
+ "3 ALL-108 0 0 0 0 0 1 0 0 0 0 0 \n",
+ "4 ALL-115 0 0 0 0 0 0 0 0 0 0 1 \n",
+ "\n",
+ " Histology_Full ras_status \n",
+ "0 MLL-ALL 1 \n",
+ "1 BCP-ALL 1 \n",
+ "2 T-ALL 1 \n",
+ "3 Ph-likeALL 1 \n",
+ "4 BCP-ALL 0 "
+ ]
+ },
+ "execution_count": 12,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
"source": [
"# Ras Pathway Alterations\n",
"ras_genes = ['ALK', 'NF1', 'PTPN11', 'BRAF', 'CIC', 'KRAS', 'HRAS', 'NRAS', 'DMD', 'SOS1']\n",
@@ -911,7 +1059,9 @@
" full_status_df\n",
" .assign(ras_status = full_status_df.loc[:, ras_genes]\n",
" .max(axis='columns'))\n",
- ")"
+ ")\n",
+ "\n",
+ "full_status_df.head()"
]
},
{
@@ -1103,22 +1253,22 @@
"T-ALL 19\n",
"Ph-likeALL 15\n",
"Wilms 13\n",
- "Ewing Sarcoma 10\n",
"MLL-ALL 10\n",
+ "Ewing Sarcoma 10\n",
"ATRT 8\n",
+ "Alveolar Rhabdomyosarcoma 7\n",
"Embryonal Rhabdomyosarcoma 7\n",
"PNET 7\n",
- "Alveolar Rhabdomyosarcoma 7\n",
"ETP-ALL 6\n",
- "Glioblastoma 6\n",
"Ependymoma 6\n",
+ "Glioblastoma 6\n",
"Rhabdoid 5\n",
- "Other Sarcoma 3\n",
"Ph+-ALL 3\n",
+ "Other Sarcoma 3\n",
"DIPG 2\n",
+ "Astrocytoma 2\n",
"Small Cell Carcinoma 2\n",
"Other Renal 2\n",
- "Astrocytoma 2\n",
"CNS germinoma 1\n",
"Colon Carcinoma 1\n",
"Name: Histology-Detailed, dtype: int64"
@@ -1992,7 +2142,7 @@
"scores_file = os.path.join(\"results\", \"classifier_scores_with_clinical_and_alterations.tsv\")\n",
"genes = ras_genes + ['TP53']\n",
"\n",
- "scores_df.drop(['Model_x', 'Model_y', 'Histology_Full'], axis='columns')\n",
+ "scores_df = scores_df.drop(['Model_x', 'Model_y', 'Histology_Full'], axis='columns')\n",
"scores_df[genes] = scores_df[genes].fillna(value=0)\n",
"\n",
"scores_df.sort_values(by='sample_id').to_csv(scores_file, sep='\\t', index=False)"
@@ -2020,9 +2170,9 @@
],
"metadata": {
"kernelspec": {
- "display_name": "Python [conda env:target-classification]",
+ "display_name": "Python [conda env:expression-classification]",
"language": "python",
- "name": "conda-env-target-classification-py"
+ "name": "conda-env-expression-classification-py"
},
"language_info": {
"codemirror_mode": {
diff --git a/figures/NF1_confidence_scores.pdf b/figures/NF1_confidence_scores.pdf
index e6aba3e..959aa18 100644
Binary files a/figures/NF1_confidence_scores.pdf and b/figures/NF1_confidence_scores.pdf differ
diff --git a/figures/NF1_predictions.pdf b/figures/NF1_predictions.pdf
index 4a5f694..2edd832 100644
Binary files a/figures/NF1_predictions.pdf and b/figures/NF1_predictions.pdf differ
diff --git a/figures/Ras_confidence_scores.pdf b/figures/Ras_confidence_scores.pdf
index 5234b89..474fcd5 100644
Binary files a/figures/Ras_confidence_scores.pdf and b/figures/Ras_confidence_scores.pdf differ
diff --git a/figures/Ras_predictions.pdf b/figures/Ras_predictions.pdf
index 85ada02..be7cfc7 100644
Binary files a/figures/Ras_predictions.pdf and b/figures/Ras_predictions.pdf differ
diff --git a/figures/TP53_confidence_scores.pdf b/figures/TP53_confidence_scores.pdf
index c15833e..8684258 100644
Binary files a/figures/TP53_confidence_scores.pdf and b/figures/TP53_confidence_scores.pdf differ
diff --git a/figures/TP53_osteosarcoma_variant_classification.pdf b/figures/TP53_osteosarcoma_variant_classification.pdf
index 0c7e2b3..2f6cc39 100644
Binary files a/figures/TP53_osteosarcoma_variant_classification.pdf and b/figures/TP53_osteosarcoma_variant_classification.pdf differ
diff --git a/figures/TP53_predictions.pdf b/figures/TP53_predictions.pdf
index 8a66b99..eaf50ee 100644
Binary files a/figures/TP53_predictions.pdf and b/figures/TP53_predictions.pdf differ
diff --git a/figures/TP53_variant_classification.pdf b/figures/TP53_variant_classification.pdf
index 1ec3ff5..1117aa1 100644
Binary files a/figures/TP53_variant_classification.pdf and b/figures/TP53_variant_classification.pdf differ
diff --git a/figures/classifier_precision_recall_curve.pdf b/figures/classifier_precision_recall_curve.pdf
index 0c18d4d..8a72266 100644
Binary files a/figures/classifier_precision_recall_curve.pdf and b/figures/classifier_precision_recall_curve.pdf differ
diff --git a/figures/classifier_roc_curve.pdf b/figures/classifier_roc_curve.pdf
index 226cfc3..c8a7efb 100644
Binary files a/figures/classifier_roc_curve.pdf and b/figures/classifier_roc_curve.pdf differ
diff --git a/figures/histology_NF1_predictions.pdf b/figures/histology_NF1_predictions.pdf
index 180a5ce..cd5ffae 100644
Binary files a/figures/histology_NF1_predictions.pdf and b/figures/histology_NF1_predictions.pdf differ
diff --git a/figures/histology_Ras_predictions.pdf b/figures/histology_Ras_predictions.pdf
index 5051a3c..81d442a 100644
Binary files a/figures/histology_Ras_predictions.pdf and b/figures/histology_Ras_predictions.pdf differ
diff --git a/figures/histology_TP53_predictions.pdf b/figures/histology_TP53_predictions.pdf
index 027740e..322d72c 100644
Binary files a/figures/histology_TP53_predictions.pdf and b/figures/histology_TP53_predictions.pdf differ
diff --git a/html/2.evaluate-classifier-pdx.html b/html/2.evaluate-classifier-pdx.html
index dd21f81..4c31ec7 100644
--- a/html/2.evaluate-classifier-pdx.html
+++ b/html/2.evaluate-classifier-pdx.html
@@ -12061,12 +12061,12 @@