ebf7b37
.TH NIPY_DIAGNOSE "1" "February 2023" "" "User Commands"
ebf7b37
.SH NAME
ebf7b37
.B nipy_diagnose
ebf7b37
\(en Calculate and write results for diagnostic screen
ebf7b37
.SH SYNOPSIS
ebf7b37
.B nipy_diagnose
ebf7b37
.RB [ \-h ]
ebf7b37
.RB [ \-\-out\-path\ \fIOUT_PATH ]
ebf7b37
.RB [ \-\-out\-fname\-label\ \fIOUT_FNAME_LABEL ]
ebf7b37
.RB [ \-\-ncomponents\ \fINCOMPONENTS ]
ebf7b37
.RB [ \-\-time\-axis\ \fITIME_AXIS ]
ebf7b37
.RB [ \-\-slice\-axis\ \fISLICE_AXIS ]
ebf7b37
.I filename
ebf7b37
.SH DESCRIPTION
ebf7b37
.BR nipy_diagnose (1)
ebf7b37
will generate a series of diagnostic images
ebf7b37
for a 4D fMRI image volume.
ebf7b37
The following images will be generated.
ebf7b37
.RI < ext >
ebf7b37
is the input filename extension (e.g.\ \(oq\fB.nii\fR\(cq):
ebf7b37
.RS +7n
ebf7b37
.IP \(bu 2
ebf7b37
.B components_\fR<\fIlabel\fR>\fB.png\fR\ :
ebf7b37
plots of PCA basis vectors
ebf7b37
.IP \(bu 2
ebf7b37
.B max_\fR<\fIlabel\fR><\fIext\fR>\ :
ebf7b37
max image
ebf7b37
.IP \(bu 2
ebf7b37
.B mean_\fR<\fIlabel\fR><\fIext\fR>\ :
ebf7b37
mean image
ebf7b37
.IP \(bu 2
ebf7b37
.B min_\fR<\fIlabel\fR><\fIext\fR>\ :
ebf7b37
min image
ebf7b37
.IP \(bu 2
ebf7b37
.B pca_\fR<\fIlabel\fR><\fIext\fR>\ :
ebf7b37
4D image of PCA component images
ebf7b37
.IP \(bu 2
ebf7b37
.B pcnt_var_\fR<\fIlabel\fR>\fB.png\fR\ :
ebf7b37
percent variance scree plot for PCA components
ebf7b37
.IP \(bu 2
ebf7b37
.B std_\fR<\fIlabel\fR><\fIext\fR>\ :
ebf7b37
standard deviation image
ebf7b37
.IP \(bu 2
ebf7b37
.B tsdiff_\fR<\fIlabel\fR>\fB.png\fR\ :
ebf7b37
time series diagnostic plot
ebf7b37
.RE
ebf7b37
.P
ebf7b37
The filenames for the outputs are of the form
ebf7b37
.RI < out\-path > \fB/ < some_prefix >< label >< file\-ext >
ebf7b37
where
ebf7b37
.RI < out\-path >
ebf7b37
is the path specified by the
ebf7b37
.B \-\-out\-path
ebf7b37
option, or the path of the input filename;
ebf7b37
.RB < some_prefix >
ebf7b37
are the standard prefixes above,
ebf7b37
.RI < label >
ebf7b37
is given by
ebf7b37
.BR \-\-out\-label ,
ebf7b37
or by the filename of the input image
ebf7b37
(with path and extension removed), and
ebf7b37
.RI < file\-ext >
ebf7b37
is
ebf7b37
.RB \(oq .png \(cq
ebf7b37
for graphics,
ebf7b37
or the extension of the input filename for volume images.
ebf7b37
For example,
ebf7b37
specifying only the input filename
ebf7b37
.B /some/path/fname.img
ebf7b37
will generate filenames of the form
ebf7b37
.BR /some/path/components_fname.png ,
ebf7b37
.B /some/path/max_fname.img
ebf7b37
etc.
ebf7b37
.SH OPTIONS
ebf7b37
.SS "POSITIONAL ARGUMENTS"
ebf7b37
.TP
ebf7b37
.I filename
ebf7b37
4D image filename
ebf7b37
.SS "OPTIONAL ARGUMENTS"
ebf7b37
.TP
ebf7b37
.BR \-h ,\  \-\-help
ebf7b37
Show a help message and exit
ebf7b37
.TP
ebf7b37
.B \-\-out\-path\ \fIOUT_PATH
ebf7b37
Path for output image files
ebf7b37
.TP
ebf7b37
.B \-\-out\-fname\-label\ \fIOUT_FNAME_LABEL
ebf7b37
Mid part of output image filenames
ebf7b37
.TP
ebf7b37
.B \-\-ncomponents\ \fINCOMPONENTS
ebf7b37
Number of PCA components to write
ebf7b37
.TP
ebf7b37
.B \-\-time\-axis\ \fITIME_AXIS
ebf7b37
Image axis for time
ebf7b37
.TP
ebf7b37
.B \-\-slice\-axis\ \fITSLICE_AXIS
ebf7b37
Image axis for slice
ebf7b37
.SH "SEE ALSO"
ebf7b37
.BR nipy_3dto4d (1),
ebf7b37
.BR nipy_4d_realign (1),
ebf7b37
.BR nipy_4dto3d (1),
ebf7b37
.BR nipy_tsdiffana (1)