At some point we should have a way of "label-izing" volumes like we do for surfaces. Freesurfer probably has utilities/files for this but I've never looked or worked with them (probably aseg.mgz), and in general we should have a way of making volume labels. Basically we need (API proposal):
read_labels_from_aseg (or whatever the correct Freesurfer file is), which returns a list of...
VolumeLabel or some equivalent (needs suitabl API and I/O functions)
extract_label_time_course extended to work for VolSourecEstimate + VolLabel
Eventually we should make everything work for mixed source spaces, too, but there are probably other things to sort out before then (e.g., mixed orientation priors).
At some point we should have a way of "label-izing" volumes like we do for surfaces. Freesurfer probably has utilities/files for this but I've never looked or worked with them (probably aseg.mgz), and in general we should have a way of making volume labels. Basically we need (API proposal):
read_labels_from_aseg(or whatever the correct Freesurfer file is), which returns a list of...VolumeLabelor some equivalent (needs suitabl API and I/O functions)extract_label_time_courseextended to work forVolSourecEstimate+VolLabelEventually we should make everything work for mixed source spaces, too, but there are probably other things to sort out before then (e.g., mixed orientation priors).