Skip to content

Commit 17c0174

Browse files
authored
Switch to top 100 enriched treatments in JUMP (new sup table) (#60)
* switch to top 100 instead of top 10 * rerun processing and update .gz files * rerun notebook and minor mods
1 parent cb4883b commit 17c0174

File tree

6 files changed

+16206
-1808
lines changed

6 files changed

+16206
-1808
lines changed

3.evaluate_model/jump_phenotype_profiles/jump_most_significant_phenotype_enrichment.tsv

Lines changed: 16200 additions & 1800 deletions
Large diffs are not rendered by default.
Binary file not shown.
Binary file not shown.

3.evaluate_model/process_jump_phenotype_profiles.ipynb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@
3232
"source": [
3333
"import pathlib\n",
3434
"from typing import List\n",
35-
"import pandas as pd\n",
36-
"\n",
37-
"import umap"
35+
"import pandas as pd"
3836
]
3937
},
4038
{
@@ -54,7 +52,7 @@
5452
"jump_sc_pred_file = f\"{url}/{commit}/{file}\"\n",
5553
"\n",
5654
"# Set constants\n",
57-
"n_top_results_to_explore = 10"
55+
"n_top_results_to_explore = 100"
5856
]
5957
},
6058
{
@@ -436,7 +434,7 @@
436434
"name": "stdout",
437435
"output_type": "stream",
438436
"text": [
439-
"(3600, 11)\n"
437+
"(18000, 11)\n"
440438
]
441439
},
442440
{
@@ -580,6 +578,7 @@
580578
"# Focus on the top results for downstream interpretation\n",
581579
"jump_focused_top_results_df = (\n",
582580
" jump_pred_df\n",
581+
" .query(\"Metadata_model_type == 'final'\")\n",
583582
" .groupby([\"Metadata_model_type\", \"treatment_type\", \"Cell_type\", \"Time\", \"phenotype\"])\n",
584583
" .apply(lambda x: x.nsmallest(n_top_results_to_explore, \"p_value\"))\n",
585584
" .reset_index(drop=True)\n",

3.evaluate_model/scripts/nbconverted/process_jump_phenotype_profiles.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
from typing import List
2626
import pandas as pd
2727

28-
import umap
29-
3028

3129
# In[2]:
3230

@@ -41,7 +39,7 @@
4139
jump_sc_pred_file = f"{url}/{commit}/{file}"
4240

4341
# Set constants
44-
n_top_results_to_explore = 10
42+
n_top_results_to_explore = 100
4543

4644

4745
# In[3]:
@@ -125,6 +123,7 @@
125123
# Focus on the top results for downstream interpretation
126124
jump_focused_top_results_df = (
127125
jump_pred_df
126+
.query("Metadata_model_type == 'final'")
128127
.groupby(["Metadata_model_type", "treatment_type", "Cell_type", "Time", "phenotype"])
129128
.apply(lambda x: x.nsmallest(n_top_results_to_explore, "p_value"))
130129
.reset_index(drop=True)

0 commit comments

Comments
 (0)