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
Michiel Cottaar
fsl_mrs
Commits
589c1f16
Commit
589c1f16
authored
Apr 21, 2020
by
William Clarke
Browse files
Option to specify internal reference in fsl_mrs.
parent
becfa99d
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl_mrs/scripts/fsl_mrs
View file @
589c1f16
...
...
@@ -76,6 +76,8 @@ def main():
help
=
'Echo time for relaxation correction (ms)'
)
optional
.
add_argument
(
'--tissue_fractions'
,
type
=
float
,
nargs
=
3
,
default
=
[
0.5
,
0.5
,
0.0
],
metavar
=
'GM WM CSF'
,
help
=
'Fractional tissue volumes for WM, GM, CSF. Defaults to 0.5, 0.5, 0.0.'
)
optional
.
add_argument
(
'--internal_ref'
,
type
=
str
,
default
=
[
'Cr'
,
'PCr'
],
nargs
=
'+'
,
help
=
'Metabolite(s) used as an internal reference. Defaults to tCr (Cr+PCr).'
)
optional
.
add_argument
(
'--central_frequency'
,
default
=
None
,
type
=
float
,
help
=
'central frequency in Hz'
)
optional
.
add_argument
(
'--dwell_time'
,
default
=
None
,
type
=
float
,
...
...
@@ -295,11 +297,11 @@ def main():
echotime
=
None
# Internal and Water quantification if requested
if
(
mrs
.
H2O
is
None
)
or
(
echotime
is
None
):
res
.
calculateConcScaling
(
mrs
,
referenceMetab
=
[
'Cr'
,
'PCr'
]
)
res
.
calculateConcScaling
(
mrs
,
referenceMetab
=
args
.
internal_ref
)
else
:
tfrac
=
{
'WM'
:
args
.
tissue_fractions
[
0
],
'GM'
:
args
.
tissue_fractions
[
1
],
'CSF'
:
args
.
tissue_fractions
[
2
]}
res
.
calculateConcScaling
(
mrs
,
referenceMetab
=
[
'Cr'
,
'PCr'
]
,
referenceMetab
=
args
.
internal_ref
,
waterRefFID
=
mrs
.
H2O
,
tissueFractions
=
tfrac
,
TE
=
echotime
,
...
...
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