xnatqa 0.0.8__py3-none-any.whl → 0.0.10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- xnatqa/xnatqa.py +19 -20
- {xnatqa-0.0.8.dist-info → xnatqa-0.0.10.dist-info}/METADATA +1 -1
- xnatqa-0.0.10.dist-info/RECORD +10 -0
- xnatqa-0.0.8.dist-info/RECORD +0 -10
- {xnatqa-0.0.8.dist-info → xnatqa-0.0.10.dist-info}/WHEEL +0 -0
- {xnatqa-0.0.8.dist-info → xnatqa-0.0.10.dist-info}/entry_points.txt +0 -0
- {xnatqa-0.0.8.dist-info → xnatqa-0.0.10.dist-info}/licenses/LICENSE +0 -0
- {xnatqa-0.0.8.dist-info → xnatqa-0.0.10.dist-info}/top_level.txt +0 -0
xnatqa/xnatqa.py
CHANGED
|
@@ -3,27 +3,26 @@ import argparse
|
|
|
3
3
|
from xnatqa.tag import tag_scans
|
|
4
4
|
from xnatqa.launch import launch
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
parser = argparse.ArgumentParser(description="Auto Labeler")
|
|
8
|
-
parser.add_argument("--dicom_dir", default="/input", help = "where the DICOMs are located", required=True)
|
|
9
|
-
parser.add_argument("--host", default="https://xnat2.bu.edu", help="BU XNAT host", required=True)
|
|
10
|
-
parser.add_argument("--user", help="BU XNAT2 username", required=True)
|
|
11
|
-
parser.add_argument("--password", help="BU XNAT2 Password", required=True)
|
|
12
|
-
parser.add_argument("--experiment", default = "", required=True)
|
|
6
|
+
def main():
|
|
13
7
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
password = args.password
|
|
19
|
-
experiment = args.experiment
|
|
8
|
+
# parse input arguments
|
|
9
|
+
parser = argparse.ArgumentParser(description="XNAT QA Workflow")
|
|
10
|
+
parser.add_argument("--dicom_dir", default="/input", help = "where the DICOMs are located", required=True)
|
|
11
|
+
parser.add_argument("--experiment", default = "", required=True)
|
|
20
12
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
13
|
+
args, unknown_args = parser.parse_known_args()
|
|
14
|
+
dicom_dir = os.path.join(args.dicom_dir, 'SCANS')
|
|
15
|
+
experiment = args.experiment
|
|
24
16
|
|
|
25
|
-
#
|
|
26
|
-
|
|
17
|
+
# run xnat authentication for this container. writes an ~/.xnat_auth file to the home directory
|
|
18
|
+
# this file is used in all subsequent calls to XNAT
|
|
19
|
+
os.system(f'xnat_auth --alias xnat --url $XNAT_HOST --username $XNAT_USER --password $XNAT_PASS')
|
|
27
20
|
|
|
28
|
-
#
|
|
29
|
-
|
|
21
|
+
# tag all scans in this session
|
|
22
|
+
tag_scans(dicom_dir, experiment)
|
|
23
|
+
|
|
24
|
+
# launch all QA jobs for this session
|
|
25
|
+
launch(experiment)
|
|
26
|
+
|
|
27
|
+
if __name__ == "__main__":
|
|
28
|
+
main()
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
xnatqa/__init__.py,sha256=RIG_ihjfFD1upKlhlxI-9Fs4ISf0lIW4Zg7CaFirV4A,644
|
|
2
|
+
xnatqa/xnatqa.py,sha256=RuQlEAEODNWnu5gN4zcxiK59vjkANX4RG1JanvFRrfM,960
|
|
3
|
+
xnatqa/launch/__init__.py,sha256=zT6XGXWBHOtHZ_TVmlN9vp3V8JqUAYscxMBUZJJBlgo,1178
|
|
4
|
+
xnatqa/tag/__init__.py,sha256=kjdB9zSA_YHGOPmG_BDM0HtSK6thmBt0Awd4Zj6NN5A,8921
|
|
5
|
+
xnatqa-0.0.10.dist-info/licenses/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
+
xnatqa-0.0.10.dist-info/METADATA,sha256=M8Dd-yP3hg_AhC_BT0JRG3Bkng7bdDWaqIxYql5-Qcs,1200
|
|
7
|
+
xnatqa-0.0.10.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
8
|
+
xnatqa-0.0.10.dist-info/entry_points.txt,sha256=UqPAByHiJTqwkT0UBymn6EOIGBlPsb9mEZK86HIahs8,46
|
|
9
|
+
xnatqa-0.0.10.dist-info/top_level.txt,sha256=FmRWgO6ww0FwyNs5ccyhP9FcAxI129qSJqLs2OKOxJw,7
|
|
10
|
+
xnatqa-0.0.10.dist-info/RECORD,,
|
xnatqa-0.0.8.dist-info/RECORD
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
xnatqa/__init__.py,sha256=RIG_ihjfFD1upKlhlxI-9Fs4ISf0lIW4Zg7CaFirV4A,644
|
|
2
|
-
xnatqa/xnatqa.py,sha256=UoX74fhC5I3Cj4nyc1ORtH8P5sGApySvQ2UmeO2kpHM,1157
|
|
3
|
-
xnatqa/launch/__init__.py,sha256=zT6XGXWBHOtHZ_TVmlN9vp3V8JqUAYscxMBUZJJBlgo,1178
|
|
4
|
-
xnatqa/tag/__init__.py,sha256=kjdB9zSA_YHGOPmG_BDM0HtSK6thmBt0Awd4Zj6NN5A,8921
|
|
5
|
-
xnatqa-0.0.8.dist-info/licenses/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
-
xnatqa-0.0.8.dist-info/METADATA,sha256=VrY4Obk0gvF8Ryk6gGQGL_DXv5GlIa71Itx6c0pUxSM,1199
|
|
7
|
-
xnatqa-0.0.8.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
8
|
-
xnatqa-0.0.8.dist-info/entry_points.txt,sha256=UqPAByHiJTqwkT0UBymn6EOIGBlPsb9mEZK86HIahs8,46
|
|
9
|
-
xnatqa-0.0.8.dist-info/top_level.txt,sha256=FmRWgO6ww0FwyNs5ccyhP9FcAxI129qSJqLs2OKOxJw,7
|
|
10
|
-
xnatqa-0.0.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|