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
6a6c00ed
Commit
6a6c00ed
authored
1 year ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
DOC: Clarify fslstats wrapper usage
parent
2f160a70
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/wrappers/fslstats.py
+12
-4
12 additions, 4 deletions
fsl/wrappers/fslstats.py
with
12 additions
and
4 deletions
fsl/wrappers/fslstats.py
+
12
−
4
View file @
6a6c00ed
...
@@ -31,20 +31,28 @@ class fslstats:
...
@@ -31,20 +31,28 @@ class fslstats:
present in older versions.
present in older versions.
This ``fslstats`` command::
fslstats image -r -p 95 -R
is equivalent to this function call::
fslstats(
'
image
'
).r.p(95).R.run()
Any ``fslstats`` command-line option which does not require any arguments
Any ``fslstats`` command-line option which does not require any arguments
(e.g. ``-r``) can be set by accessing an attribute on a ``fslstats``
(e.g. ``-r``) can be set by accessing an attribute on a ``fslstats``
object, e.g.::
object, e.g.::
stats = fslstats(
'
image.nii.gz
'
)
fslstats(
'
image.nii.gz
'
).r.run()
stats.r
``fslstats`` command-line options which do require additional arguments
``fslstats`` command-line options which do require additional arguments
(e.g. ``-k``) can be set by calling a method on an ``fslstats`` object,
(e.g. ``-k``) can be set by calling a method on an ``fslstats`` object,
e.g.::
e.g.::
stats = fslstats(
'
image.nii.gz
'
)
stats = fslstats(
'
image.nii.gz
'
).k(
'
mask.nii.gz
'
).run()
stats.k(
'
mask.nii.gz
'
)
The ``fslstats`` command can be executed via the :meth:`run` method.
The ``fslstats`` command can be executed via the :meth:`run` method.
...
...
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