Skip to content

Commit e8b191a

Browse files
committed
changing name of graphs - removing dot
1 parent a570946 commit e8b191a

10 files changed

+503
-187
lines changed

notebooks/basic_graph_visualization.ipynb

Lines changed: 41 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@
3737
{
3838
"cell_type": "code",
3939
"execution_count": null,
40-
"metadata": {},
40+
"metadata": {
41+
"collapsed": true
42+
},
4143
"outputs": [],
4244
"source": [
4345
"# Import the function to create an spm fmri preprocessing workflow\n",
@@ -57,7 +59,9 @@
5759
{
5860
"cell_type": "code",
5961
"execution_count": null,
60-
"metadata": {},
62+
"metadata": {
63+
"collapsed": true
64+
},
6165
"outputs": [],
6266
"source": [
6367
"# Import relevant modules\n",
@@ -84,15 +88,17 @@
8488
{
8589
"cell_type": "code",
8690
"execution_count": null,
87-
"metadata": {},
91+
"metadata": {
92+
"collapsed": true
93+
},
8894
"outputs": [],
8995
"source": [
9096
"# Write graph of type orig\n",
9197
"spmflow.write_graph(graph2use='orig', dotfilename='./graph_orig.dot')\n",
9298
"\n",
9399
"# Visualize graph\n",
94100
"from IPython.display import Image\n",
95-
"Image(filename=\"graph_orig.dot.png\")"
101+
"Image(filename=\"graph_orig.png\")"
96102
]
97103
},
98104
{
@@ -107,15 +113,17 @@
107113
{
108114
"cell_type": "code",
109115
"execution_count": null,
110-
"metadata": {},
116+
"metadata": {
117+
"collapsed": true
118+
},
111119
"outputs": [],
112120
"source": [
113121
"# Write graph of type flat\n",
114122
"spmflow.write_graph(graph2use='flat', dotfilename='./graph_flat.dot')\n",
115123
"\n",
116124
"# Visualize graph\n",
117125
"from IPython.display import Image\n",
118-
"Image(filename=\"graph_flat.dot.png\")"
126+
"Image(filename=\"graph_flat.png\")"
119127
]
120128
},
121129
{
@@ -132,15 +140,17 @@
132140
{
133141
"cell_type": "code",
134142
"execution_count": null,
135-
"metadata": {},
143+
"metadata": {
144+
"collapsed": true
145+
},
136146
"outputs": [],
137147
"source": [
138148
"# Write graph of type hierarchical\n",
139149
"metaflow.write_graph(graph2use='hierarchical', dotfilename='./graph_hierarchical.dot')\n",
140150
"\n",
141151
"# Visualize graph\n",
142152
"from IPython.display import Image\n",
143-
"Image(filename=\"graph_hierarchical.dot.png\")"
153+
"Image(filename=\"graph_hierarchical.png\")"
144154
]
145155
},
146156
{
@@ -155,15 +165,17 @@
155165
{
156166
"cell_type": "code",
157167
"execution_count": null,
158-
"metadata": {},
168+
"metadata": {
169+
"collapsed": true
170+
},
159171
"outputs": [],
160172
"source": [
161173
"# Write graph of type colored\n",
162174
"metaflow.write_graph(graph2use='colored', dotfilename='./graph_colored.dot')\n",
163175
"\n",
164176
"# Visualize graph\n",
165177
"from IPython.display import Image\n",
166-
"Image(filename=\"graph_colored.dot.png\")"
178+
"Image(filename=\"graph_colored.png\")"
167179
]
168180
},
169181
{
@@ -178,15 +190,17 @@
178190
{
179191
"cell_type": "code",
180192
"execution_count": null,
181-
"metadata": {},
193+
"metadata": {
194+
"collapsed": true
195+
},
182196
"outputs": [],
183197
"source": [
184198
"# Write graph of type exec\n",
185199
"metaflow.write_graph(graph2use='exec', dotfilename='./graph_exec.dot')\n",
186200
"\n",
187201
"# Visualize graph\n",
188202
"from IPython.display import Image\n",
189-
"Image(filename=\"graph_exec.dot.png\")"
203+
"Image(filename=\"graph_exec.png\")"
190204
]
191205
},
192206
{
@@ -205,11 +219,13 @@
205219
{
206220
"cell_type": "code",
207221
"execution_count": null,
208-
"metadata": {},
222+
"metadata": {
223+
"collapsed": true
224+
},
209225
"outputs": [],
210226
"source": [
211227
"from IPython.display import Image\n",
212-
"Image(filename=\"graph_flat_detailed.dot.png\")"
228+
"Image(filename=\"graph_flat_detailed.png\")"
213229
]
214230
},
215231
{
@@ -231,11 +247,13 @@
231247
{
232248
"cell_type": "code",
233249
"execution_count": null,
234-
"metadata": {},
250+
"metadata": {
251+
"collapsed": true
252+
},
235253
"outputs": [],
236254
"source": [
237255
"from IPython.display import Image\n",
238-
"Image(filename=\"graph_exec_detailed.dot.png\")"
256+
"Image(filename=\"graph_exec_detailed.png\")"
239257
]
240258
},
241259
{
@@ -259,24 +277,26 @@
259277
{
260278
"cell_type": "code",
261279
"execution_count": null,
262-
"metadata": {},
280+
"metadata": {
281+
"collapsed": true
282+
},
263283
"outputs": [],
264284
"source": [
265285
"# Write graph of type orig\n",
266286
"spmflow.write_graph(graph2use='orig', dotfilename='./graph_orig_notSimple.dot', simple_form=False)\n",
267287
"\n",
268288
"# Visualize graph\n",
269289
"from IPython.display import Image\n",
270-
"Image(filename=\"graph_orig_notSimple.dot.png\")"
290+
"Image(filename=\"graph_orig_notSimple.png\")"
271291
]
272292
}
273293
],
274294
"metadata": {
275295
"anaconda-cloud": {},
276296
"kernelspec": {
277-
"display_name": "Python 3",
297+
"display_name": "Python [conda env:py3.5_nipype]",
278298
"language": "python",
279-
"name": "python3"
299+
"name": "conda-env-py3.5_nipype-py"
280300
},
281301
"language_info": {
282302
"codemirror_mode": {
@@ -288,7 +308,7 @@
288308
"name": "python",
289309
"nbconvert_exporter": "python",
290310
"pygments_lexer": "ipython3",
291-
"version": "3.6.2"
311+
"version": "3.5.3"
292312
}
293313
},
294314
"nbformat": 4,

notebooks/basic_import_workflows.ipynb

Lines changed: 39 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@
3737
{
3838
"cell_type": "code",
3939
"execution_count": null,
40-
"metadata": {},
40+
"metadata": {
41+
"collapsed": true
42+
},
4143
"outputs": [],
4244
"source": [
4345
"from nipype.workflows.fmri.fsl.preprocess import create_susan_smooth\n",
@@ -79,7 +81,9 @@
7981
{
8082
"cell_type": "code",
8183
"execution_count": null,
82-
"metadata": {},
84+
"metadata": {
85+
"collapsed": true
86+
},
8387
"outputs": [],
8488
"source": [
8589
"!fslmaths /data/ds000114/sub-01/ses-test/func/sub-01_ses-test_task-fingerfootlips_bold.nii.gz \\\n",
@@ -96,7 +100,9 @@
96100
{
97101
"cell_type": "code",
98102
"execution_count": null,
99-
"metadata": {},
103+
"metadata": {
104+
"collapsed": true
105+
},
100106
"outputs": [],
101107
"source": [
102108
"smoothwf.inputs.inputnode.in_files = '/data/ds000114/sub-01/ses-test/func/sub-01_ses-test_task-fingerfootlips_bold.nii.gz'\n",
@@ -115,13 +121,15 @@
115121
{
116122
"cell_type": "code",
117123
"execution_count": null,
118-
"metadata": {},
124+
"metadata": {
125+
"collapsed": true
126+
},
119127
"outputs": [],
120128
"source": [
121129
"%pylab inline\n",
122130
"from IPython.display import Image\n",
123131
"smoothwf.write_graph(graph2use='colored', format='png', simple_form=True)\n",
124-
"Image(filename='/output/susan_smooth/graph.dot.png')"
132+
"Image(filename='/output/susan_smooth/graph.png')"
125133
]
126134
},
127135
{
@@ -134,7 +142,9 @@
134142
{
135143
"cell_type": "code",
136144
"execution_count": null,
137-
"metadata": {},
145+
"metadata": {
146+
"collapsed": true
147+
},
138148
"outputs": [],
139149
"source": [
140150
"smoothwf.run('MultiProc', plugin_args={'n_procs': 4})"
@@ -150,7 +160,9 @@
150160
{
151161
"cell_type": "code",
152162
"execution_count": null,
153-
"metadata": {},
163+
"metadata": {
164+
"collapsed": true
165+
},
154166
"outputs": [],
155167
"source": [
156168
"!fslmaths /data/ds000114/sub-01/ses-test/func/sub-01_ses-test_task-fingerfootlips_bold.nii.gz -Tmean fmean.nii.gz\n",
@@ -178,7 +190,9 @@
178190
{
179191
"cell_type": "code",
180192
"execution_count": null,
181-
"metadata": {},
193+
"metadata": {
194+
"collapsed": true
195+
},
182196
"outputs": [],
183197
"source": [
184198
"print(smoothwf.list_node_names())"
@@ -194,7 +208,9 @@
194208
{
195209
"cell_type": "code",
196210
"execution_count": null,
197-
"metadata": {},
211+
"metadata": {
212+
"collapsed": true
213+
},
198214
"outputs": [],
199215
"source": [
200216
"median = smoothwf.get_node('median')"
@@ -210,7 +226,9 @@
210226
{
211227
"cell_type": "code",
212228
"execution_count": null,
213-
"metadata": {},
229+
"metadata": {
230+
"collapsed": true
231+
},
214232
"outputs": [],
215233
"source": [
216234
"median.inputs.op_string = '-k %s -p 99'"
@@ -226,7 +244,9 @@
226244
{
227245
"cell_type": "code",
228246
"execution_count": null,
229-
"metadata": {},
247+
"metadata": {
248+
"collapsed": true
249+
},
230250
"outputs": [],
231251
"source": [
232252
"smoothwf.run('MultiProc', plugin_args={'n_procs': 4})"
@@ -242,7 +262,9 @@
242262
{
243263
"cell_type": "code",
244264
"execution_count": null,
245-
"metadata": {},
265+
"metadata": {
266+
"collapsed": true
267+
},
246268
"outputs": [],
247269
"source": [
248270
"!fslmaths /output/susan_smooth/smooth/mapflow/_smooth0/sub-01_ses-test_task-fingerfootlips_bold_smooth.nii.gz \\\n",
@@ -261,21 +283,21 @@
261283
"metadata": {
262284
"anaconda-cloud": {},
263285
"kernelspec": {
264-
"display_name": "Python 3",
286+
"display_name": "Python [conda env:cos1]",
265287
"language": "python",
266-
"name": "python3"
288+
"name": "conda-env-cos1-py"
267289
},
268290
"language_info": {
269291
"codemirror_mode": {
270292
"name": "ipython",
271-
"version": 3
293+
"version": 2
272294
},
273295
"file_extension": ".py",
274296
"mimetype": "text/x-python",
275297
"name": "python",
276298
"nbconvert_exporter": "python",
277-
"pygments_lexer": "ipython3",
278-
"version": "3.6.2"
299+
"pygments_lexer": "ipython2",
300+
"version": "2.7.12"
279301
}
280302
},
281303
"nbformat": 4,

0 commit comments

Comments
 (0)