is it possible to combine labels?

Hi all,

Is it possible to combine two or more labels from the Freesurfer
segmentation in either MNE or MNE-python?

What I would like to is for example to combine the lh.BA4a & lh.BA4p
labels that are made automatically when running the recon-all.

best wishes,
mads

Hi Mads,

If you have the labels loaded in Python, you should just be able to do
label1 + label 2.

HTH,
Andy

Hi Mads,

In addition to Andrew's suggestion (which is probably better than the
following), you can create new labels that are a combination of other
labels. Check out
http://freesurfer.net/fswiki/LabelsClutsAnnotationFilesfor a
description of the format of a label file; it's just a list of all
the vertices in that label (each row is one vertex), so you can paste the
rows of two files together (other than the first few lines, which are the
header and you only need once) and update the line near the top that gives
the count of rows in the label file.

Best,
Steve

Stephen Politzer-Ahles
New York University, Abu Dhabi
Neuroscience of Language Lab
http://www.nyu.edu/projects/politzer-ahles/

Thanks Andy and Steve,

for the quick and very useful replies. Just what I was looking.

best,
mads