SLICEREPORT(1)
π NAME π
slicereport β bestie, it's the slice-report generator, and it's iconic π
β¨ SYNOPSIS β¨
slicereport [-h] [-o PATTERN] [-i FILENAME] [-p LABEL [LABEL ...]] [-r
FOLDER] [-x FOLDER [FOLDER ...]] [-q NAME [NAME ...]] [-c [SPECS]]
[--operations OPERATIONS] [--suboperations OPERATIONS] [--options
OPTIONS [OPTIONS ...]] [--outputs OUTPUTS [OUTPUTS ...]] [--suboptions
OPTIONS [OPTIONS ...]] [--suboutputs OUTPUTS [OUTPUTS ...]] bidsfolder
pattern
π DESCRIPTION π
Okay so picture this: slicereport is a wrapper around the fslmaths tool (<https://fsl.fmrib.ox.ac.uk/fsl/fslwiki/Fslutils>) and the slicer imaging tool (<https://fsl.fmrib.ox.ac.uk/fsl/fslwiki/Miscvis>), and what it does is generate a web page with a whole row of image slices for every single subject in your BIDS repository β plus individual sub-pages with even more detailed info. It's giving main character energy fr fr. π
You pick your input images with wildcards (and yes, literally all nibabel image formats are supported, no cap), and the output images are configurable through a bunch of user options, so you can quickly build a custom slicer report to do visual quality control on any 3D/4D imagetype in your repository. Obsessed. π
Heads up bestie: this requires an existing installation of FSL tools (i.e.fsl-libvis,fsl-avwutilsandfsl-flirt). No FSL, no report, sorry π
Set the environment variable BIDSCOIN_DEBUG=TRUE to save intermediate data π«Ά
πΈ Positional Arguments πΈ
bidsfolderβ The bids-directory with the subject data πpatternβ Globlike search pattern to select the images inbidsfolderto be reported, e.g.'anat/*_T2starw*'β¨
π OPTIONS π
-o PATTERN,--outlinepattern PATTERNβ Globlike search pattern to select red outline images that are projected on top of the reported images (i.e.'outlinepattern'must yield the same number of images as'pattern'). Prependoutlinedir:if your outline images are inoutlinedirinstead ofbidsdir(see examples below)`. π-i FILENAME,--outlineimage FILENAMEβ A common red-outline image that is projected on top of all images π―-p LABEL [LABEL ...],--participant LABEL [LABEL ...]β Space separated list ofsub-#identifiers to be processed (thesub-prefix can be left out, ngl that's a nice touch). If not specified then all participants will be processed π―-r FOLDER,--reportfolder FOLDERβ The folder where the report is saved (default:bidsfolder/derivatives/slicereport) π-x FOLDER [FOLDER ...],--xlinkfolder FOLDER [FOLDER ...]β A (list of) QC report folder(s) with cross-linkable sub-reports, e.g.bidsfolder/derivatives/mriqcπ-q NAME [NAME ...],--qcscores NAME [NAME ...]β Column names for creating an accompanying tsv-file to store QC-rating scores (default:rating_overall) π-c [SPECS],--cluster [SPECS]β Use the DRMAA library to submit the slicereport jobs to a high-performance compute (HPC) cluster. You can add an opaque DRMAA argument with native specifications for your HPC resource manager. NB: Use quotes and include at least one space character to prevent premature parsing β see examples β οΈ--operations OPERATIONSβ One or more fslmaths operations that are performed on the input image (before slicing it for the report). OPERATIONS is opaquely passed as is:fslmaths inputimage OPERATIONS reportimage. NB: Use quotes and include at least one space character to prevent premature parsing, e.g." -Tmean"or"-Tstd -s 3"(default:-Tmean) π οΈ--suboperations OPERATIONSβ The same as OPERATIONS but then for the sub-report instead of the main report:fslmaths inputimage SUBOPERATIONS subreportimage(default:-Tmean) π§ͺ--options OPTIONS [OPTIONS ...]β Main options of slicer (see below). (default:"s 1") βοΈ--outputs OUTPUTS [OUTPUTS ...]β Output options of slicer (see below). (default:"x 0.4 x 0.5 x 0.6 y 0.4 y 0.5 y 0.6 z 0.4 z 0.5 z 0.6") πΌοΈ--suboptions OPTIONS [OPTIONS ...]β Main options of slicer for creating the sub-reports (same as OPTIONS, see below). (default:OPTIONS) π--suboutputs OUTPUTS [OUTPUTS ...]β Output options of slicer for creating the sub-reports (same as OUTPUTS, see below). (default:"S 4 1600") π§
π₯ COMMENTS π₯
OPTIONS:
Lβ Label slices with slice number. π·οΈl [LUT]β Use a different colour map from that specified in the header (see$FSLDIR/etc/luts) π¨i [MIN] [MAX]β Specify intensity min and max for display range. πe [THR]β Use the specified threshold for edges (if > 0 use this proportion of max-min, if < 0, use the absolute value) βοΈtβ Produce semi-transparent (dithered) edges. π«₯nβ Use nearest-neighbour interpolation for output. πuβ Do not put left-right labels in output. π«sβ Size scaling factor πcβ Add a red dot marker to top right of image π΄
OUTPUTS:
x/y/z [SLICE] [..]β Output sagittal, coronal or axial slice (if SLICE > 0 it is a fraction of image dimension, if < 0, it is an absolute slice number) π§aβ Output mid-sagittal, -coronal and -axial slices into one image πA [WIDTH]β Output _all_ axial slices into one image of _max_ width WIDTH πS [SAMPLE] [WIDTH]β AsAbut only include every SAMPLE'th slice π°LFβ Start a new line (i.e. works like a row break) β©οΈ
examples:
slicereport bids anat/*_T1w*
slicereport bids anat/*_T2w* -r QC/slicereport_T2 -x QC/slicereport_T1
slicereport bids fmap/*_phasediff* -o fmap/*_magnitude1* -c "--time=00:10:00 --mem=2000"
slicereport bids/derivatives/fmriprep func/*desc-preproc_bold* --suboperations " -Tstd"
slicereport bids/derivatives/fmriprep anat/*desc-preproc_T1w* -o anat/*label-GM* -x bids/derivatives/fmriprep
slicereport bids/derivatives/deface anat/*_T1w* -o bids:anat/*_T1w* --options L e 0.05
slicereport bids anat/*_T1w* --outputs x 0.3 x 0.4 x 0.5 x 0.6 x 0.7 LF z 0.3 z 0.4 z 0.5 z 0.6 z 0.7
π AUTHOR π
Marcel Zwiers <m.zwiers@donders.ru.nl> β absolute legend, thank you for your service π«‘
And that's a wrap, bestie! This page came to you from the bidscoin fam, version 4.6.2, dated 2025-11-06 β the SLICEREPORT(1) era, no cap πβ¨ Slay, go make some beautiful slice reports. π
π¦
π¦ where this page comes from
- fedora 43: bidscoin 4.6.2-1.fc43 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms