-
Notifications
You must be signed in to change notification settings - Fork 0
/
func_new.json
103 lines (103 loc) · 2.83 KB
/
func_new.json
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"id": "reproin_func_file",
"template": "func_file",
"where": {
"container_type": "file",
"parent_container_type": "acquisition",
"file.type": {
"$in": [
"nifti",
"NIfTI",
"source code",
"JSON"
]
},
"file.classification.Intent": {
"$in": [
"Functional"
]
},
"acquisition.label": {
"$regex": "(?!.*PhysioLog.*).*(func((-|_).+|$))"
}
},
"initialize": {
"Task": {
"acquisition.label": {
"$regex": "(^|_)task-(?P<value>.*?)(_(acq|ce|dir|echo|mod|proc|part|rec|recording|run|task)-|$|_)"
}
},
"Acq": {
"acquisition.label": {
"$regex": "(^|_)acq-(?P<value>.*?)(_(acq|ce|dir|echo|mod|proc|part|rec|recording|run|task)-|$|_)"
}
},
"Ce": {
"acquisition.label": {
"$regex": "(^|_)ce-(?P<value>.*?)(_(acq|ce|dir|echo|mod|proc|part|rec|recording|run|task)-|$|_)"
}
},
"Rec": {
"acquisition.label": {
"$regex": "(^|_)rec-(?P<value>.*?)(_(acq|ce|dir|echo|mod|proc|part|rec|recording|run|task)-|$|_)"
}
},
"Dir": {
"acquisition.label": {
"$regex": "(^|_)dir-(?P<value>.*?)(_(acq|ce|dir|echo|mod|proc|part|rec|recording|run|task)-|$|_)"
}
},
"Run": {
"acquisition.label": {
"$regex": [
"(^|_)run-(?P<value>\\d+)(_|$)",
"(^|_)run-(?P<value>[=+])(_|$)"
]
},
"$run_counter": {
"key": "func.{file.info.BIDS.Task}.{file.info.BIDS.Suffix}.{file.type}"
}
},
"Echo": {
"file.name": {
"$regex": "^.*_e(?P<value>\\d+)(\\.nii.*|\\.json)$",
"$format": [
{
"$replace": {
"$pattern": "^(\\d{1})$",
"$replacement": "0\\1"
}
}
]
}
},
"Part": {
"acquisition.label": {
"$regex": "(^|_)part-(?P<value>.*?)(_(acq|ce|dir|echo|mod|proc|part|rec|recording|run|task)-|$|_)"
}
},
"Suffix": {
"$switch": {
"$on": "acquisition.label",
"$cases": [
{
"$regex": ".*_SBRef$|.*_sbref$",
"$value": "sbref"
},
{
"$regex": ".*_cbv$",
"$value": "cbv"
},
{
"$regex": ".*_phase$",
"$value": "phase"
},
{
"$default": true,
"$value": "bold"
}
]
}
}
}
}