-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
featureNew feature, enhancement or requestNew feature, enhancement or request
Milestone
Description
Description
I would like to expand the functionality of the ROI statistics in the population module by a temporal value, e.g. the temporal variability of spatial CoV, and a ratio, e.g. the ratio of average CBF in the borderzone divided by average CBF in the proximal parts of vascular territories.
Use the update branch!!! feature-#594_GetROIStats4D
Requirements
We need to add some flexibility without losing the modularity of these functions. Also, we might want to do this for the standard space output only, as @jan-petr still needs to fix the broken modularity for the native space output.
- A. Create a dataset with qCBF4D.nii. This is enabled, but it currently only works for native space and has to be uncommented for standard space inside the ASL-module wrapper.
- B. Change xASL_im_IM2Column that it accepts 4D - done in Temporal variability in population module #1831 All related commits here were removed!!!!
- C. Change xASL_stat_GetROIStatistics in such a way that it works in 4D
-> rename DataIm -> DataColumn
-> rename Data3D -> DataImage
Line 453 -> image is usually shifted in dim, to become [1 747286] but we need to disable this to get
[747286 1] for a single volume and [747286 10] for e.g., 10 volumes
xASL_stat_ComputeSpatialCoV, xASL_stat_ComputeMean
-> should take 4D input & output it
Suggested changes:
xASL_stat_GetROIStatisticscalculates a function - e.g. mean/median/SD/etc - for a single ROI, for a single image volume - e.g.qCBF.nii. This function should allow doing this with a 4D input, e.g.qCBF4D.nii, with a vector as output instead of a scalar, per subject/ROI/function.xASL_wrp_GetROIStatisticsdetects this vector and performs a temporal function on this, e.g. SD. This temporal function should be an input argument toxASL_wrp_GetROIStatisticsjust like the current ROI-level input function(s).xASL_wrp_GetROIStatisticsshould be able to compare ROI values, depending on the input argument, e.g.:- ratio: ratio between two ROIs, e.g. borderzone / proximal
- asymmetry index: relative difference between two ROIs, e.g. left vs right for lateralization
- the same but for multiple ROIs, e.g. relative SD between multiple ROIs
Other notes/ToDo:
- with masking allow 4D
- Merge mean & SD functions
- if 4D, take mean over 4th dim unless specified to be SD over 4th dim
- Admin
- Implicit masking (based on CBF values)
- Equalize mask sizes
- Calculate ROI stats (per measurement if there are multiple)
- Calculate 4th dim variability
later: add correlation to mean & SD, and also other potential functions to run
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featureNew feature, enhancement or requestNew feature, enhancement or request