Releases: donishadsmith/neurocaps
Releases · donishadsmith/neurocaps
0.18.5
♻ Changed
- Updated Dependencies:
- NumPy: version 2.0 and above can be installed.
- BrainSpace: requires version 0.1.16 and above.
Full Changelog: 0.18.4...0.18.5
0.18.4
🐛 Fixes
- Corrected region names for version "3v2" of the AAL atlas.
♻ Changed
- Added a specific logged warning when no confound names are found. If some confound names are missing,
they will still be listed accordingly. - Added a specific logged warnings for methods in
CAP
that use theruns
parameter. Warnings are issued if a subject
is missing any requested run, with an additional warning if all runs are missing.
Full Changelog: 0.18.3...0.18.4
0.18.3
🐛 Fixes
- More conservative maxsizes for
@lru_cache
, change@cache
inTimeseriesExtractor
to@lru_cache
. - Clean unused import.
Full Changelog: 0.18.2...0.18.3
0.18.2
- A simple pre commit hook added to remove a few trailing whitespace, add new lines, etc.
♻ Changed
- Add's
_get_target_indices
and_build_tree
to the init file for a shorter import path if cache needs to be cleared or
assessed. essentially allows:
New import:
from neurocaps._utils import _build_tree, _get_target_indices
Previous import:
from neurocaps._utils.analysis.cap2statmap import _build_tree, _get_target_indices
📖 Documentation
- Very minor doc fix.
Full Changelog: 0.18.1...0.18.2
0.18.1
🚀 New/Added
- Added "cbarlabels_size" kwarg to several plots to allow the font size of the colorbar labels to increase or decrease.
♻ Changed
- For
CAP.caps2radar
, when thelegend
kwarg is set to None, the legend will be removed entirely.
Full Changelog: 0.18.0...0.18.1
0.18.0
♻ Changed
- In
TimeseriesExtractor.get_bold
, location ofparallel_log_config
parameter in function signature moved
from being the last parameter to underneathn_cores
. Additionally,exclude_niftis
moved from being the second to last
parameter to being underneathexclude_subjects
.
Changes related to knn_dict
, which is only relevant for certain atlases that project poorly to surface space or
has a sparsity issue
- Added a "reference_atlas" key to allow Schaefer or AAL to be used as the reference atlas.
- The "remove_subcortical" key changed to "remove_labels".
- Default "k" from 1 to 3.
🐛 Fixes
Fixes only related to knn_dict
- "remove_labels" now only removes the labels from being interpolated as opposed to removing the label from being
interpolated in addition to removing the corresponding indices from the atlas entirely. - Certain internal helper functions -
_get_target_indices
and_build_tree
- from
neurocaps._utils.analyis.cap2statmap
now use functool'slru_cache
decorator so that the indices that the
non-background coordinated that need interpolation as well as the indices that don't need interpolation, based on
"remove_labels" are only computed once per session for every unique parameter combination. - Logged information related to
knn_dict
appears once per call ofCAP.caps2niftis
orCAP.caps2surf
instead of
for every iteration performed within these functions.
Full Changelog: 0.17.11...0.18.0
0.17.11
♻ Changed
- In
CAP.calculate_metrics
, ifcontinuous_runs
used, then in the "Run" column, the labels for these runs will
now follow the "run-" format and has changed from "continuous_runs" to run-continuous" - Also in
CAP.calculate_metrics
, the group labels in the dataframe will no longer replace whitespace with underline.
Do names such as "High ADHD" wil no longer change to "High_ADHD" in the dataframe. - The averaged transition matrix dataframe from
transition_matrix
now contains to index name "From\To" to show that
the index CAPs are "From" and the column CAPs are "To".
🐛 Fixes
- More robust error checking to ensure that the
subject_timeseries
follows the correct format when the
subject_timeseries
setter property is used inTimeseriesExtractor
. - For
space
setter property is used inTimeseriesExtractor
, checks to ensure it is a string.
0.17.10
♻ Changed
- Logger names now use
__name__
instead of__name__.split(".")[-1]
- Module folder and file naming in
neurocaps._utils
changed, only_utils
has the leading underscore. - Default logger now includes logger name in logged message.
🐛 Fixes
- Prevents logging duplication in certain user-defined logging scenarios when logs redirected.
0.17.9
📖 Documentation
- Enhanced documentation
- Documentation renders properly with Pylance in VSCode.
♻ Changed
- The
parcel_approach
stored as an property will remove the initial configuration sub-keys parameters ("n_rois",
"resolution_mm", "yeo_networks" for Schaefer and "version" for AAL) after the information from these sub-keys are used
internally to retrieve the appropriate parcellation. Thus, the dictionary will retain the primary keys:
"maps", "nodes", and "regions". However, similar to previous behavior, additional sub-keys can still be added, such as
adding a sub-key consisting of metadata, but they will be ignored and won't affect core operation. - When
parcel_approach
is included as a setter, or the required keys ("maps", "nodes", and "regions")
are detected, it will no longer reset the "maps", "nodes", and "regions" for "Schaefer" and "AAL". This allows the
"maps", "nodes", and "regions" to be modified for "Schaefer" and "AAL" if needed.
0.17.8
🚀 New/Added
- For
TimeseriesExtractor.get_bold()
,parallel_log_config
parameter added to pass an instance of
multiprocessing.Manager.Queue
to redirect logs if parallel processing is used.