Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Evan Edmond
fslpy
Commits
d316b293
Commit
d316b293
authored
4 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
RF: minor formatting
parent
9e2f40fa
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fsl/data/featanalysis.py
+9
-5
9 additions, 5 deletions
fsl/data/featanalysis.py
with
9 additions
and
5 deletions
fsl/data/featanalysis.py
+
9
−
5
View file @
d316b293
...
@@ -22,6 +22,7 @@ following functions are provided:
...
@@ -22,6 +22,7 @@ following functions are provided:
isFirstLevelAnalysis
isFirstLevelAnalysis
loadDesign
loadDesign
loadContrasts
loadContrasts
loadFsf
loadSettings
loadSettings
getThresholds
getThresholds
loadClusterResults
loadClusterResults
...
@@ -215,16 +216,18 @@ def loadContrasts(featdir):
...
@@ -215,16 +216,18 @@ def loadContrasts(featdir):
return
names
,
contrasts
return
names
,
contrasts
def
loadFsf
(
designfsf
):
def
loadFsf
(
designfsf
):
"""
Loads the analysis settings from a text file (.fsf) used to configure FEAT.
"""
Loads the analysis settings from a text file (.fsf) used to configure
FEAT.
Returns a dict containing the settings specified in the file
Returns a dict containing the settings specified in the file
:arg designfsf: A .fsf file.
:arg designfsf: A .fsf file.
"""
"""
settings
=
collections
.
OrderedDict
()
settings
=
collections
.
OrderedDict
()
log
.
debug
(
'
Loading FEAT settings from {}
'
.
format
(
designfsf
))
log
.
debug
(
'
Loading FEAT settings from {}
'
.
format
(
designfsf
))
with
open
(
designfsf
,
'
rt
'
)
as
f
:
with
open
(
designfsf
,
'
rt
'
)
as
f
:
...
@@ -247,6 +250,7 @@ def loadFsf(designfsf):
...
@@ -247,6 +250,7 @@ def loadFsf(designfsf):
return
settings
return
settings
def
loadSettings
(
featdir
):
def
loadSettings
(
featdir
):
"""
Loads the analysis settings from a FEAT directory.
"""
Loads the analysis settings from a FEAT directory.
...
@@ -255,9 +259,9 @@ def loadSettings(featdir):
...
@@ -255,9 +259,9 @@ def loadSettings(featdir):
:arg featdir: A FEAT directory.
:arg featdir: A FEAT directory.
"""
"""
designfsf
=
op
.
join
(
featdir
,
'
design.fsf
'
)
designfsf
=
op
.
join
(
featdir
,
'
design.fsf
'
)
return
loadFsf
(
designfsf
)
return
loadFsf
(
designfsf
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment