nilearn
Warning
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
- 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
API
Allow passing arguments to~nilearn.glm.first_level.first_level_from_bids
to build first level models that include specific set of confounds by relying on the strategies from~nilearn.interfaces.fmriprep.load_confounds
(4103
by Rémi Gau).API
Support passing t and F contrasts to~nilearn.glm.compute_contrast
that that have fewer columns than the number of estimated parameters. Remaining columns are padded with zero (4067
by Rémi Gau).API
~maskers.NiftiSpheresMasker
now hasgenerate_report
method (3102
by Yasmin Mzayek and Nicolas Gensollen).Code
Update theCompCor
strategy in~interfaces.fmriprep.load_confounds
and~interfaces.fmriprep.load_confounds_strategy
to supportfmriprep
21.x series and above. (3285
by Hao-Ting Wang).Doc
Combine GLM examplesplot_fixed_effect
andplot_fiac_analysis
into a a single exampleplot_two_runs_model
(3191
by Taylor Salo and Rémi Gau).Plotting
Allow settingvmin
in~nilearn.plotting.plot_glass_brain
and~nilearn.plotting.plot_stat_map
(3993
by Michelle Wang).Plotting
When plotting thresholded statistical maps with a colorbar, the threshold value(s) will now be displayed as tick labels on the colorbar (#2833
by Nicolas Gensollen).
Plotting
Thetemp_file_lifetime
parameter of interactive plots'open_in_browser
method is deprecated and has no effect (4180
by Jerome Dockes)..
API
~maskers.MultiNiftiMasker
can now call~maskers.NiftiMasker.generate_report
which will generate a report for the first subject in the list of subjects (4001
by Yasmin Mzayek).Code
Make sure that all atlases and datasets fetchers return a description (4215
Rémi Gau).Code
Update theCompCor
strategy in~interfaces.fmriprep.load_confounds
and~interfaces.fmriprep.load_confounds_strategy
to supportfmriprep
21.x series and above. (3285
by Hao-Ting Wang).Code
Fix~nilearn.glm.regression.SimpleRegressionResults
to accommodate for the lack of amodel
attribute (4071
Rémi Gau)Code
~image.clean_img
can now use kwargsclean__sample_mask
argument to correctly reshape the nifti image to the dimensions of the mask in the output (4051
by Mia Zwally).Code
Fix plotting of an image with color bar when maximum value is exactly zero (4204
by Rémi Gau).Code
Fix PSC normalisation method applied bystandardize_signal
in~nilearn.signal
(4116
by Hao-Ting Wang and Yasmin Mzayek).Code
Fixed inheritance of decoder classes to keep compatibility with scikit-learn>v1.3 (4188
by Yasmin Mzayek).Deprecation
Make sure that all the fetchers foratlas
andfunc
fromnilearn.datasets
return asklearn.utils.Bunch
. Add new behavior to~datasets.fetch_language_localizer_demo_dataset
to return output asBunch
. This behavior will become the default in version 0.13.0 (4233
by Rémi Gau).
API
~maskers.NiftiSpheresMasker
now hasgenerate_report
method (3102
by Yasmin Mzayek and Nicolas Gensollen).API
Allow passing Pandas Series of image filenames to~nilearn.glm.second_level.SecondLevelModel
(4070
by Rémi Gau).API
Allow passing arguments to~nilearn.glm.first_level.first_level_from_bids
to build first level models that include specific set of confounds by relying on the strategies from~nilearn.interfaces.fmriprep.load_confounds
(4103
by Rémi Gau).API
Support passing t and F contrasts to~nilearn.glm.compute_contrast
that that have fewer columns than the number of estimated parameters. Remaining columns are padded with zero (4067
by Rémi Gau).Code
Multi-subject maskers'generate_report
method no longer fails with 5D data but instead shows report of first subject. User can index input list to show report for different subjects (3935
by Yasmin Mzayek).Code
Allowglobal_signal
parameter in~interfaces.fmriprep.load_confounds_strategy
indenoise_strategy='compcor'
(4225
by Hao-Ting Wang).Code
Addtwo_sided
option for~nilearn.image.binarize_img
(4121
by Steven Meisler).Code
~maskers.NiftiLabelsMasker.generate_report
now uses appropriate cut coordinates when functional image is provided (4099
by Yasmin Mzayek and Nicolas Gensollen).Doc
Mention the classification type (all-vs-one) insphx_glr_auto_examples_02_decoding_plot_haxby_glm_decoding.py
(4122
by Tamer Gezici).Doc
Add backslash to homogenize~nilearn.regions.Parcellations
documentation (4042
by Nikhil Krish).Doc
Specify full form of LSS insphx_glr_auto_examples_07_advanced_plot_beta_series.py
(4141
by Tamer Gezici).Doc
Don't fetch tmaps in examples if tmaps aren't used in the example. (4136
by Christina Roßmanith).Doc
Describe the return value in~nilearn.datasets.fetch_abide_pcp
documentation (4159
by Suramya Pokharel).Plotting
Allow settingvmin
in~nilearn.plotting.plot_glass_brain
and~nilearn.plotting.plot_stat_map
(3993
by Michelle Wang).Plotting
When plotting thresholded statistical maps with a colorbar, the threshold value(s) will now be displayed as tick labels on the colorbar (#2833
by Nicolas Gensollen).
API
Expose scipy CubicSplineextrapolate
parameter in~signal.clean
to control the interpolation of censored volumes in both ends of the BOLD signal data (4028
by Jordi Huguet).Code
Makenilearn.reporting._get_clusters_table
module public and movecopy_img out
ofnilearn._utils.niimg
(4166
by Rémi Gau).Code
Private utility context managerwrite_tmp_imgs
is refactored into functionwrite_imgs_to_path
(4094
by Yasmin Mzayek).Code
Move user facing functionconcat_niimgs
out of private modulenilearn._utils.niimg_conversions
(4167
by Rémi Gau).Code
Remove leading underscore from non private functions to align with PEP8 (4086
by Rémi Gau).Code
Makedecoding/proximal_operator
explicitly private to align with PEP8 (4153
by Rémi Gau).Code
Make private functions public when used outside of their modulenilearn.interface
to align with PEP8 (4168
by Rémi Gau).Deprecation
~regions.img_to_signals_labels
will also returnmasked_atlas
in release 0.15. Meanwhile, usereturn_masked_atlas
parameter to enable/disable this behavior. (3761
by Mohammad Torabi).Deprecation
Rename the parametercontrast_type
in~glm.compute_contrast
and attributecontrast_type
in~glm.Contrast
tostat_type
(4191
by Rémi Gau).Deprecation
~plotting.plot_surf_roi
will raise a warning ifroi_map
contains negative or non-integer values; in version 0.13 this will be aValueError
(4131
by Michelle Wang).Deprecation
nilearn.datasets.fetch_bids_langloc_dataset
will be deprecated in release 0.13 as it returns data simuilar to~.datasets.fetch_language_localizer_demo_dataset
(4219
by Rémi Gau).Deprecation
the default parameter offd_threshold
andstd_dvars_threshold
in~interfaces.fmriprep.load_confounds
with be updated to matchfmriprep
default in version 0.13 (4225
by Hao-Ting Wang).Doc
Combine GLM examplesplot_fixed_effect
andplot_fiac_analysis
into a a single exampleplot_two_runs_model
(3191
by Taylor Salo and Rémi Gau).Maint
Switch to using tox to manage environments during development and testing. All plotting python dependencies (matplotlib AND plotly) are now installed when runningpip install nilearn[plotting]
(4029
by Rémi Gau).