khanlab / hippunfold

BIDS App for Hippunfold (automated hippocampal unfolding and subfield segmentation)
https://hippunfold.readthedocs.io
MIT License
46 stars 12 forks source link

simplified outputs by concatenating label-hipp/dentate #174

Open jordandekraker opened 2 years ago

jordandekraker commented 2 years ago

This is just an idea, and I'd like to hear feedback @akhanf @royhaast @myousif9 @Bradley-Karat

I was thinking it might be nice to concatenate label-hipp and dentate output files (they would still have no topological connectivity, but it may help simplify future work).

Basically, we'd keep work/ as is, but concatenate where appropriate when moving to hippunfold/. In cases where we don't have dentate data, we'd simply concatenate the appropriate number of NaNs (eg. for inner/outer.surf.gii, or for thickness.shape.gii).

Pros:

Cons:

Thoughts?

akhanf commented 2 years ago

I do see that there could be some value to having a surface file with the multiple hipp components combined (maybe also L+R?). However I am not sure combining their geometries in the same gifti is the best approach, since it limits what can be done with them as you suggest.

The enhancements to the CIFTI format that we discussed at a high-level with David and Matt to do in the near future could resolve the issues you bring up. E.g. right now, using CIFTI is the solution to putting L+R cortex surfaces together. The new additions to the CIFTI format (to add hipp and dg) would then allow cortex+hipp+dg (optionally even L+R) to be combined in the same CIFTI file, and then wbcommand cifti* operations would work on the combined surfaces (and would be a single file for easier viewing etc)..

Since that is on the horizon, I don't think it makes sense to diverge from that significantly (since the cifti solution would not involve concatenating geometry directly in giftis)..

That said, as a short-term workaround if you want to try it out, you could add some rules to concatenate the surfaces in the way you suggest, and also a target rule to generate them all. This would add the functionality, but would not be run by default. In general I think this is a good way to add anything more experimental.

akhanf commented 2 years ago

Note that the cifti solution doesn't help with the-volume-to-surface-mapping operation..

To make that operation fewer steps for the user you would need to either write a wrapper, or do your suggested concatenation.