diff --git a/README.md b/README.md
index 9ba08bf..f73c1e0 100644
--- a/README.md
+++ b/README.md
@@ -87,34 +87,38 @@ This sorfware allow the user to Download one project into XNAT platform (--versi
An example of execution is:
```sh
-python3.5 main.py -w Project_id -i dirXNAT -o dirOutput
+python3 -m xnat2mids -i DIR_TO_SAVE -w XNAT_WEB -u USER -b BODYPART -v
```
### Options
-there are 2 funtions in this code:
- Download one project from xnat aplicatión:
- download one project from xnat aplicatión:
+arguments:
- arguments:
+ + **-w (--web) XNAT_WEB** The ULR page where XNAT is.
+ + **-i (--input) PATH** The directory where the the project will created.
+ + **-u (--user) [USER]** The username to loggin in XNAT. If not write a username, It loggin as guest.
+ + **-bp (--body-part) [BODY_PART]** Optional argument to clarify which part of the body are in the images. This argument is only used if the body part dicom tag is not found in the image.
+ + **-v (--verbose)**
- + Prefix -w --web PAGE_WEB 1) The ULR page where XNAT is.
- + Prefix -p --project [PROJECTS] 2) The project name to download
- + Prefix -i --input PATH 3) the directfory where the files
- will be downloaded
- + Prefix -u --user [USER] 4) The username to loggin in XNAT
- If not write a username, It
- loggin as guest.
+ If the xnat project is already downloaded. you can run the command by removing the -w and -u arguments.
- Convert the xnat directories of the project in MIDS format:
- arguments:
+
+## 4. During Execution
+When we execute the programme, it will ask for the xnat user (if it was not set as an argument) and the password of our user.
+
+
+Then The program will ask us which projects we want to pass to BIDS/MIDS. Just enter the numbers associated with the projects separated with space.
+
+ user: AAAAAAA
+ password:
+
+ 1) p0012023 2) p0022021 3) p0022022 4) p0022023 5) p0032021
+ 6) p0032023 7) p0042021 8) p0052021 9) p0052022 10) p0062021
+
+ Choose the project: 1 3 4
- + Prefix -i --input PATH 1) the directfory where the files will
- be downloaded
- + Prefix -o --output PATH 2) Directory where the MIDS model
- is applied.
## 4. Future Lines
diff --git a/xnat2mids/mids_conversion.py b/xnat2mids/mids_conversion.py
index a4fa8d7..27cac81 100644
--- a/xnat2mids/mids_conversion.py
+++ b/xnat2mids/mids_conversion.py
@@ -31,6 +31,7 @@
'ScanningSequence': '00180020',
'SequenceVariant': '00180021',
'ScanOptions': '00180022',
+ 'ImageType': '00080008',
'AngioFlag': '00180025',
'MagneticFieldStrength': '00180087',
'RepetitionTime': '00180080',
@@ -95,7 +96,7 @@ def create_directory_mids_v1(xnat_data_path, mids_data_path, body_part):
procedure_class_light = LightProcedure()
for subject_xnat_path in tqdm(xnat_data_path.glob('*/')):
if "_S" not in subject_xnat_path.name:continue
- num_sessions = len(list(subject_xnat_path.glob('*/')))
+ # num_sessions = len(list(subject_xnat_path.glob('*/')))
procedure_class_mr.reset_indexes()
procedure_class_light.reset_indexes()
for sessions_xnat_path in subject_xnat_path.glob('*/'):
@@ -135,7 +136,7 @@ def create_directory_mids_v1(xnat_data_path, mids_data_path, body_part):
print("---------", len(list(folder_conversion.iterdir())))
if len(list(folder_conversion.iterdir())) == 0: continue
-
+ #continue
dict_json = load_json(folder_conversion.joinpath(list(folder_conversion.glob("*.json"))[0]))
@@ -146,7 +147,10 @@ def create_directory_mids_v1(xnat_data_path, mids_data_path, body_part):
acquisition_date_time = dict_json.get("AcquisitionDateTime", "")
body_part = dict_json.get("BodyPartExamined", body_part)
acquisition_date_time_check = aquisition_date_pattern_comp.search(acquisition_date_time)
- time_values = list(int (x) for x in acquisition_date_time_check.groups())
+ try:
+ time_values = list(int (x) for x in acquisition_date_time_check.groups())
+ except AttributeError as e:
+ continue
acquisition_date_time_correct = f"\
{time_values[0]:04d}-\
{time_values[1]:02d}-\
@@ -171,7 +175,7 @@ def create_directory_mids_v1(xnat_data_path, mids_data_path, body_part):
protocol, acq, task, ce, rec, dir_, part, folder_BIDS = tagger.classification_by_min_max(json_adquisitions)
print(protocol, acq, task, ce, rec, dir_, part, folder_BIDS)
- continue
+
procedure_class_mr.control_sequences(
folder_conversion, mids_session_path, session_name, protocol, acq, dir_, folder_BIDS, body_part
)
diff --git a/xnat2mids/protocols/protocol_RM_brain.tsv b/xnat2mids/protocols/protocol_RM_brain.tsv
index 70f6ec4..20295e8 100644
--- a/xnat2mids/protocols/protocol_RM_brain.tsv
+++ b/xnat2mids/protocols/protocol_RM_brain.tsv
@@ -1,35 +1,35 @@
Protocol acq task rec ce dir part folder Manufacturer ManufacturersModelName ScanningSequence SequenceVariant ScanOptions SequenceName ImageType AngioFlag MagneticFieldStrength RepetitionTime InversionTime FlipAngle EchoTime NumberOfAverages RawImage DerivedVendorReportedEchoSpacing EffectiveEchoSpacing TotalReadoutTime
-1 FLAIR anat "[""Siemens""]" MAGNETOM Vida "[""SE"", ""SE\\IR""]" "[""SP\\SK"", ""SK\\SP\\MP""]" "[""PFP\\PFF\\CG\\RG\\FS\\PER"", ""PFP\\PFF\\FS\\PER"", ""PFP\\CG\\RG\\FS\\PER""]" [“*spcir_284ns”] "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""NORM"", ""DIS3D"", ""DIS2D"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""M"", ""NONE""], [""ORIGINAL"", ""PRIMARY"", ""M"", ""NORM"", ""DIS2D"", ""MFSPLIT""]]" N [3.0] [5.0] [1.8, 1.65] [120.0] [0.393] [-1] [-1] [-1] [-1]
-2 T2w swi mag anat "[""Siemens""]" MAGNETOM Vida "[""GR""]" "[""SK"", ""SP""]" "[""CG\\RG\\PER"", ""PER""]" [“*swi3d1r”] "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""NORM"", ""DIS2D"", ""FM"", ""FIL"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""M"", ""NORM"", ""DIS2D"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""T2"", ""STAR"", ""NONE""], [""ORIGINAL"", ""PRIMARY"", ""M"", ""NORM"", ""DIS2D"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""M"", ""SWI"", ""DIS2D"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""M"", ""SWI"", ""NORM"", ""DIS2D"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""SWI"", ""NONE""]]" N [3.0] [0.028] [-1] [15.0] [0.02] [-1] [-1] [-1] [-1]
-3 T2w swi phase anat "[""Siemens""]" MAGNETOM Vida "[""GR""]" "[""SK"", ""SP""]" "[""CG\\RG\\PER"", ""PER""]" [“*swi3d1r”] "[[""ORIGINAL"", ""PRIMARY"", ""P"", ""DIS2D"", ""MFSPLIT"", ""PHASE""], [""ORIGINAL"", ""PRIMARY"", ""T2"", ""STAR"", ""NONE"", ""PHASE""]]" N [3.0] [0.028] [-1] [15.0] [0.02] [-1] [-1] [-1] [-1]
-4 T2w anat "[""Siemens""]" MAGNETOM Vida "[""SE""]" "[""SP\\SK""]" "[""CG\\RG\\FS\\PER""]" [“*qtse2d1_15”] "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""NORM"", ""DIS2D"", ""MFSPLIT""]]" N [3.0] [4.0] [-1] [150.0] [0.078] [-1] [-1] [-1] [-1]
-5 T1w mprage anat "[""Siemens""]" MAGNETOM Vida "[""GR"", ""RM"", ""GR\\IR""]" "[""SK"", ""MTC\\SS\\OSP"", ""SK\\SP\\MP""]" "[""PFP\\CG\\RG\\PER"", ""PFP\\PER"", ""CG\\RG\\FS\\PER"", ""PFP\\CG\\RG\\FS\\PER"", ""PFP\\RG\\FS"", ""CG\\RG\\PER""]" [“*tfl3d1_16ns”] "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""NONE""], [""ORIGINAL"", ""PRIMARY"", ""M"", ""NORM"", ""DIS2D"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""M"", ""NORM"", ""DIS3D"", ""DIS2D"", ""MFSPLIT""]]" N [3.0] [2,2, 2,3] [0.968, 0.900] [8.0, 9.0] [0.00223, 0.00293] [-1] [-1] [-1] [-1]
-6 PDT2 anat "[""Siemens""]" MAGNETOM Vida "[""SE""]" "[""SP\\SK"", ""SK\\SP""]" "[""CG\\RG\\PER"", ""PER""]" [“*tse2d2_5”] "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""NONE""], [""ORIGINAL"", ""PRIMARY"", ""M"", ""NORM"", ""DIS2D"", ""MFSPLIT""]]" N [3.0] [0.0175, 0.01875, 0.0225, 4.78] [-1] [146.0, 142.0, 145.0, 131.0, 137.0, 138.0, 124.0, 135.0, 141.0, 143.0] [0.009] [-1] [-1] [-1] [-1]
-7 T1w ahead anat "[""Siemens""]" MAGNETOM Vida "[""GR"", ""EP""]" "[""FS\\PER"", ""CG\\RG\\FS\\PER""]" "[""FS\\PER"", ""CG\\RG\\FS\\PER""]" [“*fl3d1_ns”] [[“ORIGINAL”, “PRIMARY”, “M”, “NORM”, “DIS3D”, “DIS2D”, “MFSPLIT”], [“ORIGINAL”, “PRIMARY”, “M”, “NONE”], [“DERIVED”, “PRIMARY”, “MPR”, “NORM”, “DIS3D”, “DIS2D”, “MFSPLIT”], [“DERIVED”, “PRIMARY”, “MPR”, “RESAMPLED”]] N [3.0] [0.00315] [8.0] [8.0] [0.00137] [-1] [-1] [-1] [-1]
-8 asl perf "[""Siemens""]" MAGNETOM Vida "[""GR"", ""EP""]" "[""SK"", ""SK\\OSP""]" "[""FS\\PER"", ""CG\\RG\\FS\\PER""]" [“*tgse3d1_10080”, “*tgse3d1_15120”, “*tgse3d1_3968”] "[[""ORIGINAL"", ""PRIMARY"", ""ASL"", ""NONE"", ""NORM"", ""DIS3D"", ""DIS2D"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""ASL"", ""NONE""]]" N [3.0] [16.0, 36.8, 55.2, 4.6] [-1] [180.0, 160.0] [0.017,0.0219] [-1] [-1] [-1] [-1]
-9 dwi AP dwi "[""Siemens""]" MAGNETOM Vida "[""GR\\EP"", “EP”]" "[""SK"", ""SK\\SP""]" "[""CG\\RG\\FS\\PER"", ""FS\\PER""]" [“*ep_b0”] "[[""ORIGINAL"", ""PRIMARY"", ""DIFFUSION"", ""NONE"", ""ND"", ""NORM"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""DIFFUSION"", ""NONE""]]" N [3.0] [8.9] [-1] [90.0] [0.078] [-1] [0.00096] [0.00032] [0.03552]
-10 dwi b0 PA dwi "[""Siemens""]" MAGNETOM Vida "[""GR\\EP"", “EP”]" "[""SK"", ""SK\\SP""]" "[""CG\\RG\\FS\\PER"", ""FS\\PER""]" [“*ep_b0”] "[[""ORIGINAL"", ""PRIMARY"", ""DIFFUSION"", ""NONE"", ""ND"", ""NORM"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""DIFFUSION"", ""NONE""]]" N [3.0] [8.9] [-1] [90.0] [0.078] [2] FALSE [0.00072] [0.00024] [0.02664]
-11 dwi tracew AP dwi "[""Siemens""]" MAGNETOM Vida "[""GR\\EP"", “EP”]" "[""SK"", ""SK\\SP""]" "[""CG\\RG\\FS\\PER"", ""FS\\PER""]" [“*ep_b1000t”] [[“DERIVED”, “PRIMARY”, “DIFFUSION”, “TRACEW”, “ND”, “NORM”, “MFSPLIT”],[“DERIVED”, “PRIMARY”, “DIFFUSION”, “TRACEW”]] N [3.0] [8.9] [-1] [90.0] [0.078] [-1] [0.00096] [0.00032] [0.03552]
-12 dwi FA AP dwi "[""Siemens""]" MAGNETOM Vida "[""GR\\EP"", “EP”]" "[""SK"", ""SK\\SP""]" "[""CG\\RG\\FS\\PER"", ""FS\\PER""]" [“*ep_b0_1000”] [[“DERIVED”, “PRIMARY”, “DIFFUSION”, “FA”, “ND”, “NORM”, “MFSPLIT”],[“DERIVED”, “PRIMARY”, “DIFFUSION”, “FA”]] N [3.0] [8.9] [-1] [90.0] [0.078] [-1] [0.00096] [0.00032] [0.03552]
-13 dwi tensorb0 AP dwi "[""Siemens""]" MAGNETOM Vida "[""GR\\EP"", “EP”]" "[""SK"", ""SK\\SP""]" "[""CG\\RG\\FS\\PER"", ""FS\\PER""]" [“*ep_b0_1000”] [[“DERIVED”, “PRIMARY”, “DIFFUSION”, “TENSOR”, “B0”, “ND”, “NORM”, “MFSPLIT”],[“DERIVED”, “PRIMARY”, “DIFFUSION”, “TENSOR”, “B0”]] N [3.0] [8.9] [-1] [90.0] [0.078] [-1] [0.00096] [0.00032] [0.03552]
-14 dwi adc AP dwi "[""Siemens""]" MAGNETOM Vida "[""GR\\EP"", “EP”]" "[""SK"", ""SK\\SP""]" "[""CG\\RG\\FS\\PER"", ""FS\\PER""]" [“*ep_b0_1000”] [[“DERIVED”, “PRIMARY”, “DIFFUSION”, “ADC”, “ND”, “NORM”, “MFSPLIT”],[“DERIVED”, “PRIMARY”, “DIFFUSION”, “ADC”]] N [3.0] [8.9] [-1] [90.0] [0.078] [-1] [0.00096] [0.00032] [0.03552]
-15 T2starw anat "[""Siemens""]" MAGNETOM Vida "[""GR""]" "[""SK""]" "[""CG\\RG\\PER""]" [“*fl2d1r”] [[“ORIGINAL”, “PRIMARY”, “M”, “NORM”, “DIS2D”, “MFSPLIT”]] N [3.0] [0.64] [-1] [20.0] [0.02] [-1] [-1] [-1] [-1]
-16 T2w swi anat "[""Siemens""]" MAGNETOM Vida "[""GR""]" "[""SK"", ""SP""]" "[""CG\\RG\\PER"", ""PER""]" [“*swi3d1r”] [[“ORIGINAL”, “PRIMARY”, “M”, “SWI”, “NORM”, “DIS2D”, “MFSPLIT”], [“ORIGINAL”, “PRIMARY”, “SWI”, “NONE”], [“ORIGINAL”, “PRIMARY”, “M”, “SWI”, “DIS2D”, “MFSPLIT”]] N [3.0] [0.028] [-1] [15.0] [0.02] [-1] [-1] [-1] [-1]
-17 T2w mIP anat "[""Siemens""]" MAGNETOM Vida "[""GR""]" "[""SK"", ""SP""]" "[""CG\\RG\\PER"", ""PER""]" [“*swi3d1r”] [[“DERIVED”, “PRIMARY”, “MNIP”, “NORM”, “DIS2D”, “MFSPLIT”], [“DERIVED”, “PRIMARY”, “MNIP”, “ND”, “NORM”, “MFSPLIT”], [“DERIVED”, “PRIMARY”, “SWI”, “MINIMUM”], [“DERIVED”, “PRIMARY”, “MNIP”, “DIS2D”, “MFSPLIT”]] N [3.0] [0.028] [-1] [15.0] [0.02] [-1] [-1] [-1] [-1]
-12 dwi coilFA AP dwi "[""Siemens""]" MAGNETOM Vida "[""GR\\EP"", “EP”]" "[""SK"", ""SK\\SP""]" "[""CG\\RG\\FS\\PER"", ""FS\\PER""]" [“*ep_b0_1000”] [[“DERIVED”, “PRIMARY”, “DIFFUSION”, “FA”, “ND”, “NORM”, “MFSPLIT”],[“DERIVED”, “PRIMARY”, “DIFFUSION”, “FA”]] N [3.0] [8.9] [-1] [90.0] [0.078] [-1] [0.00096] [0.00032] [0.03552]
-13 bold rest func "[""Siemens""]" MAGNETOM Vida "[""GR\\EP""]" "[""SK""]" "[""CG\\RG\\FS\\PER""]" [“*epfid2d1_64”] [[“ORIGINAL”, “PRIMARY”, “M”, “ND”, “NORM”, “MFSPLIT”]] [] [4.0] [-1] [80.0] [0.06] [-1] [0.00072] [0.00036] [0.02268]
-14 bold openeyes rest func "[""Siemens""]" MAGNETOM Vida "[""GR\\EP""]" "[""SK""]" "[""CG\\RG\\FS\\PER""]" [“*epfid2d1_64”] [[“ORIGINAL”, “PRIMARY”, “M”, “ND”, “NORM”, “MFSPLIT”]] [] [2.46] [-1] [80.0] [0.03] [-1] [0.00072] [0.00036] [0.02268]
-15 T1w anat "[""Philips""]" [“Ingenia Elition X”, “Achieva”] "[""GR""]" [“MP”] [“FC”] [“”] [[“ORIGINAL”, “PRIMARY”, “M”, “FFE”, “M”, “FFE”], [“ORIGINAL”, “SECONDARY”, “M”, “FFE”, “M”, “FFE”]] N [3.0] [0.0125593, 0.0128999] [-1] [8.0] [0.007056, 0.007216] [-1] FALSE [-1] [-1] [-1]
-16 T1w mprage anat "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""GR\\IR""]" "[""SK\\SP\\MP\\OSP""]" "[""IR""]" "[""*tfl3d1_16ns""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""ND"", ""NORM"", ""FM3"", ""2"", ""FIL""], [""DERIVED"", ""SECONDARY"", ""MPR"", ""CSA MPR"", ""CSAPARALLEL"", ""M"", ""ND"", ""NORM"", ""FM3"", ""2"", ""FIL""], [""DERIVED"", ""SECONDARY"", ""CLINAPPS"", ""VV"", ""MPR""], [""DERIVED"", ""SECONDARY"", ""CLINAPPS"", ""OTHER""]]" N [1.5] [2.2, 2.2] [-1] [8.0, 8.0] [0.00266, 0.00266] [-1] [-1] [-1] [-1]
-17 FLAIR anat "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""SE\\IR"", ""GR""]" "[""SK\\SP\\MP\\OSP"", ""SP""]" "[""IR\\PFP\\FS"", “”]" "[""*spcir_242ns"", ""*fl2d1r""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""ND"", ""NORM"", ""FM3"", ""2"", ""FIL""], [""DERIVED"", ""SECONDARY"", ""CLINAPPS"", ""VV"", ""MPR""], [""DERIVED"", ""SECONDARY"", ""CLINAPPS"", ""OTHER""]]" N [1.5] [0.8, 5.0] [-1] [20.0, 120.0] [0.025, 0.334] [-1] [-1] [-1] [-1]
-18 PDT2 tse anat "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""SE""]" "[""SK\\SP\\OSP""]" [“”] "[""*tse2d2_5""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""ND"", ""NORM"", ""FM3"", ""2"", ""FIL""]]" N [1.5] [0.0175, 0.02625] [-1] [149.0, 150.0] [0.011, 0.011] [-1] [-1] [-1] [-1]
-19 T1w ahead anat "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""GR""]" "[""SP""]" "[""PFP""]" "[""*fl3d1_ns""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""ND"", ""NORM""]]" N [1.5] [0.00452, 0.00452] [-1] [8.0, 8.0] [0.00238, 0.00238] [-1] [-1] [-1] [-1]
-20 dwi AP dwi "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" [“”] [“”] [“”] [“”] N [] [] [] [] [] [] [] [] []
-21 dwi b0 PA dwi "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" [“”] [“”] [“”] [“”] N [] [] [] [] [] [] [] [] []
-22 dwi tracew AP dwi "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""EP""]" "[""SK\\SP""]" "[""PFP\\FS""]" "[""*ep_b1000t"", ""*ep_b0""]" "[[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""TRACEW"", ""ND""]]" N [1.5] [3.2, 18.9006] [90.0, 90.0] [0.089, 0.089] [-1] FALSE [0.000960003, 0.000979931] [0.000480001, 0.000489965] [0.0609602, 0.187657]
-23 dwi FA AP dwi "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""EP""]" "[""SK\\SP""]" "[""PFP\\FS""]" "[""*ep_b0_1000""]" "[[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""FA"", ""ND""]]" N [1.5] [] [90.0, 90.0] [0.085, 0.085] [-1] FALSE [0.000960003, 0.000960003] [0.000480001, 0.000480001] [0.0609602, 0.0609602]
-24 dwi tensorb0 AP dwi "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""EP""]" "[""SK\\SP""]" "[""PFP\\FS""]" "[""*ep_calc_b1500""]" "[[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""CALC"", ""BVALUE"", ""TRACEW"", ""ND""]]" N [1.5] [6.3, 6.3] [90.0, 90.0] [0.089, 0.089] [-1] FALSE [0.000979931, 0.000979931] [0.000489965, 0.000489965] [0.187657, 0.187657]
-25 dwi adc AP dwi "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""EP""]" "[""SK\\SP""]" "[""PFP\\FS""]" "[""*ep_b0_1000""]" "[[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""ADC"", ""ND""]]" N [1.5] [3.2, 6.3] [90.0, 90.0] [0.085, 0.089] [-1] FALSE [0.000960003, 0.000979931] [0.000480001, 0.000489965] [0.0609602, 0.187657]
-26 dwi coilFA AP dwi "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" [“”] [“”] [“”] [“”] [“”] [“”] [] [] [] [] [] [-1] FALSE [0.000960003, 0.000960003] [0.000480001, 0.000480001] [0.0609602, 0.0609602]
-27 dwi moco AP dwi "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""EP""]" "[""SK""]" "[""PFP\\FS""]" "[""*epfid2d1_64""]" "[[""ORIGINAL"", ""PRIMARY"", ""FMRI"", ""NONE"", ""ND"", ""MOSAIC""]]" N [1.5] [4.0, 4.0] [90.0, 90.0] [0.05, 0.05] [-1] [0.000489996, 0.000489996] [0.000244998, 0.000244998] [0.0154349, 0.0154349]
-28 dwi mddw AP dwi "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""EP""]" "[""SK""]" "[""FS""]" "[""*ep_b0""]" "[[""ORIGINAL"", ""PRIMARY"", ""DIFFUSION"", ""NONE"", ""ND"", ""MOSAIC""]]" N [1.5] [3.2, 3.2] [90.0, 90.0] [0.085, 0.085] [-1] [0.000960003, 0.000960003] [0.000480001, 0.000480001] [0.0609602, 0.0609602]
+1 FLAIR anat "[""Siemens""]" MAGNETOM Vida "[""SE"", ""SE\\IR""]" "[""SP\\SK"", ""SK\\SP\\MP""]" "[""PFP\\PFF\\CG\\RG\\FS\\PER"", ""PFP\\PFF\\FS\\PER"", ""PFP\\CG\\RG\\FS\\PER""]" "[""*spcir_284ns""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""NORM"", ""DIS3D"", ""DIS2D"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""M"", ""NONE""], [""ORIGINAL"", ""PRIMARY"", ""M"", ""NORM"", ""DIS2D"", ""MFSPLIT""]]" N [3.0] [5.0] [1.8, 1.65] [120.0] [0.393] [-1] [-1] [-1] [-1]
+2 T2w swi mag anat "[""Siemens""]" MAGNETOM Vida "[""GR""]" "[""SK"", ""SP""]" "[""CG\\RG\\PER"", ""PER""]" "[""*swi3d1r""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""NORM"", ""DIS2D"", ""FM"", ""FIL"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""M"", ""NORM"", ""DIS2D"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""T2"", ""STAR"", ""NONE""], [""ORIGINAL"", ""PRIMARY"", ""M"", ""NORM"", ""DIS2D"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""M"", ""SWI"", ""DIS2D"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""M"", ""SWI"", ""NORM"", ""DIS2D"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""SWI"", ""NONE""]]" N [3.0] [0.028] [-1] [15.0] [0.02] [-1] [-1] [-1] [-1]
+3 T2w swi phase anat "[""Siemens""]" MAGNETOM Vida "[""GR""]" "[""SK"", ""SP""]" "[""CG\\RG\\PER"", ""PER""]" "[""*swi3d1r""]" "[[""ORIGINAL"", ""PRIMARY"", ""P"", ""DIS2D"", ""MFSPLIT"", ""PHASE""], [""ORIGINAL"", ""PRIMARY"", ""T2"", ""STAR"", ""NONE"", ""PHASE""]]" N [3.0] [0.028] [-1] [15.0] [0.02] [-1] [-1] [-1] [-1]
+4 T2w anat "[""Siemens""]" MAGNETOM Vida "[""SE""]" "[""SP\\SK""]" "[""CG\\RG\\FS\\PER""]" "[""*qtse2d1_15""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""NORM"", ""DIS2D"", ""MFSPLIT""]]" N [3.0] [4.0] [-1] [150.0] [0.078] [-1] [-1] [-1] [-1]
+5 T1w mprage anat "[""Siemens""]" MAGNETOM Vida "[""GR"", ""RM"", ""GR\\IR""]" "[""SK"", ""MTC\\SS\\OSP"", ""SK\\SP\\MP""]" "[""PFP\\CG\\RG\\PER"", ""PFP\\PER"", ""CG\\RG\\FS\\PER"", ""PFP\\CG\\RG\\FS\\PER"", ""PFP\\RG\\FS"", ""CG\\RG\\PER""]" "[""*tfl3d1_16ns""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""NONE""], [""ORIGINAL"", ""PRIMARY"", ""M"", ""NORM"", ""DIS2D"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""M"", ""NORM"", ""DIS3D"", ""DIS2D"", ""MFSPLIT""]]" N [3.0] [2,2, 2,3] [0.968, 0.900] [8.0, 9.0] [0.00223, 0.00293] [-1] [-1] [-1] [-1]
+6 PDT2 anat "[""Siemens""]" MAGNETOM Vida "[""SE""]" "[""SP\\SK"", ""SK\\SP""]" "[""CG\\RG\\PER"", ""PER""]" "[""*tse2d2_5""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""NONE""], [""ORIGINAL"", ""PRIMARY"", ""M"", ""NORM"", ""DIS2D"", ""MFSPLIT""]]" N [3.0] [0.0175, 0.01875, 0.0225, 4.78] [-1] [146.0, 142.0, 145.0, 131.0, 137.0, 138.0, 124.0, 135.0, 141.0, 143.0] [0.009] [-1] [-1] [-1] [-1]
+7 T1w ahead anat "[""Siemens""]" MAGNETOM Vida "[""GR"", ""EP""]" "[""FS\\PER"", ""CG\\RG\\FS\\PER""]" "[""FS\\PER"", ""CG\\RG\\FS\\PER""]" "[""*fl3d1_ns""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""NORM"", ""DIS3D"", ""DIS2D"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""M"", ""NONE""], [""DERIVED"", ""PRIMARY"", ""MPR"", ""NORM"", ""DIS3D"", ""DIS2D"", ""MFSPLIT""], [""DERIVED"", ""PRIMARY"", ""MPR"", ""RESAMPLED""]]" N [3.0] [0.00315] [8.0] [8.0] [0.00137] [-1] [-1] [-1] [-1]
+8 asl perf "[""Siemens""]" MAGNETOM Vida "[""GR"", ""EP""]" "[""SK"", ""SK\\OSP""]" "[""FS\\PER"", ""CG\\RG\\FS\\PER""]" "[""*tgse3d1_10080"", ""*tgse3d1_15120"", ""*tgse3d1_3968""]" "[[""ORIGINAL"", ""PRIMARY"", ""ASL"", ""NONE"", ""NORM"", ""DIS3D"", ""DIS2D"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""ASL"", ""NONE""]]" N [3.0] [16.0, 36.8, 55.2, 4.6] [-1] [180.0, 160.0] [0.017,0.0219] [-1] [-1] [-1] [-1]
+9 dwi AP dwi "[""Siemens""]" MAGNETOM Vida "[""GR\\EP"", ""EP""]" "[""SK"", ""SK\\SP""]" "[""CG\\RG\\FS\\PER"", ""FS\\PER""]" "[""*ep_b0""]" "[[""ORIGINAL"", ""PRIMARY"", ""DIFFUSION"", ""NONE"", ""ND"", ""NORM"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""DIFFUSION"", ""NONE""]]" N [3.0] [8.9] [-1] [90.0] [0.078] [-1] [0.00096] [0.00032] [0.03552]
+10 dwi b0 PA dwi "[""Siemens""]" MAGNETOM Vida "[""GR\\EP"", ""EP""]" "[""SK"", ""SK\\SP""]" "[""CG\\RG\\FS\\PER"", ""FS\\PER""]" "[""*ep_b0""]" "[[""ORIGINAL"", ""PRIMARY"", ""DIFFUSION"", ""NONE"", ""ND"", ""NORM"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""DIFFUSION"", ""NONE""]]" N [3.0] [8.9] [-1] [90.0] [0.078] [2] FALSE [0.00072] [0.00024] [0.02664]
+11 dwi tracew AP dwi "[""Siemens""]" MAGNETOM Vida "[""GR\\EP"", ""EP""]" "[""SK"", ""SK\\SP""]" "[""CG\\RG\\FS\\PER"", ""FS\\PER""]" "[""*ep_b1000t""]" "[[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""TRACEW"", ""ND"", ""NORM"", ""MFSPLIT""],[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""TRACEW""]]" N [3.0] [8.9] [-1] [90.0] [0.078] [-1] [0.00096] [0.00032] [0.03552]
+12 dwi FA AP dwi "[""Siemens""]" MAGNETOM Vida "[""GR\\EP"", ""EP""]" "[""SK"", ""SK\\SP""]" "[""CG\\RG\\FS\\PER"", ""FS\\PER""]" "[""*ep_b0_1000""]" "[[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""FA"", ""ND"", ""NORM"", ""MFSPLIT""],[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""FA""]]" N [3.0] [8.9] [-1] [90.0] [0.078] [-1] [0.00096] [0.00032] [0.03552]
+13 dwi tensorb0 AP dwi "[""Siemens""]" MAGNETOM Vida "[""GR\\EP"", ""EP""]" "[""SK"", ""SK\\SP""]" "[""CG\\RG\\FS\\PER"", ""FS\\PER""]" "[""*ep_b0_1000""]" "[[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""TENSOR"", ""B0"", ""ND"", ""NORM"", ""MFSPLIT""],[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""TENSOR"", ""B0""]]" N [3.0] [8.9] [-1] [90.0] [0.078] [-1] [0.00096] [0.00032] [0.03552]
+14 dwi adc AP dwi "[""Siemens""]" MAGNETOM Vida "[""GR\\EP"", ""EP""]" "[""SK"", ""SK\\SP""]" "[""CG\\RG\\FS\\PER"", ""FS\\PER""]" "[""*ep_b0_1000""]" "[[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""ADC"", ""ND"", ""NORM"", ""MFSPLIT""],[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""ADC""]]" N [3.0] [8.9] [-1] [90.0] [0.078] [-1] [0.00096] [0.00032] [0.03552]
+15 T2starw anat "[""Siemens""]" MAGNETOM Vida "[""GR""]" "[""SK""]" "[""CG\\RG\\PER""]" "[""*fl2d1r""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""NORM"", ""DIS2D"", ""MFSPLIT""]]" N [3.0] [0.64] [-1] [20.0] [0.02] [-1] [-1] [-1] [-1]
+16 T2w swi anat "[""Siemens""]" MAGNETOM Vida "[""GR""]" "[""SK"", ""SP""]" "[""CG\\RG\\PER"", ""PER""]" "[""*swi3d1r""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""SWI"", ""NORM"", ""DIS2D"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""SWI"", ""NONE""], [""ORIGINAL"", ""PRIMARY"", ""M"", ""SWI"", ""DIS2D"", ""MFSPLIT""]]" N [3.0] [0.028] [-1] [15.0] [0.02] [-1] [-1] [-1] [-1]
+17 T2w mIP anat "[""Siemens""]" MAGNETOM Vida "[""GR""]" "[""SK"", ""SP""]" "[""CG\\RG\\PER"", ""PER""]" "[""*swi3d1r""]" "[[""DERIVED"", ""PRIMARY"", ""MNIP"", ""NORM"", ""DIS2D"", ""MFSPLIT""], [""DERIVED"", ""PRIMARY"", ""MNIP"", ""ND"", ""NORM"", ""MFSPLIT""], [""DERIVED"", ""PRIMARY"", ""SWI"", ""MINIMUM""], [""DERIVED"", ""PRIMARY"", ""MNIP"", ""DIS2D"", ""MFSPLIT""]]" N [3.0] [0.028] [-1] [15.0] [0.02] [-1] [-1] [-1] [-1]
+12 dwi coilFA AP dwi "[""Siemens""]" MAGNETOM Vida "[""GR\\EP"", ""EP""]" "[""SK"", ""SK\\SP""]" "[""CG\\RG\\FS\\PER"", ""FS\\PER""]" "[""*ep_b0_1000""]" "[[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""FA"", ""ND"", ""NORM"", ""MFSPLIT""],[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""FA""]]" N [3.0] [8.9] [-1] [90.0] [0.078] [-1] [0.00096] [0.00032] [0.03552]
+13 bold rest func "[""Siemens""]" MAGNETOM Vida "[""GR\\EP""]" "[""SK""]" "[""CG\\RG\\FS\\PER""]" "[""*epfid2d1_64""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""ND"", ""NORM"", ""MFSPLIT""]]" [-1] [4.0] [-1] [80.0] [0.06] [-1] [0.00072] [0.00036] [0.02268]
+14 bold openeyes rest func "[""Siemens""]" MAGNETOM Vida "[""GR\\EP""]" "[""SK""]" "[""CG\\RG\\FS\\PER""]" "[""*epfid2d1_64""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""ND"", ""NORM"", ""MFSPLIT""]]" [-1] [2.46] [-1] [80.0] [0.03] [-1] [0.00072] [0.00036] [0.02268]
+15 T1w anat "[""Philips""]" "[“Ingenia Elition X”, ""Achieva""]" "[""GR""]" "[""MP""]" "[""FC""]" "[""""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""FFE"", ""M"", ""FFE""], [""ORIGINAL"", ""SECONDARY"", ""M"", ""FFE"", ""M"", ""FFE""]]" N [3.0] [0.0125593, 0.0128999] [-1] [8.0] [0.007056, 0.007216] [-1] FALSE [-1] [-1] [-1]
+16 T1w mprage anat "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""GR\\IR"", -1]" "[""SK\\SP\\MP\\OSP"", -1]" "[""IR"", -1]" "[""*tfl3d1_16ns""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""ND"", ""NORM"", ""FM3"", ""2"", ""FIL""], [""DERIVED"", ""SECONDARY"", ""MPR"", ""CSA MPR"", ""CSAPARALLEL"", ""M"", ""ND"", ""NORM"", ""FM3"", ""2"", ""FIL""], [""DERIVED"", ""SECONDARY"", ""CLINAPPS"", ""VV"", ""MPR""], [""DERIVED"", ""SECONDARY"", ""CLINAPPS"", ""OTHER""], [""DERIVED"", ""SECONDARY"", ""MPR THICK"", ""SIEMENS"", ""APR""]]" N [1.5] [2.2, 2.2] [-1] [8.0, 8.0] [0.00266, 0.00266] [-1] [-1] [-1] [-1]
+17 FLAIR anat "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""SE\\IR"", ""GR""]" "[""SK\\SP\\MP\\OSP"", ""SP""]" "[""IR\\PFP\\FS"", -1]" "[""*spcir_242ns"", ""*fl2d1r""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""ND"", ""NORM"", ""FM3"", ""2"", ""FIL""], [""DERIVED"", ""SECONDARY"", ""CLINAPPS"", ""VV"", ""MPR""], [""DERIVED"", ""SECONDARY"", ""CLINAPPS"", ""OTHER""], [""DERIVED"", ""SECONDARY"", ""MPR"", ""CSA MPR"", ""CSAPARALLEL"", ""M"", ""ND"", ""NORM"", ""FM3"", ""2"", ""FIL""]]" N [1.5] [0.8, 5.0] [-1] [20.0, 120.0] [0.025, 0.334] [-1] [-1] [-1] [-1]
+18 PDT2 tse anat "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""SE""]" "[""SK\\SP\\OSP""]" "[-1]" "[""*tse2d2_5""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""ND"", ""NORM"", ""FM3"", ""2"", ""FIL""]]" N [1.5] [0.0175, 0.02625] [-1] [149.0, 150.0] [0.011, 0.011] [-1] [-1] [-1] [-1]
+19 T1w ahead anat "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""GR""]" "[""SP""]" "[""PFP""]" "[""*fl3d1_ns""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""ND"", ""NORM""], [""ORIGINAL"", ""PRIMARY"", ""MPR"", ""ND"", ""NORM""]]" N [1.5] [0.00452, 0.00452] [-1] [8.0, 8.0] [0.00238, 0.00238] [-1] [-1] [-1] [-1]
+20 dwi AP dwi "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""""]" "[""""]" "[""""]" "[""""]" N [-1] [-1] [-1] [-1] [-1] [-1] [-1] [-1] [-1]
+21 dwi b0 PA dwi "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""""]" "[""""]" "[""""]" "[""""]" N [-1] [-1] [-1] [-1] [-1] [-1] [-1] [-1] [-1]
+22 dwi tracew AP dwi "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""EP""]" "[""SK\\SP""]" "[""PFP\\FS""]" "[""*ep_b1000t"", ""*ep_b0""]" "[[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""TRACEW"", ""ND""]]" N [1.5] [3.2, 18.9006] [-1] [90.0, 90.0] [0.089, 0.089] [-1] FALSE [0.000960003, 0.000979931] [0.000480001, 0.000489965] [0.0609602, 0.187657]
+23 dwi FA AP dwi "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""EP""]" "[""SK\\SP""]" "[""PFP\\FS""]" "[""*ep_b0_1000""]" "[[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""FA"", ""ND""]]" N [1.5] [-1] [-1] [90.0, 90.0] [0.085, 0.085] [-1] FALSE [0.000960003, 0.000960003] [0.000480001, 0.000480001] [0.0609602, 0.0609602]
+24 dwi tensorb0 AP dwi "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""EP""]" "[""SK\\SP""]" "[""PFP\\FS""]" "[""*ep_calc_b1500""]" "[[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""CALC"", ""BVALUE"", ""TRACEW"", ""ND""]]" N [1.5] [6.3, 6.3] [-1] [90.0, 90.0] [0.089, 0.089] [-1] FALSE [0.000979931, 0.000979931] [0.000489965, 0.000489965] [0.187657, 0.187657]
+25 dwi adc AP dwi "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""EP""]" "[""SK\\SP""]" "[""PFP\\FS""]" "[""*ep_b0_1000""]" "[[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""ADC"", ""ND""]]" N [1.5] [3.2, 6.3] [-1] [90.0, 90.0] [0.085, 0.089] [-1] FALSE [0.000960003, 0.000979931] [0.000480001, 0.000489965] [0.0609602, 0.187657]
+26 dwi coilFA AP dwi "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" [-1] [-1] [-1] "[""""]" "[[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""FA"", ""ND""]]" "[""""]" [-1] [-1] [-1] [-1] [-1] [-1] FALSE [0.000960003, 0.000960003] [0.000480001, 0.000480001] [0.0609602, 0.0609602]
+27 dwi moco AP dwi "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""EP""]" "[""SK""]" "[""PFP\\FS"", ""FS""]" "[""*epfid2d1_64""]" "[[""ORIGINAL"", ""PRIMARY"", ""FMRI"", ""NONE"", ""ND"", ""MOSAIC""], [""DERIVED"", ""PRIMARY"", ""FMRI"", ""DESIGN"", ""ND"", ""MOCO""], [""DERIVED"", ""PRIMARY"", ""FMRI"", ""ND"", ""MOCO"", ""MOSAIC""], [""DERIVED"", ""PRIMARY"", ""FMRI"", ""ND"", ""MOCO"", ""MOSAIC"", ""MEAN""], [""DERIVED"", ""PRIMARY"", ""FMRI"", ""ND"", ""MOCO"", ""MOSAIC"", ""GLM""], [""DERIVED"", ""PRIMARY"", ""FMRI"", ""TTEST"", ""ND"", ""MOCO"", ""MOSAIC"", ""GLM""]]" N [1.5] [4.0, 4.0] [-1] [90.0, 90.0] [0.05, 0.05] [-1] [0.000489996, 0.000489996] [0.000244998, 0.000244998] [0.0154349, 0.0154349]
+28 dwi mddw AP dwi "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""EP""]" "[""SK\\SP"", ""SK""]" "[""PFP\\FS"",""FS""]" "[""*ep_b0""]" "[[""ORIGINAL"", ""PRIMARY"", ""DIFFUSION"", ""NONE"", ""ND"", ""MOSAIC""]]" N [1.5] [3.2, 3.2] [-1] [90.0, 90.0] [0.085, 0.085] [-1] [0.000960003, 0.000960003] [0.000480001, 0.000480001] [0.0609602, 0.0609602]
diff --git a/xnat2mids/protocols/protocol_RM_brain_1.tsv b/xnat2mids/protocols/protocol_RM_brain_1.tsv
new file mode 100644
index 0000000..155ed41
--- /dev/null
+++ b/xnat2mids/protocols/protocol_RM_brain_1.tsv
@@ -0,0 +1,35 @@
+ Protocol acq task rec ce dir part folder Manufacturer ManufacturersModelName ScanningSequence SequenceVariant ScanOptions SequenceName ImageType AngioFlag MagneticFieldStrength RepetitionTime InversionTime FlipAngle EchoTime NumberOfAverages RawImage DerivedVendorReportedEchoSpacing EffectiveEchoSpacing TotalReadoutTime
+1 FLAIR anat "[""Siemens""]" MAGNETOM Vida "[""SE"", ""SE\\IR""]" "[""SP\\SK"", ""SK\\SP\\MP""]" "[""PFP\\PFF\\CG\\RG\\FS\\PER"", ""PFP\\PFF\\FS\\PER"", ""PFP\\CG\\RG\\FS\\PER""]" "[""*spcir_284ns""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""NORM"", ""DIS3D"", ""DIS2D"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""M"", ""NONE""], [""ORIGINAL"", ""PRIMARY"", ""M"", ""NORM"", ""DIS2D"", ""MFSPLIT""]]" N [3.0] [5.0] [1.8, 1.65] [120.0] [0.393] [-1] [-1] [-1] [-1]
+2 T2w swi mag anat "[""Siemens""]" MAGNETOM Vida "[""GR""]" "[""SK"", ""SP""]" "[""CG\\RG\\PER"", ""PER""]" "[""*swi3d1r""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""NORM"", ""DIS2D"", ""FM"", ""FIL"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""M"", ""NORM"", ""DIS2D"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""T2"", ""STAR"", ""NONE""], [""ORIGINAL"", ""PRIMARY"", ""M"", ""NORM"", ""DIS2D"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""M"", ""SWI"", ""DIS2D"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""M"", ""SWI"", ""NORM"", ""DIS2D"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""SWI"", ""NONE""]]" N [3.0] [0.028] [-1] [15.0] [0.02] [-1] [-1] [-1] [-1]
+3 T2w swi phase anat "[""Siemens""]" MAGNETOM Vida "[""GR""]" "[""SK"", ""SP""]" "[""CG\\RG\\PER"", ""PER""]" "[""*swi3d1r""]" "[[""ORIGINAL"", ""PRIMARY"", ""P"", ""DIS2D"", ""MFSPLIT"", ""PHASE""], [""ORIGINAL"", ""PRIMARY"", ""T2"", ""STAR"", ""NONE"", ""PHASE""]]" N [3.0] [0.028] [-1] [15.0] [0.02] [-1] [-1] [-1] [-1]
+4 T2w anat "[""Siemens""]" MAGNETOM Vida "[""SE""]" "[""SP\\SK""]" "[""CG\\RG\\FS\\PER""]" "[""*qtse2d1_15""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""NORM"", ""DIS2D"", ""MFSPLIT""]]" N [3.0] [4.0] [-1] [150.0] [0.078] [-1] [-1] [-1] [-1]
+5 T1w mprage anat "[""Siemens""]" MAGNETOM Vida "[""GR"", ""RM"", ""GR\\IR""]" "[""SK"", ""MTC\\SS\\OSP"", ""SK\\SP\\MP""]" "[""PFP\\CG\\RG\\PER"", ""PFP\\PER"", ""CG\\RG\\FS\\PER"", ""PFP\\CG\\RG\\FS\\PER"", ""PFP\\RG\\FS"", ""CG\\RG\\PER""]" "[""*tfl3d1_16ns""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""NONE""], [""ORIGINAL"", ""PRIMARY"", ""M"", ""NORM"", ""DIS2D"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""M"", ""NORM"", ""DIS3D"", ""DIS2D"", ""MFSPLIT""]]" N [3.0] [2,2, 2,3] [0.968, 0.900] [8.0, 9.0] [0.00223, 0.00293] [-1] [-1] [-1] [-1]
+6 PDT2 anat "[""Siemens""]" MAGNETOM Vida "[""SE""]" "[""SP\\SK"", ""SK\\SP""]" "[""CG\\RG\\PER"", ""PER""]" "[""*tse2d2_5""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""NONE""], [""ORIGINAL"", ""PRIMARY"", ""M"", ""NORM"", ""DIS2D"", ""MFSPLIT""]]" N [3.0] [0.0175, 0.01875, 0.0225, 4.78] [-1] [146.0, 142.0, 145.0, 131.0, 137.0, 138.0, 124.0, 135.0, 141.0, 143.0] [0.009] [-1] [-1] [-1] [-1]
+7 T1w ahead anat "[""Siemens""]" MAGNETOM Vida "[""GR"", ""EP""]" "[""FS\\PER"", ""CG\\RG\\FS\\PER""]" "[""FS\\PER"", ""CG\\RG\\FS\\PER""]" "[""*fl3d1_ns""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""NORM"", ""DIS3D"", ""DIS2D"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""M"", ""NONE""], [""DERIVED"", ""PRIMARY"", ""MPR"", ""NORM"", ""DIS3D"", ""DIS2D"", ""MFSPLIT""], [""DERIVED"", ""PRIMARY"", ""MPR"", ""RESAMPLED""]]" N [3.0] [0.00315] [8.0] [8.0] [0.00137] [-1] [-1] [-1] [-1]
+8 asl perf "[""Siemens""]" MAGNETOM Vida "[""GR"", ""EP""]" "[""SK"", ""SK\\OSP""]" "[""FS\\PER"", ""CG\\RG\\FS\\PER""]" "[""*tgse3d1_10080"", ""*tgse3d1_15120"", ""*tgse3d1_3968""]" "[[""ORIGINAL"", ""PRIMARY"", ""ASL"", ""NONE"", ""NORM"", ""DIS3D"", ""DIS2D"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""ASL"", ""NONE""]]" N [3.0] [16.0, 36.8, 55.2, 4.6] [-1] [180.0, 160.0] [0.017,0.0219] [-1] [-1] [-1] [-1]
+9 dwi AP dwi "[""Siemens""]" MAGNETOM Vida "[""GR\\EP"", ""EP""]" "[""SK"", ""SK\\SP""]" "[""CG\\RG\\FS\\PER"", ""FS\\PER""]" "[""*ep_b0""]" "[[""ORIGINAL"", ""PRIMARY"", ""DIFFUSION"", ""NONE"", ""ND"", ""NORM"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""DIFFUSION"", ""NONE""]]" N [3.0] [8.9] [-1] [90.0] [0.078] [-1] [0.00096] [0.00032] [0.03552]
+10 dwi b0 PA dwi "[""Siemens""]" MAGNETOM Vida "[""GR\\EP"", ""EP""]" "[""SK"", ""SK\\SP""]" "[""CG\\RG\\FS\\PER"", ""FS\\PER""]" "[""*ep_b0""]" "[[""ORIGINAL"", ""PRIMARY"", ""DIFFUSION"", ""NONE"", ""ND"", ""NORM"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""DIFFUSION"", ""NONE""]]" N [3.0] [8.9] [-1] [90.0] [0.078] [2] FALSE [0.00072] [0.00024] [0.02664]
+11 dwi tracew AP dwi "[""Siemens""]" MAGNETOM Vida "[""GR\\EP"", ""EP""]" "[""SK"", ""SK\\SP""]" "[""CG\\RG\\FS\\PER"", ""FS\\PER""]" "[""*ep_b1000t""]" "[[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""TRACEW"", ""ND"", ""NORM"", ""MFSPLIT""],[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""TRACEW""]]" N [3.0] [8.9] [-1] [90.0] [0.078] [-1] [0.00096] [0.00032] [0.03552]
+12 dwi FA AP dwi "[""Siemens""]" MAGNETOM Vida "[""GR\\EP"", ""EP""]" "[""SK"", ""SK\\SP""]" "[""CG\\RG\\FS\\PER"", ""FS\\PER""]" "[""*ep_b0_1000""]" "[[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""FA"", ""ND"", ""NORM"", ""MFSPLIT""],[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""FA""]]" N [3.0] [8.9] [-1] [90.0] [0.078] [-1] [0.00096] [0.00032] [0.03552]
+13 dwi tensorb0 AP dwi "[""Siemens""]" MAGNETOM Vida "[""GR\\EP"", ""EP""]" "[""SK"", ""SK\\SP""]" "[""CG\\RG\\FS\\PER"", ""FS\\PER""]" "[""*ep_b0_1000""]" "[[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""TENSOR"", ""B0"", ""ND"", ""NORM"", ""MFSPLIT""],[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""TENSOR"", ""B0""]]" N [3.0] [8.9] [-1] [90.0] [0.078] [-1] [0.00096] [0.00032] [0.03552]
+14 dwi adc AP dwi "[""Siemens""]" MAGNETOM Vida "[""GR\\EP"", ""EP""]" "[""SK"", ""SK\\SP""]" "[""CG\\RG\\FS\\PER"", ""FS\\PER""]" "[""*ep_b0_1000""]" "[[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""ADC"", ""ND"", ""NORM"", ""MFSPLIT""],[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""ADC""]]" N [3.0] [8.9] [-1] [90.0] [0.078] [-1] [0.00096] [0.00032] [0.03552]
+15 T2starw anat "[""Siemens""]" MAGNETOM Vida "[""GR""]" "[""SK""]" "[""CG\\RG\\PER""]" "[""*fl2d1r""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""NORM"", ""DIS2D"", ""MFSPLIT""]]" N [3.0] [0.64] [-1] [20.0] [0.02] [-1] [-1] [-1] [-1]
+16 T2w swi anat "[""Siemens""]" MAGNETOM Vida "[""GR""]" "[""SK"", ""SP""]" "[""CG\\RG\\PER"", ""PER""]" "[""*swi3d1r""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""SWI"", ""NORM"", ""DIS2D"", ""MFSPLIT""], [""ORIGINAL"", ""PRIMARY"", ""SWI"", ""NONE""], [""ORIGINAL"", ""PRIMARY"", ""M"", ""SWI"", ""DIS2D"", ""MFSPLIT""]]" N [3.0] [0.028] [-1] [15.0] [0.02] [-1] [-1] [-1] [-1]
+17 T2w mIP anat "[""Siemens""]" MAGNETOM Vida "[""GR""]" "[""SK"", ""SP""]" "[""CG\\RG\\PER"", ""PER""]" "[""*swi3d1r""]" "[[""DERIVED"", ""PRIMARY"", ""MNIP"", ""NORM"", ""DIS2D"", ""MFSPLIT""], [""DERIVED"", ""PRIMARY"", ""MNIP"", ""ND"", ""NORM"", ""MFSPLIT""], [""DERIVED"", ""PRIMARY"", ""SWI"", ""MINIMUM""], [""DERIVED"", ""PRIMARY"", ""MNIP"", ""DIS2D"", ""MFSPLIT""]]" N [3.0] [0.028] [-1] [15.0] [0.02] [-1] [-1] [-1] [-1]
+12 dwi coilFA AP dwi "[""Siemens""]" MAGNETOM Vida "[""GR\\EP"", ""EP""]" "[""SK"", ""SK\\SP""]" "[""CG\\RG\\FS\\PER"", ""FS\\PER""]" "[""*ep_b0_1000""]" "[[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""FA"", ""ND"", ""NORM"", ""MFSPLIT""],[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""FA""]]" N [3.0] [8.9] [-1] [90.0] [0.078] [-1] [0.00096] [0.00032] [0.03552]
+13 bold rest func "[""Siemens""]" MAGNETOM Vida "[""GR\\EP""]" "[""SK""]" "[""CG\\RG\\FS\\PER""]" "[""*epfid2d1_64""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""ND"", ""NORM"", ""MFSPLIT""]]" [] [4.0] [-1] [80.0] [0.06] [-1] [0.00072] [0.00036] [0.02268]
+14 bold openeyes rest func "[""Siemens""]" MAGNETOM Vida "[""GR\\EP""]" "[""SK""]" "[""CG\\RG\\FS\\PER""]" "[""*epfid2d1_64""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""ND"", ""NORM"", ""MFSPLIT""]]" [] [2.46] [-1] [80.0] [0.03] [-1] [0.00072] [0.00036] [0.02268]
+15 T1w anat "[""Philips""]" "[“Ingenia Elition X”, ""Achieva""]" "[""GR""]" "[""MP""]" "[""FC""]" "[""""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""FFE"", ""M"", ""FFE""], [""ORIGINAL"", ""SECONDARY"", ""M"", ""FFE"", ""M"", ""FFE""]]" N [3.0] [0.0125593, 0.0128999] [-1] [8.0] [0.007056, 0.007216] [-1] FALSE [-1] [-1] [-1]
+16 T1w mprage anat "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""GR\\IR""]" "[""SK\\SP\\MP\\OSP""]" "[""IR""]" "[""*tfl3d1_16ns""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""ND"", ""NORM"", ""FM3"", ""2"", ""FIL""], [""DERIVED"", ""SECONDARY"", ""MPR"", ""CSA MPR"", ""CSAPARALLEL"", ""M"", ""ND"", ""NORM"", ""FM3"", ""2"", ""FIL""], [""DERIVED"", ""SECONDARY"", ""CLINAPPS"", ""VV"", ""MPR""], [""DERIVED"", ""SECONDARY"", ""CLINAPPS"", ""OTHER""]]" N [1.5] [2.2, 2.2] [-1] [8.0, 8.0] [0.00266, 0.00266] [-1] [-1] [-1] [-1]
+17 FLAIR anat "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""SE\\IR"", ""GR""]" "[""SK\\SP\\MP\\OSP"", ""SP""]" "[""IR\\PFP\\FS"", """"]" "[""*spcir_242ns"", ""*fl2d1r""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""ND"", ""NORM"", ""FM3"", ""2"", ""FIL""], [""DERIVED"", ""SECONDARY"", ""CLINAPPS"", ""VV"", ""MPR""], [""DERIVED"", ""SECONDARY"", ""CLINAPPS"", ""OTHER""]]" N [1.5] [0.8, 5.0] [-1] [20.0, 120.0] [0.025, 0.334] [-1] [-1] [-1] [-1]
+18 PDT2 tse anat "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""SE""]" "[""SK\\SP\\OSP""]" "[""""]" "[""*tse2d2_5""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""ND"", ""NORM"", ""FM3"", ""2"", ""FIL""]]" N [1.5] [0.0175, 0.02625] [-1] [149.0, 150.0] [0.011, 0.011] [-1] [-1] [-1] [-1]
+19 T1w ahead anat "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""GR""]" "[""SP""]" "[""PFP""]" "[""*fl3d1_ns""]" "[[""ORIGINAL"", ""PRIMARY"", ""M"", ""ND"", ""NORM""]]" N [1.5] [0.00452, 0.00452] [-1] [8.0, 8.0] [0.00238, 0.00238] [-1] [-1] [-1] [-1]
+20 dwi AP dwi "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""""]" "[""""]" "[""""]" "[""""]" N [] [] [] [] [] [] [] [] []
+21 dwi b0 PA dwi "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""""]" "[""""]" "[""""]" "[""""]" N [] [] [] [] [] [] [] [] []
+22 dwi tracew AP dwi "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""EP""]" "[""SK\\SP""]" "[""PFP\\FS""]" "[""*ep_b1000t"", ""*ep_b0""]" "[[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""TRACEW"", ""ND""]]" N [1.5] [3.2, 18.9006] [90.0, 90.0] [0.089, 0.089] [-1] FALSE [0.000960003, 0.000979931] [0.000480001, 0.000489965] [0.0609602, 0.187657]
+23 dwi FA AP dwi "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""EP""]" "[""SK\\SP""]" "[""PFP\\FS""]" "[""*ep_b0_1000""]" "[[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""FA"", ""ND""]]" N [1.5] [] [90.0, 90.0] [0.085, 0.085] [-1] FALSE [0.000960003, 0.000960003] [0.000480001, 0.000480001] [0.0609602, 0.0609602]
+24 dwi tensorb0 AP dwi "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""EP""]" "[""SK\\SP""]" "[""PFP\\FS""]" "[""*ep_calc_b1500""]" "[[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""CALC"", ""BVALUE"", ""TRACEW"", ""ND""]]" N [1.5] [6.3, 6.3] [90.0, 90.0] [0.089, 0.089] [-1] FALSE [0.000979931, 0.000979931] [0.000489965, 0.000489965] [0.187657, 0.187657]
+25 dwi adc AP dwi "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""EP""]" "[""SK\\SP""]" "[""PFP\\FS""]" "[""*ep_b0_1000""]" "[[""DERIVED"", ""PRIMARY"", ""DIFFUSION"", ""ADC"", ""ND""]]" N [1.5] [3.2, 6.3] [90.0, 90.0] [0.085, 0.089] [-1] FALSE [0.000960003, 0.000979931] [0.000480001, 0.000489965] [0.0609602, 0.187657]
+26 dwi coilFA AP dwi "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""""]" "[""""]" "[""""]" "[""""]" "[""""]" "[""""]" [] [] [] [] [] [-1] FALSE [0.000960003, 0.000960003] [0.000480001, 0.000480001] [0.0609602, 0.0609602]
+27 dwi moco AP dwi "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""EP""]" "[""SK""]" "[""PFP\\FS""]" "[""*epfid2d1_64""]" "[[""ORIGINAL"", ""PRIMARY"", ""FMRI"", ""NONE"", ""ND"", ""MOSAIC""]]" N [1.5] [4.0, 4.0] [90.0, 90.0] [0.05, 0.05] [-1] [0.000489996, 0.000489996] [0.000244998, 0.000244998] [0.0154349, 0.0154349]
+28 dwi mddw AP dwi "[""Siemens""]" "[""Aera"", ""IMPAX Volume Viewing 3.0""]" "[""EP""]" "[""SK""]" "[""FS""]" "[""*ep_b0""]" "[[""ORIGINAL"", ""PRIMARY"", ""DIFFUSION"", ""NONE"", ""ND"", ""MOSAIC""]]" N [1.5] [3.2, 3.2] [90.0, 90.0] [0.085, 0.085] [-1] [0.000960003, 0.000960003] [0.000480001, 0.000480001] [0.0609602, 0.0609602]
diff --git a/xnat2mids/protocols/scans_tagger.py b/xnat2mids/protocols/scans_tagger.py
index 1d41850..9d1c2d1 100644
--- a/xnat2mids/protocols/scans_tagger.py
+++ b/xnat2mids/protocols/scans_tagger.py
@@ -20,21 +20,21 @@ def load_table_protocol(self, protocol_table_path):
self.table_protocols = pd.read_csv(protocol_table_path, sep='\t', index_col=False)
def classification_by_min_max(self, dict_atrubutes):
-
+ print(dict_atrubutes)
# targetScan = pd.DataFrame.from_dict([dict_atrubutes])
# Verify to which scan group corresponds
scaning_sequence = dict_atrubutes["ScanningSequence"]
sequence_variant = dict_atrubutes["SequenceVariant"]
scan_options = dict_atrubutes["ScanOptions"]
+ image_type = dict_atrubutes["ImageType"]
#sequence_name = dict_atrubutes["SequenceName"]
#image_type = dict_atrubutes["ImageType"]
print(f"{scaning_sequence=:}")
print(f"{sequence_variant=:}")
print(f"{scan_options=:}")
+ print(f"{image_type=}")
#scaning_sequence = scaning_sequence if type(scaning_sequence) is str else "\\".join(scaning_sequence)
- for l in list(self.table_protocols["ScanningSequence"]):
- for s in json.loads(l):
- print(s,scaning_sequence, s == scaning_sequence)
+
table_protocol_SS = self.table_protocols[[
any([True for s in json.loads(l) if s == scaning_sequence])
for l in list(self.table_protocols["ScanningSequence"])
@@ -44,11 +44,24 @@ def classification_by_min_max(self, dict_atrubutes):
any([True for s in json.loads(l) if s == sequence_variant])
for l in list(table_protocol_SS["SequenceVariant"])
]]
- table_protocol_SS_SV = table_protocol_SS_SV
- print("#"*40, "table_protocol_SS", "#"*40)
- print(table_protocol_SS)
+ table_protocol_SS_SV_SO = table_protocol_SS_SV[[
+ any([True for s in json.loads(l) if s == scan_options])
+ for l in list(table_protocol_SS_SV["ScanOptions"])
+ ]]
+
+ table_protocol_SS_SV_SO_IT = table_protocol_SS_SV_SO[[
+ any([True for s in json.loads(l) if s == image_type])
+ for l in list(table_protocol_SS_SV_SO["ImageType"])
+ ]]
+ table_protocols = table_protocol_SS_SV_SO_IT
+ # print("#"*40, "table_protocol_SS", "#"*40)
+ # print(table_protocol_SS)
print("#" * 40, "table_protocol_SS_VS", "#" * 40)
print(table_protocol_SS_SV[["Protocol", "acq"]])
+ print("#" * 40, "table_protocol_SS_VS", "#" * 40)
+ print(table_protocol_SS_SV_SO[["Protocol", "acq"]])
+ print("#" * 40, "table_protocol_SS_VS", "#" * 40)
+ print(table_protocol_SS_SV_SO[["Protocol", "acq"]])
# print(f"{dict_atrubutes=}")
matrix = []
# print(list(dict_atrubutes.keys())[-5:])
@@ -58,8 +71,8 @@ def classification_by_min_max(self, dict_atrubutes):
# print("p_value", dict_atrubutes[p], type(dict_atrubutes[p]))
p_value = float(dict_atrubutes[p]) # if dict_atrubutes[p] !="nan" else -1
- for list_values in table_protocol_SS_SV[p]:
-
+ for list_values in table_protocols[p]:
+ print(list_values)
min_ = np.amin(eval(list_values))
max_ = np.amax(eval(list_values))
if p_value >= min_ and p_value <= max_:
@@ -69,4 +82,4 @@ def classification_by_min_max(self, dict_atrubutes):
matrix.append(distance)
pos_table_protocol = np.argmin(np.array(matrix).sum(axis=0))
- return table_protocol_SS_SV.iloc[pos_table_protocol][["Protocol", "acq", "task", "ce", "rec", "dir", "part", "folder"]].fillna('')
+ return table_protocols.iloc[pos_table_protocol][["Protocol", "acq", "task", "ce", "rec", "dir", "part", "folder"]].fillna('')
diff --git a/xnat2mids/xnat/scan.py b/xnat2mids/xnat/scan.py
index 754193c..3395fd3 100644
--- a/xnat2mids/xnat/scan.py
+++ b/xnat2mids/xnat/scan.py
@@ -51,12 +51,5 @@ def download(
bool_list_resources=bool_list_resources,
overwrite=overwrite, verbose=verbose)
except requests.exceptions.RequestException as e:
- complet_path = (path_download + dict_path["path_download"](
- self["session"]["subject"]["ID"],
- self["session"]["ID"],
- self["ID"],
- "NIFTI"
- )
- )
print(e)
print(format_message(self.level_verbose, self.level_tab, "\u001b[0K"), end="", flush=True)
diff --git a/xnat2mids/xnat/session.py b/xnat2mids/xnat/session.py
index dd9ae36..9708157 100644
--- a/xnat2mids/xnat/session.py
+++ b/xnat2mids/xnat/session.py
@@ -191,13 +191,13 @@ def download(self, path_download,
# print("\033[18;0H\u001b[0K", end="",flush=True)
#self.get_list_struct_report(path_download, bool_list_resources, overwrite=False, verbose=verbose)
- self.get_list_assessors(verbose)
- for resource_obj in self.dict_assessors.values():
+ # self.get_list_assessors(verbose)
+ # for resource_obj in self.dict_assessors.values():
- resource_obj.download(
- path_download,
- bool_list_resources=bool_list_resources,
- overwrite=overwrite, verbose=verbose)
+ # resource_obj.download(
+ # path_download,
+ # bool_list_resources=bool_list_resources,
+ # overwrite=overwrite, verbose=verbose)
self.get_list_session_resources(verbose)
for resource_obj in self.dict_resources.values():