Skip to content

Commit 01ea5f6

Browse files
authored
refactor to use BIDSLayoutIndexer across entire pipeline (#58)
* refactor to use BIDSLayoutIndexer across project * added test for excluding subjects * added 'second' subject to test exclusions
1 parent b45bd0d commit 01ea5f6

File tree

7 files changed

+471
-26
lines changed

7 files changed

+471
-26
lines changed

data/participants.tsv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
participant_id height weight age gender
22
sub-01 178 58 28 male
3+
sub-02 178 58 28 male
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"Modality": "MR",
3+
"MagneticFieldStrength": 3,
4+
"ImagingFrequency": 123.254,
5+
"Manufacturer": "Siemens",
6+
"ManufacturersModelName": "Prisma_fit",
7+
"InstitutionName": "Rigshospitalet",
8+
"InstitutionalDepartmentName": "Rontgen",
9+
"InstitutionAddress": "Blegdamsvej 9,Kobenhavn,District,DK,DK-2100",
10+
"DeviceSerialNumber": "67006",
11+
"StationName": "MN213418",
12+
"BodyPartExamined": "HEAD",
13+
"PatientPosition": "HFS",
14+
"ProcedureStepDescription": "MR cerebrum",
15+
"SoftwareVersions": "syngo MR D13D",
16+
"MRAcquisitionType": "3D",
17+
"SeriesDescription": "t1_mpr_3d_sag_p2_iso_Siemens",
18+
"ProtocolName": "t1_mpr_3d_sag_p2_iso_Siemens",
19+
"ScanningSequence": "GR\\IR",
20+
"SequenceVariant": "SK\\SP\\MP",
21+
"ScanOptions": "IR",
22+
"SequenceName": "*tfl3d1rs16ns",
23+
"ImageType": ["ORIGINAL", "PRIMARY", "M", "NORM", "DIS3D", "DIS2D"],
24+
"SeriesNumber": 3,
25+
"AcquisitionTime": "15:31:52.362500",
26+
"AcquisitionNumber": 1,
27+
"SliceThickness": 1,
28+
"SAR": 0.0754335,
29+
"EchoTime": 0.00252,
30+
"RepetitionTime": 1.9,
31+
"InversionTime": 0.9,
32+
"FlipAngle": 9,
33+
"PartialFourier": 1,
34+
"BaseResolution": 256,
35+
"ShimSetting": [
36+
-5020,
37+
-11544,
38+
-9996,
39+
104,
40+
27,
41+
-15,
42+
-3,
43+
-8 ],
44+
"TxRefAmp": 261.958,
45+
"PhaseResolution": 1,
46+
"ReceiveCoilName": "HeadNeck_64",
47+
"ReceiveCoilActiveElements": "HC1-7;NC1,2",
48+
"PulseSequenceDetails": "%SiemensSeq%\\tfl",
49+
"RefLinesPE": 24,
50+
"ConsistencyInfo": "N4_VD13D_LATEST_20130810",
51+
"PercentPhaseFOV": 100,
52+
"PercentSampling": 100,
53+
"PhaseEncodingSteps": 255,
54+
"AcquisitionMatrixPE": 256,
55+
"ReconMatrixPE": 256,
56+
"ParallelReductionFactorInPlane": 2,
57+
"PixelBandwidth": 170,
58+
"DwellTime": 1.15e-05,
59+
"ImageOrientationPatientDICOM": [
60+
0.050593,
61+
0.998719,
62+
5.87093e-08,
63+
-0.0348548,
64+
0.00176573,
65+
-0.999391 ],
66+
"InPlanePhaseEncodingDirectionDICOM": "ROW",
67+
"ConversionSoftware": "dcm2niix",
68+
"ConversionSoftwareVersion": "v1.0.20210317"
69+
}
26 MB
Binary file not shown.
Lines changed: 235 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,235 @@
1+
{
2+
"Manufacturer": "Siemens",
3+
"ManufacturersModelName": "HR+",
4+
"Units": "Bq/mL",
5+
"BodyPart": "Brain",
6+
"TracerName": "DASB",
7+
"TracerRadionuclide": "C11",
8+
"TracerMolecularWeight": 282.39,
9+
"TracerMolecularWeightUnits": "g/mol",
10+
"InjectedRadioactivity": 629.74,
11+
"InjectedRadioactivityUnits": "MBq",
12+
"MolarActivity": 55.5,
13+
"MolarActivityUnits": "MBq/nmol",
14+
"SpecificRadioactivity": 196.53670455752683,
15+
"SpecificRadioactivityUnits": "MBq/ug",
16+
"Purity": 99,
17+
"ModeOfAdministration": "bolus",
18+
"InjectedMass": 3.2041852,
19+
"InjectedMassUnits": "ug",
20+
"AcquisitionMode": "list mode",
21+
"ImageDecayCorrected": true,
22+
"ImageDecayCorrectionTime": 0,
23+
"TimeZero": "17:28:40",
24+
"ScanStart": 0,
25+
"InjectionStart": 0,
26+
"FrameDuration": [
27+
20,
28+
20,
29+
20,
30+
60,
31+
60,
32+
60,
33+
120,
34+
120,
35+
120,
36+
300,
37+
300.066,
38+
600,
39+
600,
40+
600,
41+
600,
42+
600,
43+
600,
44+
600,
45+
600,
46+
600,
47+
600
48+
],
49+
"FrameTimesStart": [
50+
0,
51+
20,
52+
40,
53+
60,
54+
120,
55+
180,
56+
240,
57+
360,
58+
480,
59+
600,
60+
900,
61+
1200.066,
62+
1800.066,
63+
2400.066,
64+
3000.066,
65+
3600.066,
66+
4200.066,
67+
4800.066,
68+
5400.066,
69+
6000.066,
70+
6600.066
71+
],
72+
"ReconMethodParameterLabels": [
73+
"lower_threshold",
74+
"upper_threshold",
75+
"recon_zoom"
76+
],
77+
"ReconMethodParameterUnits": [
78+
"keV",
79+
"keV",
80+
"none"
81+
],
82+
"ReconMethodParameterValues": [
83+
0,
84+
650,
85+
3
86+
],
87+
"ScaleFactor": [
88+
8.548972374455843e-08,
89+
1.7544691388593492e-07,
90+
1.3221580275057931e-07,
91+
1.2703590357432404e-07,
92+
1.1155360368775291e-07,
93+
2.2050951997698576e-07,
94+
2.184752503353593e-07,
95+
1.7056818535365892e-07,
96+
1.6606901453997125e-07,
97+
1.5532630470715958e-07,
98+
2.19175134930083e-07,
99+
2.0248222654117853e-07,
100+
2.277063231304055e-07,
101+
2.425933018912474e-07,
102+
2.3802238047210267e-07,
103+
2.514642005735368e-07,
104+
2.802861729378492e-07,
105+
2.797820570776821e-07,
106+
3.5299004252919985e-07,
107+
4.6313422785715375e-07,
108+
4.904185857412813e-07
109+
],
110+
"ScatterFraction": [
111+
0,
112+
0,
113+
0,
114+
0,
115+
0,
116+
0,
117+
0,
118+
0,
119+
0,
120+
0,
121+
0,
122+
0,
123+
0,
124+
0,
125+
0,
126+
0,
127+
0,
128+
0,
129+
0,
130+
0,
131+
0
132+
],
133+
"DecayCorrectionFactor": [
134+
1.0056782960891724,
135+
1.0171427726745605,
136+
1.0287377834320068,
137+
1.0522810220718384,
138+
1.0886797904968262,
139+
1.1263376474380493,
140+
1.1851094961166382,
141+
1.2685142755508423,
142+
1.3577889204025269,
143+
1.5278561115264893,
144+
1.811025857925415,
145+
2.328737735748291,
146+
3.271937131881714,
147+
4.597157001495361,
148+
6.459125518798828,
149+
9.075239181518555,
150+
12.750947952270508,
151+
17.915414810180664,
152+
25.1716251373291,
153+
35.36678695678711,
154+
49.69125747680664
155+
],
156+
"PromptRate": [
157+
0,
158+
0,
159+
0,
160+
0,
161+
0,
162+
0,
163+
0,
164+
0,
165+
0,
166+
0,
167+
0,
168+
0,
169+
0,
170+
0,
171+
0,
172+
0,
173+
0,
174+
0,
175+
0,
176+
0,
177+
0
178+
],
179+
"RandomRate": [
180+
0,
181+
0,
182+
0,
183+
0,
184+
0,
185+
0,
186+
0,
187+
0,
188+
0,
189+
0,
190+
0,
191+
0,
192+
0,
193+
0,
194+
0,
195+
0,
196+
0,
197+
0,
198+
0,
199+
0,
200+
0
201+
],
202+
"SinglesRate": [
203+
0,
204+
0,
205+
0,
206+
0,
207+
0,
208+
0,
209+
0,
210+
0,
211+
0,
212+
0,
213+
0,
214+
0,
215+
0,
216+
0,
217+
0,
218+
0,
219+
0,
220+
0,
221+
0,
222+
0,
223+
0
224+
],
225+
"ReconMethodName": "Vendor",
226+
"ReconFilterType": [
227+
"Shepp 0.5",
228+
"All-pass 0.4"
229+
],
230+
"ReconFilterSize": [
231+
2.5,
232+
2
233+
],
234+
"AttenuationCorrection": "transmission scan"
235+
}
46.6 MB
Binary file not shown.

0 commit comments

Comments
 (0)