diff --git a/dev/Authors.html b/dev/Authors.html index 3dd6ea4..cdf774e 100644 --- a/dev/Authors.html +++ b/dev/Authors.html @@ -5,7 +5,7 @@ - + Authors - fsqc @@ -333,7 +333,7 @@

Authors - + diff --git a/dev/Changelog.html b/dev/Changelog.html index bdbd207..1829a0f 100644 --- a/dev/Changelog.html +++ b/dev/Changelog.html @@ -5,7 +5,7 @@ - + Changelog - fsqc @@ -377,7 +377,7 @@

Version 2.0.0 - + diff --git a/dev/Citations.html b/dev/Citations.html index a6f4cf3..5fbdc36 100644 --- a/dev/Citations.html +++ b/dev/Citations.html @@ -5,7 +5,7 @@ - + Citations - fsqc @@ -334,7 +334,7 @@

Citations - + diff --git a/dev/Development.html b/dev/Development.html index a067710..d7e9a3d 100644 --- a/dev/Development.html +++ b/dev/Development.html @@ -5,7 +5,7 @@ - + Development - fsqc @@ -365,7 +365,7 @@

Roadmap - + diff --git a/dev/Functionality.html b/dev/Functionality.html index 5151272..749c1ac 100644 --- a/dev/Functionality.html +++ b/dev/Functionality.html @@ -5,7 +5,7 @@ - + Functionality - fsqc @@ -473,7 +473,7 @@

outlier module - + diff --git a/dev/Installation.html b/dev/Installation.html index 32b0305..8489ac3 100644 --- a/dev/Installation.html +++ b/dev/Installation.html @@ -5,7 +5,7 @@ - + Installation - fsqc @@ -385,7 +385,7 @@

Download from GitHub - + diff --git a/dev/License.html b/dev/License.html index 7ac9295..1c45dba 100644 --- a/dev/License.html +++ b/dev/License.html @@ -5,7 +5,7 @@ - + License - fsqc @@ -330,7 +330,7 @@

License - + diff --git a/dev/Requirements.html b/dev/Requirements.html index b057fb0..c984fdb 100644 --- a/dev/Requirements.html +++ b/dev/Requirements.html @@ -5,7 +5,7 @@ - + Requirements - fsqc @@ -273,7 +273,7 @@

