Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Fidel Alfaro Almagro
UK_biobank_pipeline_v_1.5
Commits
05b9254a
Commit
05b9254a
authored
Jan 12, 2022
by
Fidel Alfaro Almagro
Browse files
Update bb_pipeline_struct_queue.py with check of fieldmap directory
parent
55042345
Changes
1
Hide whitespace changes
Inline
Side-by-side
bb_structural_pipeline/bb_pipeline_struct_queue.py
View file @
05b9254a
...
...
@@ -43,8 +43,9 @@ def bb_pipeline_struct(subject, runTopup, fileConfiguration, queue, coeff):
numVols
=
1
else
:
numVols
=
int
(
sum
(
bvals
<=
b0_threshold
))
if
not
os
.
path
.
isdir
(
subject
+
'/fieldmap/):
os.makedirs(subject + '
/
fieldmap
/
)
jobGETB01
=
LT
.
runCommand
(
logger
,
'${FSLDIR}/bin/fsl_sub -q '
+
short_queues
+
' -N "bb_get_b0s_1_'
+
subject
+
'" -l '
+
logDir
+
' $BB_BIN_DIR/bb_structural_pipeline/bb_get_b0s.py -i '
+
subject
+
'/dMRI/raw/'
+
encDir
+
'.nii.gz -o '
+
subject
+
'/fieldmap/total_B0_'
+
encDir
+
'.nii.gz -n '
+
str
(
numVols
)
+
' -l '
+
str
(
b0_threshold
)
)
jobsB0
.
append
(
LT
.
runCommand
(
logger
,
'${FSLDIR}/bin/fsl_sub -q '
+
long_queues
+
' -N "bb_choose_bestB0_1_'
+
subject
+
'" -l '
+
logDir
+
' -j '
+
jobGETB01
+
' $BB_BIN_DIR/bb_structural_pipeline/bb_choose_bestB0 '
+
subject
+
'/fieldmap/total_B0_'
+
encDir
+
'.nii.gz '
+
subject
+
'/fieldmap/B0_'
+
encDir
+
'.nii.gz '
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment