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
7984cfc9
Commit
7984cfc9
authored
Dec 01, 2021
by
Fidel Alfaro Almagro
Browse files
Update bb_basic_QC.py (removing ['path'] string.
parent
b5a072b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
bb_pipeline_tools/bb_basic_QC.py
View file @
7984cfc9
...
...
@@ -97,20 +97,20 @@ def bb_basic_QC(subject, fileConfig, basic_QC_file):
fd_fileName
=
"logs/file_descriptor.json"
for
fileN
in
fileConfig
:
if
not
isinstance
(
fileConfig
[
fileN
]
[
'path'
]
,
list
):
if
not
isinstance
(
fileConfig
[
fileN
],
list
):
if
bb_path
.
isImage
(
fileConfig
[
fileN
]
[
'path'
]
):
fils
=
bb_path
.
removeImageExt
(
fileConfig
[
fileN
]
[
'path'
]
)
if
bb_path
.
isImage
(
fileConfig
[
fileN
]):
fils
=
bb_path
.
removeImageExt
(
fileConfig
[
fileN
])
if
os
.
path
.
isfile
(
fils
+
"_orig.nii.gz"
):
fileList
=
[
fils
+
"_orig.nii.gz"
]
else
:
fileList
=
[
fileConfig
[
fileN
]
[
'path'
]
]
fileList
=
[
fileConfig
[
fileN
]]
else
:
fileList
=
[
fileConfig
[
fileN
]
[
'path'
]
]
fileList
=
[
fileConfig
[
fileN
]]
else
:
fileList
=
fileConfig
[
fileN
]
[
'path'
]
fileList
=
fileConfig
[
fileN
]
for
fileName
in
fileList
:
if
os
.
path
.
isfile
(
fileName
):
...
...
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