Requirementsnibabel and skimage packages for the core functionality, plus the matplotlib, pandas, and transform3d packages for some optional functions and modules. See the requirements.txt file for a complete list. +
  • Required packages include (among others) the nibabel and skimage packages for the core functionality, plus the matplotlib, pandas, and transform3d packages for some optional functions and modules. See the requirements.txt file for a complete list. Use the following command to install these packages:

    ` bash @@ -281,7 +281,7 @@

    Requirements`

  • If installing the toolbox as a Python package or if using the Docker image, all required packages will be installed automatically, and manual installation as detailed above will not be necessary.

  • -
  • This software has been tested on Ubuntu 20.04.

  • +
  • This software has been tested on Ubuntu 20.04 and Ubuntu 22.04.

  • A working FreeSurfer installation (version 6 or newer) is required for running the ‘shape’ module of this toolbox. Also, make sure that FreeSurfer is sourced (i.e., FREESURFER_HOME is set as an environment variable) before running an analysis.

  • @@ -367,7 +367,7 @@

    Known issues - + diff --git a/dev/Usage.html b/dev/Usage.html index 2f029c8..58d9c38 100644 --- a/dev/Usage.html +++ b/dev/Usage.html @@ -5,7 +5,7 @@ - + Usage - fsqc @@ -275,14 +275,16 @@

    As a Command Line Tool
    run_fsqc
     --subjects_dir <directory>
     --output_dir <directory>
    -[--subjects SubjectID]
    +[--subjects SubjectID [SubjectID ...]]
     [--subjects-file <file>] [--screenshots]
     [--screenshots-html] [--surfaces] [--surfaces-html]
     [--skullstrip] [--skullstrip-html]
     [--fornix] [--fornix-html] [--hippocampus]
     [--hippocampus-html] [--hippocampus-label ... ]
     [--hypothalamus] [--hypothalamus-html] [--shape]
    -[--outlier] [--fastsurfer] [-h] [--more-help]
    +[--outlier] [--fastsurfer] [--no-group]
    +[--group-only] [--exit-on-error]
    +[--skip-existing] [-h] [--more-help]
     [...]
     
     Required Arguments:
    @@ -354,9 +356,18 @@ 

    As a Command Line Tool Use FastSurfer instead of FreeSurfer output +--no-group + run script in subject-level mode. will compute individual files and statistics, but not create group-level summaries. + +--group-only + run script in group mode. will create group-level summaries from existing inputs. needs to be run on output directory with already existing results. + --exit-on-error Terminate the program when encountering an error; otherwise, try to continue with the next module or case +--skip-existing + skips processing for a given case if output already exists, even with possibly different parameters or settings + Getting Help: ------------- -h, --help @@ -546,7 +557,7 @@

    As a Docker Image - + diff --git a/dev/_sources/Requirements.rst.txt b/dev/_sources/Requirements.rst.txt index f285f2a..8ce08a8 100644 --- a/dev/_sources/Requirements.rst.txt +++ b/dev/_sources/Requirements.rst.txt @@ -14,7 +14,7 @@ Requirements ``` - If installing the toolbox as a Python package or if using the Docker image, all required packages will be installed automatically, and manual installation as detailed above will not be necessary. -- This software has been tested on Ubuntu 20.04. +- This software has been tested on Ubuntu 20.04 and Ubuntu 22.04. - A working `FreeSurfer `_ installation (version 6 or newer) is required for running the 'shape' module of this toolbox. Also, make sure that FreeSurfer is sourced (i.e., FREESURFER_HOME is set as an environment variable) before running an analysis. diff --git a/dev/_sources/Usage.rst.txt b/dev/_sources/Usage.rst.txt index c4b57d2..b4411e1 100644 --- a/dev/_sources/Usage.rst.txt +++ b/dev/_sources/Usage.rst.txt @@ -6,23 +6,25 @@ As a Command Line Tool .. code-block:: sh - run_fsqc - --subjects_dir + run_fsqc + --subjects_dir --output_dir - [--subjects SubjectID] + [--subjects SubjectID [SubjectID ...]] [--subjects-file ] [--screenshots] [--screenshots-html] [--surfaces] [--surfaces-html] [--skullstrip] [--skullstrip-html] [--fornix] [--fornix-html] [--hippocampus] [--hippocampus-html] [--hippocampus-label ... ] [--hypothalamus] [--hypothalamus-html] [--shape] - [--outlier] [--fastsurfer] [-h] [--more-help] + [--outlier] [--fastsurfer] [--no-group] + [--group-only] [--exit-on-error] + [--skip-existing] [-h] [--more-help] [...] Required Arguments: ------------------- --subjects_dir - Subjects directory with a set of Freesurfer- or + Subjects directory with a set of Freesurfer- or Fastsurfer-processed individual datasets. --output_dir @@ -88,9 +90,18 @@ As a Command Line Tool --fastsurfer Use FastSurfer instead of FreeSurfer output + --no-group + run script in subject-level mode. will compute individual files and statistics, but not create group-level summaries. + + --group-only + run script in group mode. will create group-level summaries from existing inputs. needs to be run on output directory with already existing results. + --exit-on-error Terminate the program when encountering an error; otherwise, try to continue with the next module or case + --skip-existing + skips processing for a given case if output already exists, even with possibly different parameters or settings + Getting Help: ------------- -h, --help @@ -102,34 +113,34 @@ As a Command Line Tool --------------- --screenshots_base Filename of an image that should be used instead of - norm.mgz as the base image for the screenshots. Can be - an individual file (which would not be appropriate for - multi-subject analysis) or can be a file without + norm.mgz as the base image for the screenshots. Can be + an individual file (which would not be appropriate for + multi-subject analysis) or can be a file without pathname and with the same filename across subjects within the 'mri' - subdirectory of an individual FreeSurfer results directory + subdirectory of an individual FreeSurfer results directory (which would be appropriate for multi-subject analysis). --screenshots_overlay - Path to an image that should be used instead of aseg.mgz - as the overlay image for the screenshots can also be none. - Can be an individual file (which would not be appropriate + Path to an image that should be used instead of aseg.mgz + as the overlay image for the screenshots can also be none. + Can be an individual file (which would not be appropriate for multi-subject analysis) or can be a file without pathname and with the same filename across subjects within the 'mri' subdirectory - of an individual FreeSurfer results directory + of an individual FreeSurfer results directory (which would be appropriate for multi-subject analysis). --screenshots_surf [ ...] - One or more surface files that should be used instead of + One or more surface files that should be used instead of [lr]h.white and [lr]h.pial; can also be none. - Can be one or more individual file(s) (which would not + Can be one or more individual file(s) (which would not be appropriate for multi-subject analysis) or - can be a (list of) file(s) without pathname and with the same + can be a (list of) file(s) without pathname and with the same filename across subjects within the 'surf' - subdirectory of an individual FreeSurfer results directory + subdirectory of an individual FreeSurfer results directory (which would be appropriate for multi-subject analysis). --screenshots_views [ ...] - One or more views to use for the screenshots in the form of + One or more views to use for the screenshots in the form of x= y= and/or z=. Order does not matter. Default views are x=-10 x=10 y=0 z=0. diff --git a/dev/_static/basic.css b/dev/_static/basic.css index f316efc..7ebbd6d 100644 --- a/dev/_static/basic.css +++ b/dev/_static/basic.css @@ -1,12 +1,5 @@ /* - * basic.css - * ~~~~~~~~~ - * * Sphinx stylesheet -- basic theme. - * - * :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS. - * :license: BSD, see LICENSE for details. - * */ /* -- main layout ----------------------------------------------------------- */ @@ -115,15 +108,11 @@ img { /* -- search page ----------------------------------------------------------- */ ul.search { - margin: 10px 0 0 20px; - padding: 0; + margin-top: 10px; } ul.search li { - padding: 5px 0 5px 20px; - background-image: url(file.png); - background-repeat: no-repeat; - background-position: 0 7px; + padding: 5px 0; } ul.search li a { diff --git a/dev/_static/doctools.js b/dev/_static/doctools.js index 4d67807..0398ebb 100644 --- a/dev/_static/doctools.js +++ b/dev/_static/doctools.js @@ -1,12 +1,5 @@ /* - * doctools.js - * ~~~~~~~~~~~ - * * Base JavaScript utilities for all Sphinx HTML documentation. - * - * :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS. - * :license: BSD, see LICENSE for details. - * */ "use strict"; diff --git a/dev/_static/language_data.js b/dev/_static/language_data.js index 367b8ed..c7fe6c6 100644 --- a/dev/_static/language_data.js +++ b/dev/_static/language_data.js @@ -1,13 +1,6 @@ /* - * language_data.js - * ~~~~~~~~~~~~~~~~ - * * This script contains the language-specific data used by searchtools.js, * namely the list of stopwords, stemmer, scorer and splitter. - * - * :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS. - * :license: BSD, see LICENSE for details. - * */ var stopwords = ["a", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "into", "is", "it", "near", "no", "not", "of", "on", "or", "such", "that", "the", "their", "then", "there", "these", "they", "this", "to", "was", "will", "with"]; diff --git a/dev/_static/searchtools.js b/dev/_static/searchtools.js index b08d58c..2c774d1 100644 --- a/dev/_static/searchtools.js +++ b/dev/_static/searchtools.js @@ -1,12 +1,5 @@ /* - * searchtools.js - * ~~~~~~~~~~~~~~~~ - * * Sphinx JavaScript utilities for the full-text search. - * - * :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS. - * :license: BSD, see LICENSE for details. - * */ "use strict"; @@ -20,7 +13,7 @@ if (typeof Scorer === "undefined") { // and returns the new score. /* score: result => { - const [docname, title, anchor, descr, score, filename] = result + const [docname, title, anchor, descr, score, filename, kind] = result return score }, */ @@ -47,6 +40,14 @@ if (typeof Scorer === "undefined") { }; } +// Global search result kind enum, used by themes to style search results. +class SearchResultKind { + static get index() { return "index"; } + static get object() { return "object"; } + static get text() { return "text"; } + static get title() { return "title"; } +} + const _removeChildren = (element) => { while (element && element.lastChild) element.removeChild(element.lastChild); }; @@ -64,9 +65,13 @@ const _displayItem = (item, searchTerms, highlightTerms) => { const showSearchSummary = DOCUMENTATION_OPTIONS.SHOW_SEARCH_SUMMARY; const contentRoot = document.documentElement.dataset.content_root; - const [docName, title, anchor, descr, score, _filename] = item; + const [docName, title, anchor, descr, score, _filename, kind] = item; let listItem = document.createElement("li"); + // Add a class representing the item's type: + // can be used by a theme's CSS selector for styling + // See SearchResultKind for the class names. + listItem.classList.add(`kind-${kind}`); let requestUrl; let linkUrl; if (docBuilder === "dirhtml") { @@ -115,8 +120,10 @@ const _finishSearch = (resultCount) => { "Your search did not match any documents. Please make sure that all words are spelled correctly and that you've selected enough categories." ); else - Search.status.innerText = _( - "Search finished, found ${resultCount} page(s) matching the search query." + Search.status.innerText = Documentation.ngettext( + "Search finished, found one page matching the search query.", + "Search finished, found ${resultCount} pages matching the search query.", + resultCount, ).replace('${resultCount}', resultCount); }; const _displayNextItem = ( @@ -138,7 +145,7 @@ const _displayNextItem = ( else _finishSearch(resultCount); }; // Helper function used by query() to order search results. -// Each input is an array of [docname, title, anchor, descr, score, filename]. +// Each input is an array of [docname, title, anchor, descr, score, filename, kind]. // Order the results by score (in opposite order of appearance, since the // `_displayNextItem` function uses pop() to retrieve items) and then alphabetically. const _orderResultsByScoreThenName = (a, b) => { @@ -248,6 +255,7 @@ const Search = { searchSummary.classList.add("search-summary"); searchSummary.innerText = ""; const searchList = document.createElement("ul"); + searchList.setAttribute("role", "list"); searchList.classList.add("search"); const out = document.getElementById("search-results"); @@ -318,7 +326,7 @@ const Search = { const indexEntries = Search._index.indexentries; // Collect multiple result groups to be sorted separately and then ordered. - // Each is an array of [docname, title, anchor, descr, score, filename]. + // Each is an array of [docname, title, anchor, descr, score, filename, kind]. const normalResults = []; const nonMainIndexResults = []; @@ -337,6 +345,7 @@ const Search = { null, score + boost, filenames[file], + SearchResultKind.title, ]); } } @@ -354,6 +363,7 @@ const Search = { null, score, filenames[file], + SearchResultKind.index, ]; if (isMain) { normalResults.push(result); @@ -475,6 +485,7 @@ const Search = { descr, score, filenames[match[0]], + SearchResultKind.object, ]); }; Object.keys(objects).forEach((prefix) => @@ -585,6 +596,7 @@ const Search = { null, score, filenames[file], + SearchResultKind.text, ]); } return results; diff --git a/dev/api/generated/fsqc.checkCCSize.html b/dev/api/generated/fsqc.checkCCSize.html index 15e3199..7046cea 100644 --- a/dev/api/generated/fsqc.checkCCSize.html +++ b/dev/api/generated/fsqc.checkCCSize.html @@ -5,7 +5,7 @@ - + fsqc.checkCCSize - fsqc @@ -281,15 +281,15 @@
    Parameters:
    -
    subjects_dirstr

    The directory containing subject data.

    +
    subjects_dirstr

    The directory containing subject data.

    -
    subjectstr

    The name of the subject.

    +
    subjectstr

    The name of the subject.

    Returns:
    -
    relative_ccfloat

    The relative size of the corpus callosum.

    +
    relative_ccfloat

    The relative size of the corpus callosum.

    @@ -375,7 +375,7 @@

    - + diff --git a/dev/api/generated/fsqc.checkContrast.html b/dev/api/generated/fsqc.checkContrast.html index cd56e27..127a33a 100644 --- a/dev/api/generated/fsqc.checkContrast.html +++ b/dev/api/generated/fsqc.checkContrast.html @@ -5,7 +5,7 @@ - + fsqc.checkContrast - fsqc @@ -280,17 +280,17 @@
    Parameters:
    -
    subjects_dirstr

    The directory containing subject data.

    +
    subjects_dirstr

    The directory containing subject data.

    -
    subjectstr

    The name of the subject.

    +
    subjectstr

    The name of the subject.

    Returns:
    -
    con_lh_snrfloat

    Signal-to-noise ratio (SNR) for the left hemisphere WM/GM contrast.

    +
    con_lh_snrfloat

    Signal-to-noise ratio (SNR) for the left hemisphere WM/GM contrast.

    -
    con_rh_snrfloat

    Signal-to-noise ratio (SNR) for the right hemisphere WM/GM contrast.

    +
    con_rh_snrfloat

    Signal-to-noise ratio (SNR) for the right hemisphere WM/GM contrast.

    @@ -377,7 +377,7 @@ - + diff --git a/dev/api/generated/fsqc.checkRotation.html b/dev/api/generated/fsqc.checkRotation.html index 492e481..4bb9913 100644 --- a/dev/api/generated/fsqc.checkRotation.html +++ b/dev/api/generated/fsqc.checkRotation.html @@ -5,7 +5,7 @@ - + fsqc.checkRotation - fsqc @@ -278,19 +278,19 @@
    Parameters:
    -
    subjects_dirstr

    The directory containing subject data.

    +
    subjects_dirstr

    The directory containing subject data.

    -
    subjectstr

    The name of the subject.

    +
    subjectstr

    The name of the subject.

    Returns:
    -
    rot_tal_xfloat

    Rotation angle around the x-axis in radians.

    +
    rot_tal_xfloat

    Rotation angle around the x-axis in radians.

    -
    rot_tal_yfloat

    Rotation angle around the y-axis in radians.

    +
    rot_tal_yfloat

    Rotation angle around the y-axis in radians.

    -
    rot_tal_zfloat

    Rotation angle around the z-axis in radians.

    +
    rot_tal_zfloat

    Rotation angle around the z-axis in radians.

    @@ -378,7 +378,7 @@ - + diff --git a/dev/api/generated/fsqc.checkSNR.html b/dev/api/generated/fsqc.checkSNR.html index d731fe6..0b2e2a3 100644 --- a/dev/api/generated/fsqc.checkSNR.html +++ b/dev/api/generated/fsqc.checkSNR.html @@ -5,7 +5,7 @@ - + fsqc.checkSNR - fsqc @@ -284,24 +284,24 @@
    Parameters:
    -
    subjects_dirstr

    The directory containing subject data.

    +
    subjects_dirstr

    The directory containing subject data.

    -
    subjectstr

    The name of the subject.

    +
    subjectstr

    The name of the subject.

    -
    nb_erodeint, optional

    The number of erosions, default is 3.

    +
    nb_erodeint, optional

    The number of erosions, default is 3.

    -
    ref_imagestr, optional

    The reference image, default is “norm.mgz”, can be changed to “orig.mgz”.

    +
    ref_imagestr, optional

    The reference image, default is “norm.mgz”, can be changed to “orig.mgz”.

    -
    aparc_imagestr, optional

    The aparc+aseg image, default is “aparc+aseg.mgz”, can +

    aparc_imagestr, optional

    The aparc+aseg image, default is “aparc+aseg.mgz”, can be changed to “aparc+aseg.orig.mgz” for FastSurfer output.

    Returns:
    -
    wm_snrfloat

    The signal-to-noise ratio of the white matter.

    +
    wm_snrfloat

    The signal-to-noise ratio of the white matter.

    -
    gm_snrfloat

    The signal-to-noise ratio of the gray matter.

    +
    gm_snrfloat

    The signal-to-noise ratio of the gray matter.

    @@ -390,7 +390,7 @@ - + diff --git a/dev/api/generated/fsqc.checkTopology.html b/dev/api/generated/fsqc.checkTopology.html index 805de55..57feb10 100644 --- a/dev/api/generated/fsqc.checkTopology.html +++ b/dev/api/generated/fsqc.checkTopology.html @@ -5,7 +5,7 @@ - + fsqc.checkTopology - fsqc @@ -280,25 +280,25 @@
    Parameters:
    -
    subjects_dirstr

    The directory containing subject data.

    +
    subjects_dirstr

    The directory containing subject data.

    -
    subjectstr

    The name of the subject.

    +
    subjectstr

    The name of the subject.

    Returns:
    -
    lh_holesint

    Number of holes in the left hemisphere.

    +
    lh_holesint

    Number of holes in the left hemisphere.

    -
    rh_holesint

    Number of holes in the right hemisphere.

    +
    rh_holesint

    Number of holes in the right hemisphere.

    -
    lh_defectsint

    Number of defects in the left hemisphere.

    +
    lh_defectsint

    Number of defects in the left hemisphere.

    -
    rh_defectsint

    Number of defects in the right hemisphere.

    +
    rh_defectsint

    Number of defects in the right hemisphere.

    -
    topo_time_lhfloat

    Topological fixing time for the left hemisphere.

    +
    topo_time_lhfloat

    Topological fixing time for the left hemisphere.

    -
    topo_time_rhfloat

    Topological fixing time for the right hemisphere.

    +
    topo_time_rhfloat

    Topological fixing time for the right hemisphere.

    @@ -385,7 +385,7 @@ - + diff --git a/dev/api/generated/fsqc.createScreenshots.html b/dev/api/generated/fsqc.createScreenshots.html index b892f32..52e34a4 100644 --- a/dev/api/generated/fsqc.createScreenshots.html +++ b/dev/api/generated/fsqc.createScreenshots.html @@ -5,7 +5,7 @@ - + fsqc.createScreenshots - fsqc @@ -273,47 +273,52 @@

    This module provides a function to create screenshots

    -fsqc.createScreenshots.createScreenshots(SUBJECT, SUBJECTS_DIR, OUTFILE, INTERACTIVE=True, LAYOUT=None, BASE=['default'], OVERLAY=['default'], LABELS=None, SURF=['default'], SURFCOLOR=['default'], VIEWS=['default'], XLIM=None, YLIM=None, BINARIZE=False, ORIENTATION=['radiological'])[source]
    +fsqc.createScreenshots.createScreenshots(SUBJECT, SUBJECTS_DIR, OUTFILE, INTERACTIVE=True, LAYOUT='default', BASE='default', OVERLAY='default', LABELS=None, SURF='default', SURFCOLOR='default', VIEWS='default', XLIM=None, YLIM=None, BINARIZE=False, ORIENTATION='radiological')[source]

    Function to create screenshots.

    Parameters:
    -
    SUBJECTstr

    The subject.

    +
    SUBJECTstr

    The subject.

    -
    SUBJECTS_DIRstr

    The subjects directory.

    +
    SUBJECTS_DIRstr

    The subjects directory.

    -
    OUTFILEstr

    The output file path.

    +
    OUTFILEstr

    The output file path.

    -
    INTERACTIVEbool, optional

    Flag for interactive mode, default is True.

    +
    INTERACTIVEbool, optional

    Flag for interactive mode, default is True.

    -
    LAYOUTstr, optional

    The layout, default is None.

    +
    LAYOUTlist, optional

    The layout, default is “default”.

    -
    BASElist, optional

    The base, default is [“default”].

    +
    BASEstr, optional

    The base, default is “default”. +Load norm.mgz as default.

    -
    OVERLAYlist, optional

    The overlay, default is [“default”].

    +
    OVERLAYstr, optional

    The overlay, default is “default”. +Load aseg.mgz as default. +Can be None.

    -
    LABELSNone or str, optional

    The labels, default is None.

    +
    LABELSNone or str, optional

    The labels, default is None.

    -
    SURFlist, optional

    The surface, default is [“default”].

    +
    SURFlist, optional

    The surface, default is “default”. +Can be None.

    -
    SURFCOLORlist, optional

    The surface color, default is [“default”].

    +
    SURFCOLORlist, optional

    The surface color, default is “default”. +Can be None.

    -
    VIEWSlist, optional

    The views, default is [“default”].

    +
    VIEWSlist, optional

    The views, default is “default”.

    -
    XLIMNone or list, optional

    The x limits, default is None.

    +
    XLIMNone or list, optional

    The x limits, default is None.

    -
    YLIMNone or list, optional

    The y limits, default is None.

    +
    YLIMNone or list, optional

    The y limits, default is None.

    -
    BINARIZEbool, optional

    Flag for binarization, default is False.

    +
    BINARIZEbool, optional

    Flag for binarization, default is False.

    -
    ORIENTATIONlist, optional

    The orientation, default is [“radiological”].

    +
    ORIENTATIONstr, optional

    The orientation, default is “radiological”.

    Notes

    -

    BASE, VIEWS must be lists, can be [“default”].

    -

    OVERLAY, SURF, SURFCOLOR can be lists or None, can be [“default”].

    +

    LAYOUT, VIEWS can be lists or “default”.

    +

    SURF, SURFCOLOR can be lists, None, or “default”.

    XLIM, YLIM can be lists of list two-element numeric lists or None; if given, length must match length of VIEWS. x and y refer to final image dimensions, not MR volume dimensions.

    @@ -396,7 +401,7 @@ - + diff --git a/dev/api/generated/fsqc.createSurfacePlots.html b/dev/api/generated/fsqc.createSurfacePlots.html index 5e4069a..bccde31 100644 --- a/dev/api/generated/fsqc.createSurfacePlots.html +++ b/dev/api/generated/fsqc.createSurfacePlots.html @@ -5,7 +5,7 @@ - + fsqc.createSurfacePlots - fsqc @@ -278,21 +278,21 @@
    Parameters:
    -
    SUBJECTstr

    The subject.

    +
    SUBJECTstr

    The subject.

    -
    SUBJECTS_DIRstr

    The subjects directory.

    +
    SUBJECTS_DIRstr

    The subjects directory.

    -
    SURFACES_OUTDIRstr

    The output directory for surface plots.

    +
    SURFACES_OUTDIRstr

    The output directory for surface plots.

    -
    VIEWSlist

    List of views for which surface plots should be created.

    +
    VIEWSlist

    List of views for which surface plots should be created.

    -
    FASTSURFERbool

    Flag indicating whether FastSurfer processing was used.

    +
    FASTSURFERbool

    Flag indicating whether FastSurfer processing was used.

    Returns:
    -
    None

    The function returns nothing.

    +
    None

    The function returns nothing.

    @@ -376,7 +376,7 @@ - + diff --git a/dev/api/generated/fsqc.evaluateFornixSegmentation.html b/dev/api/generated/fsqc.evaluateFornixSegmentation.html index a89bf07..223b4ec 100644 --- a/dev/api/generated/fsqc.evaluateFornixSegmentation.html +++ b/dev/api/generated/fsqc.evaluateFornixSegmentation.html @@ -5,7 +5,7 @@ - + fsqc.evaluateFornixSegmentation - fsqc @@ -273,7 +273,7 @@

    This module provides a function to evaluate potential missegmentation of the fornix

    -fsqc.evaluateFornixSegmentation.evaluateFornixSegmentation(SUBJECT, SUBJECTS_DIR, OUTPUT_DIR, CREATE_SCREENSHOT=True, SCREENSHOTS_OUTFILE=[], RUN_SHAPEDNA=True, N_EIGEN=15)[source]
    +fsqc.evaluateFornixSegmentation.evaluateFornixSegmentation(SUBJECT, SUBJECTS_DIR, OUTPUT_DIR, CREATE_SCREENSHOT=True, SCREENSHOTS_OUTFILE=None, RUN_SHAPEDNA=True, N_EIGEN=15, WRITE_EIGEN=True)[source]

    Evaluate potential missegmentation of the fornix.

    This script assesses the potential missegmentation of the fornix, which might erroneously be attached to the ‘corpus callosum’ label.

    @@ -288,19 +288,21 @@
    Parameters:
    -
    SUBJECTstr

    The subject identifier.

    +
    SUBJECTstr

    The subject identifier.

    -
    SUBJECTS_DIRstr

    The directory containing subject data.

    +
    SUBJECTS_DIRstr

    The directory containing subject data.

    -
    OUTPUT_DIRstr

    The output directory.

    +
    OUTPUT_DIRstr

    The output directory.

    -
    CREATE_SCREENSHOTbool, optional (default: True)

    Whether to create screenshots.

    +
    CREATE_SCREENSHOTbool, optional (default: True)

    Whether to create screenshots.

    -
    SCREENSHOTS_OUTFILEstr or list, optional (default: [])

    File or list of files for screenshots.

    +
    SCREENSHOTS_OUTFILEstr or list, optional (default: None)

    File or list of files for screenshots.

    -
    RUN_SHAPEDNAbool, optional (default: True)

    Whether to run shape analysis.

    +
    RUN_SHAPEDNAbool, optional (default: True)

    Whether to run shape analysis.

    -
    N_EIGENint, optional (default: 30)

    Number of Eigenvalues for shape analysis.

    +
    N_EIGENint, optional (default: 30)

    Number of Eigenvalues for shape analysis.

    +
    +
    WRITE_EIGENbool, optional (default: True)

    Write csv file with eigenvalues (or nans) to output directory.

    @@ -391,7 +393,7 @@ - + diff --git a/dev/api/generated/fsqc.evaluateHippocampalSegmentation.html b/dev/api/generated/fsqc.evaluateHippocampalSegmentation.html index a0bf25e..532f08f 100644 --- a/dev/api/generated/fsqc.evaluateHippocampalSegmentation.html +++ b/dev/api/generated/fsqc.evaluateHippocampalSegmentation.html @@ -5,7 +5,7 @@ - + fsqc.evaluateHippocampalSegmentation - fsqc @@ -274,7 +274,7 @@ hippocampus and amygdala

    -fsqc.evaluateHippocampalSegmentation.evaluateHippocampalSegmentation(SUBJECT, SUBJECTS_DIR, OUTPUT_DIR, CREATE_SCREENSHOT=True, SCREENSHOTS_OUTFILE=[], SCREENSHOTS_ORIENTATION=['radiological'], HEMI='lh', LABEL='T1.v21')[source]
    +fsqc.evaluateHippocampalSegmentation.evaluateHippocampalSegmentation(SUBJECT, SUBJECTS_DIR, OUTPUT_DIR, CREATE_SCREENSHOT=True, SCREENSHOTS_OUTFILE=None, SCREENSHOTS_ORIENTATION='radiological', HEMI='lh', LABEL='T1.v21')[source]

    Evaluate potential missegmentation of the hippocampus and amygdala.

    This script evaluates potential missegmentation of the hippocampus and amygdala as created by FreeSurfer 7.1’s dedicated module: @@ -285,27 +285,27 @@

    Parameters:
    -
    SUBJECTstr

    The subject identifier.

    +
    SUBJECTstr

    The subject identifier.

    -
    SUBJECTS_DIRstr

    The directory containing subject data.

    +
    SUBJECTS_DIRstr

    The directory containing subject data.

    -
    OUTPUT_DIRstr

    The output directory.

    +
    OUTPUT_DIRstr

    The output directory.

    -
    CREATE_SCREENSHOTbool, optional, default: True

    Whether to create screenshots.

    +
    CREATE_SCREENSHOTbool, optional, default: True

    Whether to create screenshots.

    -
    SCREENSHOTS_OUTFILEstr or list, optional, default: []

    File or list of files for screenshots.

    +
    SCREENSHOTS_OUTFILEstr or list, optional, default: None

    File or list of files for screenshots.

    -
    SCREENSHOTS_ORIENTATIONstr or list, optional, default: [“radiological”]

    Orientation or list of orientations for screenshots.

    +
    SCREENSHOTS_ORIENTATIONstr, optional, default: “radiological”

    Orientation for screenshots.

    -
    HEMIstr, optional, default: “lh”

    Hemisphere to evaluate, either ‘lh’ or ‘rh’.

    +
    HEMIstr, optional, default: “lh”

    Hemisphere to evaluate, either ‘lh’ or ‘rh’.

    -
    LABELstr, optional, default: “T1.v21”

    Label for hippocampal and amygdala segmentation.

    +
    LABELstr, optional, default: “T1.v21”

    Label for hippocampal and amygdala segmentation.

    Returns:
    -
    None

    This function returns nothing.

    +
    None

    This function returns nothing.

    @@ -393,7 +393,7 @@ - + diff --git a/dev/api/generated/fsqc.evaluateHypothalamicSegmentation.html b/dev/api/generated/fsqc.evaluateHypothalamicSegmentation.html index 26e35be..8e8164d 100644 --- a/dev/api/generated/fsqc.evaluateHypothalamicSegmentation.html +++ b/dev/api/generated/fsqc.evaluateHypothalamicSegmentation.html @@ -5,7 +5,7 @@ - + fsqc.evaluateHypothalamicSegmentation - fsqc @@ -273,7 +273,7 @@

    This module provides a function to evaluate potential missegmentation of the hypothalamus

    -fsqc.evaluateHypothalamicSegmentation.evaluateHypothalamicSegmentation(SUBJECT, SUBJECTS_DIR, OUTPUT_DIR, CREATE_SCREENSHOT=True, SCREENSHOTS_OUTFILE=[], SCREENSHOTS_ORIENTATION=['radiological'])[source]
    +fsqc.evaluateHypothalamicSegmentation.evaluateHypothalamicSegmentation(SUBJECT, SUBJECTS_DIR, OUTPUT_DIR, CREATE_SCREENSHOT=True, SCREENSHOTS_OUTFILE=None, SCREENSHOTS_ORIENTATION='radiological')[source]

    Evaluate potential missegmentation of the hypothalamus.

    This script evaluates potential missegmentation of the hypothalamus as created by FreeSurfer 7.2’s module for hypothalamic segmentation: @@ -284,23 +284,23 @@

    Parameters:
    -
    SUBJECTstr

    The subject identifier.

    +
    SUBJECTstr

    The subject identifier.

    -
    SUBJECTS_DIRstr

    The directory containing subject data.

    +
    SUBJECTS_DIRstr

    The directory containing subject data.

    -
    OUTPUT_DIRstr

    The output directory.

    +
    OUTPUT_DIRstr

    The output directory.

    -
    CREATE_SCREENSHOTbool, optional, default: True

    Whether to create screenshots.

    +
    CREATE_SCREENSHOTbool, optional, default: True

    Whether to create screenshots.

    -
    SCREENSHOTS_OUTFILEstr or list, optional, default: []

    File or list of files for screenshots.

    +
    SCREENSHOTS_OUTFILEstr or list, optional, default: None

    File or list of files for screenshots.

    -
    SCREENSHOTS_ORIENTATIONstr or list, optional, default: [“radiological”]

    Orientation or list of orientations for screenshots.

    +
    SCREENSHOTS_ORIENTATIONstr, optional, default: “radiological”

    Orientation for screenshots.

    Returns:
    -
    None

    This function return nothing.

    +
    None

    This function return nothing.

    @@ -388,7 +388,7 @@ - + diff --git a/dev/api/generated/fsqc.fsqcMain.html b/dev/api/generated/fsqc.fsqcMain.html index 5e7c56d..c40b275 100644 --- a/dev/api/generated/fsqc.fsqcMain.html +++ b/dev/api/generated/fsqc.fsqcMain.html @@ -5,7 +5,7 @@ - + fsqc.fsqcMain - fsqc @@ -278,15 +278,15 @@
    Parameters:
    -
    print_helpbool, optional, default: True

    Whether to print the help message.

    +
    print_helpbool, optional, default: True

    Whether to print the help message.

    -
    return_helpbool, optional, default: False

    Whether to return the help message as a string.

    +
    return_helpbool, optional, default: False

    Whether to return the help message as a string.

    Returns:
    -
    None or str

    If print_help is True, the help message is printed. If return_help +

    None or str

    If print_help is True, the help message is printed. If return_help is True, the help message is returned as a string.

    @@ -301,7 +301,7 @@
    Returns:
    -
    str

    The version of the ‘fsqc’ package if installed; otherwise, “unknown”.

    +
    str

    The version of the ‘fsqc’ package if installed; otherwise, “unknown”.

    @@ -313,93 +313,102 @@
    -fsqc.fsqcMain.run_fsqc(subjects_dir, output_dir, argsDict=None, subjects=None, subjects_file=None, shape=False, screenshots=False, screenshots_html=False, screenshots_base='default', screenshots_overlay='default', screenshots_surf='default', screenshots_views='default', screenshots_layout=None, screenshots_orientation=['radiological'], surfaces=False, surfaces_html=False, surfaces_views=['left', 'right', 'superior', 'inferior'], skullstrip=False, skullstrip_html=False, fornix=False, fornix_html=False, hypothalamus=False, hypothalamus_html=False, hippocampus=False, hippocampus_html=False, hippocampus_label=None, outlier=False, outlier_table=None, fastsurfer=False, exit_on_error=False, logfile=None)[source]
    +fsqc.fsqcMain.run_fsqc(subjects_dir, output_dir, argsDict=None, subjects=None, subjects_file=None, shape=False, screenshots=False, screenshots_html=False, screenshots_base='default', screenshots_overlay='default', screenshots_surf='default', screenshots_views='default', screenshots_layout='default', screenshots_orientation='radiological', surfaces=False, surfaces_html=False, surfaces_views=None, skullstrip=False, skullstrip_html=False, fornix=False, fornix_html=False, hypothalamus=False, hypothalamus_html=False, hippocampus=False, hippocampus_html=False, hippocampus_label=None, outlier=False, outlier_table=None, fastsurfer=False, no_group=False, group_only=False, exit_on_error=False, skip_existing=False, logfile=None)[source]

    Run the fsqc submodules.

    This is the main function to run the fsqc submodules.

    Parameters:
    -
    subjects_dirstr

    Subjects directory.

    +
    subjects_dirstr

    Subjects directory.

    -
    output_dirstr

    Output directory.

    +
    output_dirstr

    Output directory.

    -
    argsDictdict, default: None

    Dictionary of input arguments.

    +
    argsDictdict, default: None

    Dictionary of input arguments.

    -
    subjectslist of str, default: None

    List of subjects to process. If None, all valid cases in the input +

    subjectslist of str, default: None

    List of subjects to process. If None, all valid cases in the input directory will be processed. Cannot be used with subjects_file.

    -
    subjects_filestr, default: None

    A text file that contains a list of subjects to be processed. Cannot +

    subjects_filestr, default: None

    A text file that contains a list of subjects to be processed. Cannot be used with subjects.

    -
    shapebool, default: False

    Conduct shape analysis using brainprint.

    +
    shapebool, default: False

    Conduct shape analysis using brainprint.

    -
    screenshotsbool, default: False

    Create screenshots of MR image with optional overlays.

    +
    screenshotsbool, default: False

    Create screenshots of MR image with optional overlays.

    -
    screenshots_htmlbool, default: False

    Create screenshots and html summary page.

    +
    screenshots_htmlbool, default: False

    Create screenshots and html summary page.

    -
    screenshots_basestr, default: “default”

    Filename for base image for screenshots.

    +
    screenshots_basestr, default: “default”

    Filename for base image for screenshots.

    -
    screenshots_overlaystr, default: “default”

    Filename for overlay image for screenshots.

    +
    screenshots_overlaystr, default: “default”

    Filename for overlay image for screenshots.

    -
    screenshots_surflist of str, default: “default”

    List of filenames of surface files to include in screenshots.

    +
    screenshots_surf(list of) str, default: “default”

    List of filenames of surface files to include in screenshots.

    -
    screenshots_viewslist of str, default: “default”

    List of parameters to set the views of the screenshots. +

    screenshots_views(list of) str, default: “default”

    List of parameters to set the views of the screenshots. Example: [‘x=0’, ‘x=-10’, ‘x=10’, ‘y=20’, ‘z=0’].

    -
    screenshots_layoutlist of int, default: None

    Layout describing rows and columns of the screenshots. +

    screenshots_layoutstr or list of int, default: “default”

    Layout describing rows and columns of the screenshots. Example: [1, 4] (one row, four columns).

    -
    screenshots_orientationlist of str, default: [“radiological”]

    Orientation of screenshots. Either “radiological” or “neurological”.

    +
    screenshots_orientationstr, default: “radiological”

    Orientation of screenshots. Either “radiological” or “neurological”.

    -
    surfacesbool, default: False

    Create screenshots of pial and inflated surfaces.

    +
    surfacesbool, default: False

    Create screenshots of pial and inflated surfaces.

    -
    surfaces_htmlbool, default: False

    Create screenshots of pial and inflated surfaces and html summary page.

    +
    surfaces_htmlbool, default: False

    Create screenshots of pial and inflated surfaces and html summary page.

    -
    surfaces_viewslist of str, default: [“left”, “right”, “superior”, “inferior”]

    List of parameters to set the views of the surface plots.

    +
    surfaces_viewslist of str, default: [“left”, “right”, “superior”, “inferior”]

    List of parameters to set the views of the surface plots.

    -
    skullstripbool, default: False

    Create screeenshot of MR image and skullstrip overlay.

    +
    skullstripbool, default: False

    Create screeenshot of MR image and skullstrip overlay.

    -
    skullstrip_htmlbool, default: False

    Create screeenshot of MR image and skullstrip overlay, and create html +

    skullstrip_htmlbool, default: False

    Create screeenshot of MR image and skullstrip overlay, and create html summary page.

    -
    fornixbool, default: False

    Create screenshot of MR imge and corpus callosum overlay to identify +

    fornixbool, default: False

    Create screenshot of MR imge and corpus callosum overlay to identify fornix oversegmentation.

    -
    fornix_htmlbool, default: False

    Create screenshot of MR imge and corpus callosum overlay with html +

    fornix_htmlbool, default: False

    Create screenshot of MR imge and corpus callosum overlay with html summary page.

    -
    hypothalamusbool, default: False

    Create screenhots of hypothalamic segmentation. Requires running +

    hypothalamusbool, default: False

    Create screenhots of hypothalamic segmentation. Requires running FreeSurfer’s hypothalamus add-on module.

    -
    hypothalamus_htmlbool, default: False

    Create screenhots of hypothalamic segmentation with html summary page. +

    hypothalamus_htmlbool, default: False

    Create screenhots of hypothalamic segmentation with html summary page. Requires running FreeSurfer’s hypothalamus add-on module.

    -
    hippocampusbool, default: False

    Create screenhots of hippocampal segmentation. Requires running +

    hippocampusbool, default: False

    Create screenhots of hippocampal segmentation. Requires running FreeSurfer’s hippocampus add-on module.

    -
    hippocampus_htmlbool, default: False

    Create screenhots of hippocampal segmentation with html summary page. +

    hippocampus_htmlbool, default: False

    Create screenhots of hippocampal segmentation with html summary page. Requires running FreeSurfer’s hippocampus add-on module.

    -
    hippocampus_labelstr, default: None

    Label used for the hippocampal segmentations. Example: “T1.v21”. The +

    hippocampus_labelstr, default: None

    Label used for the hippocampal segmentations. Example: “T1.v21”. The full filename would be [lr]h.hippoAmygLabels-<LABEL>.FSvoxelSpace.mgz.

    -
    outlierbool, default: False

    Conduct outlier analysis.

    +
    outlierbool, default: False

    Conduct outlier analysis.

    -
    outlier_tablestr, default: None

    Specify custom norms table for outlier analysis.

    +
    outlier_tablestr, default: None

    Specify custom norms table for outlier analysis.

    -
    fastsurferbool, default: False

    Use FastSurfer instead of FreeSurfer input.

    +
    fastsurferbool, default: False

    Use FastSurfer instead of FreeSurfer input.

    -
    exit_on_errorbool, default: False

    Exit on error. If False, a warning is thrown and the analysis +

    no_groupbool, default: False

    Run script in subject-level mode. will compute individual files and +statistics, but not create group-level summaries.

    +
    +
    group_onlybool, default: False

    Run script in group mode. will create group-level summaries from +existing inputs.

    +
    +
    exit_on_errorbool, default: False

    Exit on error. If False, a warning is thrown and the analysis continues.

    -
    logfilestr, default: None

    Specify a custom location for the logfile. Default location is the +

    skip_existingbool, default: False

    Skip processing for a given case if output already exists, even with +possibly different parameters or settings.

    +
    +
    logfilestr, default: None

    Specify a custom location for the logfile. Default location is the output directory.

    Returns:
    -
    dict

    A dictionary of input arguments and processing directives.

    +
    dict

    A dictionary of input arguments and processing directives.

    @@ -485,7 +494,7 @@ - + diff --git a/dev/api/generated/fsqc.fsqcUtils.html b/dev/api/generated/fsqc.fsqcUtils.html index f545a65..8ad6f88 100644 --- a/dev/api/generated/fsqc.fsqcUtils.html +++ b/dev/api/generated/fsqc.fsqcUtils.html @@ -5,7 +5,7 @@ - + fsqc.fsqcUtils - fsqc @@ -279,11 +279,11 @@
    Parameters:
    -
    img_filestr

    Input image file path.

    +
    img_filestr

    Input image file path.

    -
    out_filestr

    Output transformed image file path.

    +
    out_filestr

    Output transformed image file path.

    -
    mat_filestr

    Transformation matrix file path (must be in xfm or lta format).

    +
    mat_filestr

    Transformation matrix file path (must be in xfm or lta format).

    interp{‘nearest’, ‘cubic’}

    Interpolation method to use.

    @@ -291,7 +291,7 @@
    Returns:
    -
    None

    This function returns nothing.

    +
    None

    This function returns nothing.

    @@ -305,17 +305,17 @@
    Parameters:
    -
    img_filestr

    Path to the input image file.

    +
    img_filestr

    Path to the input image file.

    -
    out_filestr

    Path to save the binarized image.

    +
    out_filestr

    Path to save the binarized image.

    -
    matcharray_like or None, optional

    Values to consider as True. If None, non-zero values are considered True.

    +
    matcharray_like or None, optional

    Values to consider as True. If None, non-zero values are considered True.

    Returns:
    -
    None

    This function returns nothing.

    +
    None

    This function returns nothing.

    @@ -331,7 +331,7 @@
    Parameters:
    -
    filenamestr

    Path to the MGH file.

    +
    filenamestr

    Path to the MGH file.

    @@ -359,17 +359,17 @@
    pnumpy.ndarray

    Array of values corresponding to vertex points, shape (n,).

    -
    levelsetslist or numpy.ndarray

    List or array of level set values.

    +
    levelsetslist or numpy.ndarray

    List or array of level set values.

    Returns:
    -
    vLVLlist

    List of interpolated vertices for each level set.

    +
    vLVLlist

    List of interpolated vertices for each level set.

    -
    lLVLlist

    List of triangle indices corresponding to the interpolated vertices for each level set.

    +
    lLVLlist

    List of triangle indices corresponding to the interpolated vertices for each level set.

    -
    iLVLlist

    List of triangle indices that intersect with the level set.

    +
    iLVLlist

    List of triangle indices that intersect with the level set.

    @@ -383,13 +383,13 @@
    Parameters:
    -
    filestr

    Path to the LTA file.

    +
    filestr

    Path to the LTA file.

    Returns:
    -
    dict

    A dictionary containing transformation information, including type, number of transforms, +

    dict

    A dictionary containing transformation information, including type, number of transforms, mean, sigma, and transformation matrices for source and destination volumes.

    @@ -493,7 +493,7 @@ - + diff --git a/dev/api/generated/fsqc.outlierDetection.html b/dev/api/generated/fsqc.outlierDetection.html index 66a99a8..0b00b8c 100644 --- a/dev/api/generated/fsqc.outlierDetection.html +++ b/dev/api/generated/fsqc.outlierDetection.html @@ -5,7 +5,7 @@ - + fsqc.outlierDetection - fsqc @@ -279,29 +279,29 @@
    Parameters:
    -
    subjectslist

    List of subject IDs.

    +
    subjectslist

    List of subject IDs.

    -
    subjects_dirstr

    Path to the FreeSurfer subjects directory.

    +
    subjects_dirstr

    Path to the FreeSurfer subjects directory.

    -
    output_dirstr

    Path to the output directory for saving results.

    +
    output_dirstr

    Path to the output directory for saving results.

    -
    outlierDictdict

    Dictionary containing outlier thresholds for different measures.

    +
    outlierDictdict

    Dictionary containing outlier thresholds for different measures.

    -
    min_no_subjectsint, optional

    Minimum number of subjects required for analysis.

    +
    min_no_subjectsint, optional

    Minimum number of subjects required for analysis.

    -
    hypothalamusbool, optional

    Flag to include hypothalamic values in the analysis.

    +
    hypothalamusbool, optional

    Flag to include hypothalamic values in the analysis.

    -
    hippocampusbool, optional

    Flag to include hippocampal values in the analysis.

    +
    hippocampusbool, optional

    Flag to include hippocampal values in the analysis.

    -
    hippocampus_labelstr or None, optional

    Label to identify the hippocampus (e.g., “Hippocampus”).

    +
    hippocampus_labelstr or None, optional

    Label to identify the hippocampus (e.g., “Hippocampus”).

    -
    fastsurferbool, optional

    Flag to use FastSurfer instead of FreeSurfer output files.

    +
    fastsurferbool, optional

    Flag to use FastSurfer instead of FreeSurfer output files.

    Returns:
    -
    tuple

    A tuple containing three dictionaries:

    +
    tuple

    A tuple containing three dictionaries: