Nilearn Versions Save

Machine learning for NeuroImaging in Python

0.10.4

2 weeks ago

Released April 2024

HIGHLIGHTS

Fixes

Enhancements

Changes

List of pull requests

New Contributors

Full Changelog: https://github.com/nilearn/nilearn/compare/0.10.3...0.10.4

0.10.3

3 months ago

Released January 2024

HIGHLIGHTS

[!WARNING]

Support for python 3.7 has been dropped. We recommend moving to python >= 3.11.

Minimum supported versions of packages have been bumped up:

  • Numpy – v1.19.0
  • SciPy – v1.8.0
  • Scikit-learn – v1.0.0
  • Nibabel – v4.0.0
  • Pandas – v1.1.5
  • Joblib – v1.0.0

NEW

  • The temp_file_lifetime parameter of interactive plots’ open_in_browser method is deprecated and has no effect (#4180 by Jerome Dockes)..

Fixes

Enhancements

Changes

  • Expose scipy CubicSpline extrapolate parameter in clean to control the interpolation of censored volumes in both ends of the BOLD signal data (#4028 by Jordi Huguet).

  • Make nilearn.reporting._get_clusters_table module public and move copy_img out of nilearn._utils.niimg (#4166 by Rémi Gau).

  • Private utility context manager write_tmp_imgs is refactored into function write_imgs_to_path (#4094 by Yasmin Mzayek).

  • Move user facing function concat_niimgs out of private module nilearn._utils.niimg_conversions (#4167 by Rémi Gau).

  • Remove leading underscore from non private functions to align with PEP8 (#4086 by Rémi Gau).

  • Make decoding/proximal_operator explicitly private to align with PEP8 (#4153 by Rémi Gau).

  • Make private functions public when used outside of their module nilearn.interface to align with PEP8 (#4168 by Rémi Gau).

  • img_to_signals_labels will also return masked_atlas in release 0.15. Meanwhile, use return_masked_atlas parameter to enable/disable this behavior. (#3761 by Mohammad Torabi).

  • cation Rename the parameter contrast_type in compute_contrast and attribute contrast_type in Contrast to stat_type (#4191 by Rémi Gau).

  • plot_surf_roi will raise a warning if roi_map contains negative or non-integer values; in version 0.13 this will be a ValueError (#4131 by Michelle Wang).

  • nilearn.datasets.fetch_bids_langloc_dataset will be deprecated in release 0.13 as it returns data simuilar to fetch_language_localizer_demo_dataset (#4219 by Rémi Gau).

  • the default parameter of fd_threshold and std_dvars_threshold in load_confounds with be updated to match fmriprep default in version 0.13 (#4225 by Hao-Ting Wang).

  • Combine GLM examples plot_fixed_effect and plot_fiac_analysis into a a single example plot_two_runs_model (#3191 by Taylor Salo and Rémi Gau).

  • Switch to using tox to manage environments during development and testing. All plotting python dependencies (matplotlib AND plotly) are now installed when running pip install nilearn[plotting] (#4029 by Rémi Gau).

List of pull requests

New Contributors

Full Changelog: https://github.com/nilearn/nilearn/compare/0.10.2...0.10.3

0.10.2

6 months ago

Released September 2023

HIGHLIGHTS

  • Volume plotting functions like plotting.plot_img now have an optional radiological parameter, defaulting to False. If True, this will invert the x-axis and L and R annotations to confirm to radiological conventional view..
  • Update Decoder objects to use the more efficient LogisticRegressionCV.
  • Add LassoCV as a new estimator option for Decoder objects
  • Add vmin and symmetric_cbar arguments to nilearn.plotting.plot_img_on_surf.
  • Improve contrasts allowing fixed effects on F contrasts
  • New experimental surface API to facilitate working with surface data in downstream surface-based analyses. We provide this API as a nilearn.experimental.surface module as it is still incomplete and subject to change without a deprecation cycle..

NEW

  • Volume plotting functions like plotting.plot_img now have an optional radiological parameter, defaulting to False. If True, this will invert the x-axis and L and R annotations to confirm to radiological conventional view..
  • New experimental surface API to facilitate working with surface data in downstream surface-based analyses. We provide this API as a nilearn.experimental.surface module as it is still incomplete and subject to change without a deprecation cycle..

Fixes

  • Fix bug in method transform_imgs of maskers.MultiNiftiMapsMasker and maskers.MultiNiftiLabelsMasker that would raise an error if a list of sample_mask was specified to fit_transform.
  • Fix bug in nilearn.plotting.surf_plotting._plot_surf_matplotlib that would make vertices transparent when saving in PDF or SVG format.
  • Fix bug that would prevent using symmetric_cmap=True or the avg_method argument with plotting.plot_surf_roi.
  • Fixes a bug that would lead to an error when loading a fsaverage surface while relying on numpy >= 1.24.x.
  • Fix bug that would prevent loading the confounds of a gifti file in actual fmriprep datasets.
  • Fix bug that prevented using dataframes as input for second level GLM when computing contrasts.
  • Fix bug in glm.first_level.first_level_from_bids that returned no confound files if the corresponding bold files contained derivatives BIDS entities.
  • Fix bug in glm.first_level.first_level_from_bids that would throw a warning about slice_time_ref not being provided even when it was.
  • Fix bug where the cv_params_ attribute of fitter Decoder objects sometimes had missing entries if grid_param is a sequence of dicts with different keys.
  • Make the nilearn.interfaces.fmriprep.load_confounds confounds file selection more generic.
  • Change default figure sizes to prevent titles from overlapping figure content
  • Relax the nilearn.interfaces.fmriprep.load_confounds confounds selection on cosine as not all confound files contained the variables.
  • Fix pathlib.Path not being counted as Niimg-like object in image.new_img_like.
  • Fix fit_transform behavior to match when fit method is passed image data
  • Allow using both vmin and threshold with "plotly" engine to be consistent with "matplotlib" behavior
  • Set edgecolors to be the same as facecolors in plotting.plot_surf_contours so that ROI contours are rendered clearly
  • Refactor deprecation of behavior of datasets.fetch_atlas_craddock_2012, datasets.fetch_atlas_smith_2009 and datasets.fetch_atlas_basc_multiscale_2015 fetchers including using API consistent maps key

Enhancements

  • Add cross-reference links to type definitions in public surface functions.
  • Update Decoder objects to use the more efficient LogisticRegressionCV.
  • Throw warning in glm.first_level.first_level_from_bids when using event.tsv files with no trial type column.
  • Make return key names in the description file of destrieux surface consistent with datasets.fetch_atlas_surf_destrieux.
  • Add LassoCV as a new estimator option for Decoder objects
  • Add vmin and symmetric_cbar arguments to nilearn.plotting.plot_img_on_surf.
  • Improve generate_report method of maskers by allowing users to pass a cmap argument for plotting image
  • Improve contrasts allowing fixed effects on F contrasts

Changes

  • Validate the content of events files before plotting them.
  • nilearn.glm.first_level.experimental_paradigm.check_events will now throw a warning if some events have a 0 second duration and will throw an error if an event has NaN onset or duration.
  • Removed old files and test code from deprecated datasets COBRE and NYU resting state.
  • PEP8 and isort compliance extended to the whole nilearn codebase..
  • Finish applying black formatting to most of the codebase..
  • Empty region signals resulting from applying mask_img in maskers.NiftiLabelsMasker will no longer be kept in release 0.15. Meanwhile, use keep_masked_labels parameter when initializing the maskers.NiftiLabelsMasker object to enable/disable this behavior..
  • Empty region signals resulting from applying mask_img in maskers.NiftiMapsMasker will no longer be kept in release 0.15. Meanwhile, use keep_masked_maps parameter when initializing the maskers.NiftiMapsMasker object to enable/disable this behavior..
  • Removed mention of license in "header".
  • Configure plots in example gallery for better rendering
  • Make one_mesh_info and full_brain_info into private functions _one_mesh_info and _full_brain_info
  • Refactor error raising tests using context managers
  • Added warning to deprecate darkness in surf_plotting._compute_facecolors_matplotlib and html_surface._get_vertexcolor
  • Replace skipped doctests with default code-blocks
  • Move the ~nilearn.plotting.html_surface._mix_colormaps to cm.py in nilearn.plotting
  • Remove deprecation decorator from ~nilearn.glm.regression
  • Expose standardize in plotting.plot_carpet and connectome.ConnectivityMeasure to handle "zscore" deprecation.
  • Example :ref:sphx_glr_auto_examples_01_plotting_plot_prob_atlas.py is shortened to speed up build time

List of pull requests

New Contributors

Full Changelog: https://github.com/nilearn/nilearn/compare/0.10.1...0.10.2

0.10.1

1 year ago

0.10.1rc1

1 year ago

0.10.0

1 year ago

0.9.2

1 year ago

0.9.1

2 years ago

0.9.0

2 years ago

0.8.1

2 years ago