Useful Functions#
Module to handle abstracted functionalities
Attributes#
Functions#
|
Creates a new path in local system by joining paths, and making any new directories, if |
|
Converts long region names to their associated abbreviations. |
|
Builds a BIDS compliant label map. Loop through CTAB and convert names to |
|
Sum a 4D image series weighted based on time and re-corrected for decay correction. |
Computes a weighted series sum over a specified window of indices for a 4D PET image. |
|
|
Temporary hacky function to read a single plasma glucose concentration value from a file. |
|
Convert a FreeSurfer compatible color table into a BIDS compatible label |
|
Capitalize only the first character of a string, leaving the remainder unchanged. |
|
Take a string and return the string converted to camel case. |
Returns a step function that gets the index of the frame closest to a provided timepoint |
|
|
Get average of a 4D ANTsImage and return as a 3D ANTsImage. |
|
Coerce a path to the same absolute path with a provided filetype extension. |
Module Contents#
- petpal.utils.useful_functions.FULL_NAME = ['Background', 'CorticalGrayMatter', 'SubcorticalGrayMatter', 'GrayMatter', 'gm', 'WhiteMatter',...#
- petpal.utils.useful_functions.SHORT_NAME = ['BG', 'CGM', 'SGM', 'GM', 'GM', 'WM', 'WM', 'CSF', 'B', 'ST', 'NB', 'L', 'BS', 'CBM']#