-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSnakefile
44 lines (34 loc) · 852 Bytes
/
Snakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
from snakebids import bids, generate_inputs
configfile: 'config.yml'
# parse bids dataset with snakebids
inputs = generate_inputs(
bids_dir=config["bids_dir"],
pybids_inputs=config["pybids_inputs"],
use_bids_inputs=True,
)
rule bet:
input:
inputs.input_path['t1']
output:
bids(
root='results',
datatype='anat',
desc='brain',
suffix='T1w.nii.gz',
**inputs.input_wildcards['t1']
)
container: config['singularity']['fsl']
log:
bids(
root='logs',
suffix='bet.log',
**inputs.input_wildcards['t1']
)
shell: 'bet {input} {output}'
rule all:
input:
expand(
rules.bet.output,
zip,
**inputs.input_zip_lists['t1']
)