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
Model registry
Operate
Environments
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
FSL
fslpy
Commits
93040c37
There was a problem fetching the pipeline summary.
Commit
93040c37
authored
8 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
FEAT/melodic report file paths.
parent
520ee612
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
fsl/data/featanalysis.py
+10
-0
10 additions, 0 deletions
fsl/data/featanalysis.py
fsl/data/featimage.py
+7
-0
7 additions, 0 deletions
fsl/data/featimage.py
fsl/data/melodicanalysis.py
+7
-1
7 additions, 1 deletion
fsl/data/melodicanalysis.py
fsl/data/melodicimage.py
+7
-0
7 additions, 0 deletions
fsl/data/melodicimage.py
with
31 additions
and
1 deletion
fsl/data/featanalysis.py
+
10
−
0
View file @
93040c37
...
...
@@ -139,6 +139,16 @@ def getTopLevelAnalysisDir(path):
return
fslpath
.
shallowest
(
path
,
[
'
.ica
'
,
'
.gica
'
,
'
.feat
'
,
'
.gfeat
'
])
def
getReportFile
(
featdir
):
"""
Returns the path to the FEAT report index file, or ``None`` if there
is no report.
"""
report
=
op
.
join
(
featdir
,
'
report.html
'
)
if
op
.
exists
(
report
):
return
report
else
:
return
None
def
loadContrasts
(
featdir
):
"""
Loads the contrasts from a FEAT directory. Returns a tuple containing:
...
...
This diff is collapsed.
Click to expand it.
fsl/data/featimage.py
+
7
−
0
View file @
93040c37
...
...
@@ -119,6 +119,13 @@ class FEATImage(fslimage.Image):
return
featanalysis
.
getTopLevelAnalysisDir
(
self
.
__featDir
)
def
getReportFile
(
self
):
"""
Returns the path to the FEAT report - see
:func:`.featanalysis.getReportFile`.
"""
return
featanalysis
.
getReportFile
(
self
.
__featDir
)
def
hasStats
(
self
):
"""
Returns ``True`` if the analysis for this ``FEATImage`` contains
a statistical analysis.
...
...
This diff is collapsed.
Click to expand it.
fsl/data/melodicanalysis.py
+
7
−
1
View file @
93040c37
...
...
@@ -149,7 +149,13 @@ def getFTMixFile(meldir):
def
getReportFile
(
meldir
):
pass
"""
Returns the path to the MELODIC report index file, or ``None`` if there
is no report.
"""
report
=
op
.
join
(
meldir
,
'
..
'
,
'
report.html
'
)
if
op
.
exists
(
report
):
return
report
else
:
return
None
def
getNumComponents
(
meldir
):
...
...
This diff is collapsed.
Click to expand it.
fsl/data/melodicimage.py
+
7
−
0
View file @
93040c37
...
...
@@ -131,6 +131,13 @@ class MelodicImage(fslimage.Image):
contained.
"""
return
self
.
__meldir
def
getReportFile
(
self
):
"""
Returns the path to the MELODIC report - see
:func:`.melodicanalysis.getReportFile`.
"""
return
melanalysis
.
getReportFile
(
self
.
__meldir
)
def
getTopLevelAnalysisDir
(
self
):
...
...
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