xnatqa 0.0.10__tar.gz → 0.0.11__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.10
3
+ Version: 0.0.11
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.10"
3
+ version = "0.0.11"
4
4
  authors = [
5
5
  { name="Kyle Kurkela", email="kkurkela@bu.edu" },
6
6
  ]
@@ -1,7 +1,6 @@
1
1
  import os
2
2
  import argparse
3
3
  from xnatqa.tag import tag_scans
4
- from xnatqa.launch import launch
5
4
 
6
5
  def main():
7
6
 
@@ -21,8 +20,5 @@ def main():
21
20
  # tag all scans in this session
22
21
  tag_scans(dicom_dir, experiment)
23
22
 
24
- # launch all QA jobs for this session
25
- launch(experiment)
26
-
27
23
  if __name__ == "__main__":
28
24
  main()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xnatqa
3
- Version: 0.0.10
3
+ Version: 0.0.11
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
@@ -9,5 +9,4 @@ xnatqa.egg-info/dependency_links.txt
9
9
  xnatqa.egg-info/entry_points.txt
10
10
  xnatqa.egg-info/requires.txt
11
11
  xnatqa.egg-info/top_level.txt
12
- xnatqa/launch/__init__.py
13
12
  xnatqa/tag/__init__.py
@@ -1,36 +0,0 @@
1
- import os
2
- import yaxil
3
-
4
- def launch(MRsession):
5
- # So, at this point, everything has been labeled for this session.
6
- # We now need to:
7
-
8
- # Identify all of the tagged scans in this sessions
9
- # For each tagged scan, launch the appropriate QA routine
10
-
11
- # authenticate with xnat using the ~/.xnat_auth file created earlier in the workflow
12
- auth = yaxil.auth(alias = 'xnat')
13
-
14
- # open and automatically close a connection to XNAT using the auth
15
- with yaxil.session(auth) as sess:
16
- # keep track of the number of BOLD (b) and ANAT (a) scans idenfified
17
- b = 0
18
- a = 0
19
-
20
- # for each scan in this session...
21
- for scan in sess.scans(label=MRsession):
22
-
23
- # this scan's note
24
- note = scan['note']
25
-
26
- # if that note has a "#BOLD" tag...
27
- if '#BOLD' in note:
28
- print('Run BOLDQC')
29
- os.system(f'qsub -P drkrcs boldqc.qsub {MRsession} {b}')
30
- b+=1
31
-
32
- # if that note has a "#T1w" tag...
33
- if '#T1w' in note:
34
- print('Run ANATQC')
35
- os.system(f'qsub -P drkrcs anatqc.qsub {MRsession} {a}')
36
- a+=1
File without changes
File without changes
File without changes
File without changes
File without changes