xnatqa 0.0.7__tar.gz → 0.0.9__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xnatqa
3
- Version: 0.0.7
3
+ Version: 0.0.9
4
4
  Summary: A workflow for automatically labeling and running QA on MRI scans within XNAT
5
5
  Author-email: Kyle Kurkela <kkurkela@bu.edu>
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "xnatqa"
3
- version = "0.0.7"
3
+ version = "0.0.9"
4
4
  authors = [
5
5
  { name="Kyle Kurkela", email="kkurkela@bu.edu" },
6
6
  ]
@@ -22,7 +22,7 @@ def generate_tagger_config(dicom_dir):
22
22
  os.system(f"dcm2niix -s y -a y -b o -o $PWD -f 'output_%s_%d' -w 0 -m 1 -i y {dicom_dir} &>>log.txt")
23
23
 
24
24
  # idenfity all of these text files
25
- jsonFiles = glob('output*.json')
25
+ jsonFiles = glob('./output*.json')
26
26
 
27
27
  # sort the found files so that they are in decensing order by series_number
28
28
  # this is probably unnecssary
@@ -0,0 +1,34 @@
1
+ import os
2
+ import argparse
3
+ from xnatqa.tag import tag_scans
4
+ from xnatqa.launch import launch
5
+
6
+ def main():
7
+
8
+ # parse input arguments
9
+ parser = argparse.ArgumentParser(description="Auto Labeler")
10
+ parser.add_argument("--dicom_dir", default="/input", help = "where the DICOMs are located", required=True)
11
+ parser.add_argument("--host", default="https://xnat2.bu.edu", help="BU XNAT host", required=True)
12
+ parser.add_argument("--user", help="BU XNAT2 username", required=True)
13
+ parser.add_argument("--password", help="BU XNAT2 Password", required=True)
14
+ parser.add_argument("--experiment", default = "", required=True)
15
+
16
+ args, unknown_args = parser.parse_known_args()
17
+ dicom_dir = os.path.join(args.dicom_dir, 'SCANS')
18
+ host = args.host
19
+ user = args.user
20
+ password = args.password
21
+ experiment = args.experiment
22
+
23
+ # run xnat authentication for this container. writes an ~/.xnat_auth file to the home directory
24
+ # this file is used in all subsequent calls to XNAT
25
+ os.system(f'xnat_auth --alias xnat --url {host} --username {user} --password {password}')
26
+
27
+ # tag all scans in this session
28
+ tag_scans(dicom_dir, experiment)
29
+
30
+ # launch all QA jobs for this session
31
+ launch(experiment)
32
+
33
+ if __name__ == "__main__":
34
+ main()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xnatqa
3
- Version: 0.0.7
3
+ Version: 0.0.9
4
4
  Summary: A workflow for automatically labeling and running QA on MRI scans within XNAT
5
5
  Author-email: Kyle Kurkela <kkurkela@bu.edu>
6
6
  License-Expression: MIT
@@ -1,29 +0,0 @@
1
- import os
2
- import argparse
3
- from xnatqa.tag import tag_scans
4
- from xnatqa.launch import launch
5
-
6
- # parse input arguments
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)
13
-
14
- args, unknown_args = parser.parse_known_args()
15
- dicom_dir = os.path.join(args.dicom_dir, 'SCANS')
16
- host = args.host
17
- user = args.user
18
- password = args.password
19
- experiment = args.experiment
20
-
21
- # run xnat authentication for this container. writes an ~/.xnat_auth file to the home directory
22
- # this file is used in all subsequent calls to XNAT
23
- os.system(f'xnat_auth --alias xnat --url {host} --username {user} --password {password}')
24
-
25
- # tag all scans in this session
26
- tag_scans(dicom_dir, experiment)
27
-
28
- # launch all QA jobs for this session
29
- launch(experiment)
File without changes
File without changes
File without changes
File without changes
File without changes