pybraincompare.report package¶
Submodules¶
pybraincompare.report.animate module¶
pybraincompare.report.colors module¶
colors.py: part of pybraincompare package Color stuffs
pybraincompare.report.histogram module¶
pybraincompare.report.image module¶
image.py: part of pybraincompare package Functions for static images
-
pybraincompare.report.image.
make_glassbrain_image
(nifti_file, png_img_file=None)[source]¶ Make glassbrain image, optional save image to png file (not vector)
-
pybraincompare.report.image.
make_roi_image
(nifti_file, png_img_file=None)[source]¶ Make roi (mask) image
-
pybraincompare.report.image.
make_stat_image
(nifti_file, png_img_file=None)[source]¶ Make statmap image
-
pybraincompare.report.image.
plot_vline
(cur_val, label, ax)[source]¶ from chrisfilo https://github.com/chrisfilo/mriqc
pybraincompare.report.qa module¶
qa.py: part of pybraincompare package Functions to check quality of statistical maps
-
pybraincompare.report.qa.
central_tendency
(data)[source]¶ Central tendency: standard measures of central tendency and variance
-
pybraincompare.report.qa.
count_voxels
(masked_in, masked_out)[source]¶ Count voxels in and outside the mask
-
pybraincompare.report.qa.
get_percent_nonzero
(masked_in)[source]¶ Estimate thresholded We basically check to see if number of zero voxels exceeds some
percentage (not thresholded)
-
pybraincompare.report.qa.
get_voxel_range
(nii_obj)[source]¶ Get the maximum and minimum value in the image
-
pybraincompare.report.qa.
is_thresholded
(nii_obj, brain_mask, threshold=0.95)[source]¶ Is a nifti image thresholded? Adopted from chrisfilo for neurovault Threshold should be the percentage of voxels we want “good” Returns True/False and ratio of good voxels