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:
Output CSV:
TODO:
[x] Create aggregation function, as a Python CLI
[x] Edit README to add pip install -r requirements.txt
[!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
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:
Output CSV:
TODO:
batch_processing.sh
Fixes #14