File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed
hippunfold/workflow/rules Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 1
1
# create rules for downloading each atlas, since output files need to be specified
2
2
# without using wildcards
3
- for atlas in config ['atlas' ]:
4
- rule :
5
- name : f"download_atlas_{ atlas } "
3
+ for atlas in config ["atlas" ]:
4
+
5
+ rule :
6
+ name :
7
+ f"download_atlas_{ atlas } "
6
8
params :
7
9
url = config ["atlas_links_url" ][atlas ],
8
10
output :
@@ -13,13 +15,17 @@ for atlas in config['atlas']:
13
15
"wget https://{params.url} -O {output.model_zip}"
14
16
15
17
rule :
16
- name : f"unzip_download_atlas_{ atlas } "
18
+ name :
19
+ f"unzip_download_atlas_{ atlas } "
17
20
input :
18
21
model_zip = os .path .join (download_dir , atlas + ".zip" ),
19
22
params :
20
23
dir = os .path .join (download_dir , atlas ),
21
24
output :
22
- [expand (Path (download_dir )/ path ,hemi = config ['hemi' ]) for key ,path in config ['atlas_files' ][atlas ].items ()]
25
+ [
26
+ expand (Path (download_dir ) / path , hemi = config ["hemi" ])
27
+ for key , path in config ["atlas_files" ][atlas ].items ()
28
+ ],
23
29
shell :
24
30
"unzip {input.model_zip} -d {params.dir}"
25
31
Original file line number Diff line number Diff line change @@ -50,7 +50,8 @@ rule get_subfield_vols_subj:
50
50
hemi = config ["hemi" ],
51
51
allow_missing = True ,
52
52
),
53
- lookup_tsv = lambda wildcards : Path (download_dir ) / config ["atlas_files" ][wildcards .atlas ]["subfields_list" ]
53
+ lookup_tsv = lambda wildcards : Path (download_dir )
54
+ / config ["atlas_files" ][wildcards .atlas ]["subfields_list" ],
54
55
group :
55
56
"subj"
56
57
output :
You can’t perform that action at this time.
0 commit comments