Skip to content

Commit 568e83d

Browse files
committed
update run and explore
1 parent 0fe0aa9 commit 568e83d

File tree

1 file changed

+13
-52
lines changed

1 file changed

+13
-52
lines changed

run_and_explore.ipynb

Lines changed: 13 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"execution_count": null,
1818
"id": "28d0e8b6-9bbd-4256-a19a-ff36eeca5cfd",
1919
"metadata": {
20-
"id": "28d0e8b6-9bbd-4256-a19a-ff36eeca5cfd"
20+
"id": "28d0e8b6-9bbd-4256-a19a-ff36eeca5cfd",
21+
"cellView": "form"
2122
},
2223
"outputs": [],
2324
"source": [
@@ -28,32 +29,6 @@
2829
"pip install -r requirements.txt"
2930
]
3031
},
31-
{
32-
"cell_type": "markdown",
33-
"id": "37860b1b-5031-4bd7-8e86-c668f545126b",
34-
"metadata": {
35-
"id": "37860b1b-5031-4bd7-8e86-c668f545126b"
36-
},
37-
"source": [
38-
"## INSERT YOUR META-ANALYSIS ID HERE\n",
39-
"\n",
40-
"This is the id for your specific meta-analysis"
41-
]
42-
},
43-
{
44-
"cell_type": "code",
45-
"execution_count": null,
46-
"id": "178c5406-2625-4048-af3c-c01bdb5e1b56",
47-
"metadata": {
48-
"id": "178c5406-2625-4048-af3c-c01bdb5e1b56"
49-
},
50-
"outputs": [],
51-
"source": [
52-
"#@title Set your Neurosynth-Compose Meta-Analysis ID { run: \"auto\" }\n",
53-
"META_ID = input(\"Paste the 12 character ID of the meta-analysis here: \") # for example: \"8dJ6tG7wfbyS\"\n",
54-
"META_ID = META_ID.replace(\" \", \"\")"
55-
]
56-
},
5732
{
5833
"cell_type": "markdown",
5934
"id": "7dccf070-a1cc-4471-97f1-d386374a80df",
@@ -67,27 +42,19 @@
6742
"run the selected algorithm and corrector (optional) on the studyset selected."
6843
]
6944
},
70-
{
71-
"cell_type": "code",
72-
"execution_count": null,
73-
"id": "8aee063b-9a03-4cd0-8de5-46b66cdf19c4",
74-
"metadata": {
75-
"id": "8aee063b-9a03-4cd0-8de5-46b66cdf19c4"
76-
},
77-
"outputs": [],
78-
"source": [
79-
"from pynsc.run import run # special workflow to run meta-analysis"
80-
]
81-
},
8245
{
8346
"cell_type": "code",
8447
"execution_count": null,
8548
"id": "51a1e194-af1a-461c-a73f-3e79a31db95f",
8649
"metadata": {
87-
"id": "51a1e194-af1a-461c-a73f-3e79a31db95f"
50+
"id": "51a1e194-af1a-461c-a73f-3e79a31db95f",
51+
"cellView": "form"
8852
},
8953
"outputs": [],
9054
"source": [
55+
"#@title Insert the Meta-Analysis ID and Execute your Meta-Analysis { vertical-output: true }\n",
56+
"from pynsc.run import run # special workflow to run meta-analysis\n",
57+
"META_ID = \"\" #@param {type:\"string\"}\n",
9158
"url = meta_result = None\n",
9259
"if META_ID is not None:\n",
9360
" url, meta_result = run(META_ID)\n",
@@ -139,6 +106,7 @@
139106
{
140107
"cell_type": "code",
141108
"source": [
109+
"#@title Download the Report\n",
142110
"from google.colab import files\n",
143111
"import shutil\n",
144112
"\n",
@@ -154,7 +122,8 @@
154122
"\n"
155123
],
156124
"metadata": {
157-
"id": "1g7ewj1h2Xtw"
125+
"id": "1g7ewj1h2Xtw",
126+
"cellView": "form"
158127
},
159128
"id": "1g7ewj1h2Xtw",
160129
"execution_count": null,
@@ -164,10 +133,12 @@
164133
"cell_type": "code",
165134
"execution_count": null,
166135
"metadata": {
167-
"id": "9OyC1_bSEccg"
136+
"id": "9OyC1_bSEccg",
137+
"cellView": "form"
168138
},
169139
"outputs": [],
170140
"source": [
141+
"#@title Display the Report\n",
171142
"import portpicker\n",
172143
"import threading\n",
173144
"import socket\n",
@@ -198,16 +169,6 @@
198169
"output.serve_kernel_port_as_iframe(port, path='/report/report.html')"
199170
],
200171
"id": "9OyC1_bSEccg"
201-
},
202-
{
203-
"cell_type": "code",
204-
"source": [],
205-
"metadata": {
206-
"id": "uBujVXqe-DqW"
207-
},
208-
"id": "uBujVXqe-DqW",
209-
"execution_count": null,
210-
"outputs": []
211172
}
212173
],
213174
"metadata": {

0 commit comments

Comments
 (0)