Skip to content

Commit e85329b

Browse files
committed
more linting
1 parent d9373c7 commit e85329b

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

hippunfold/workflow/rules/downloads.smk

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# create rules for downloading each atlas, since output files need to be specified
22
# 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}"
68
params:
79
url=config["atlas_links_url"][atlas],
810
output:
@@ -13,13 +15,17 @@ for atlas in config['atlas']:
1315
"wget https://{params.url} -O {output.model_zip}"
1416

1517
rule:
16-
name: f"unzip_download_atlas_{atlas}"
18+
name:
19+
f"unzip_download_atlas_{atlas}"
1720
input:
1821
model_zip=os.path.join(download_dir, atlas + ".zip"),
1922
params:
2023
dir=os.path.join(download_dir, atlas),
2124
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+
],
2329
shell:
2430
"unzip {input.model_zip} -d {params.dir}"
2531

hippunfold/workflow/rules/qc.smk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ rule get_subfield_vols_subj:
5050
hemi=config["hemi"],
5151
allow_missing=True,
5252
),
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"],
5455
group:
5556
"subj"
5657
output:

0 commit comments

Comments
 (0)