sct-pipeline / spine-park

Pipeline for multicontrast analysis in PD patients
MIT License
0 stars 0 forks source link

Create function to aggregate DWI metrics across chunks #41

Closed jcohenadad closed 5 months ago

jcohenadad commented 5 months ago

Created a function that takes output CSV from DWI, and aggregate the lines that share the same vertebral level. The aggregation is done using weighted average, the weighting being driven by the column "Size [vox]". Example below:

Input CSV:

image

Output CSV:

image

TODO:

[!WARNING] The output CSV discards the column "Filename" and creates a new column "Subject", which creates some discordance with the other non-DWI CSV outputs. This is related to https://github.com/sct-pipeline/spine-park/issues/42

Fixes #14