Lesion masking
For lesions, a binary mask was created by manually evaluating the T1w images from session one and drawing a mask over the lesioned tissue in 3D space using ITK-Snap (v3.8.0). These binary lesion masks were used by fMRIprep to assist in the registration steps (Fig. Lesion overlap. Colour bar represents the number of participants that have a lesion in a given location (i.e., lesion voxel overlap; A value of 4 means 4 participants have a lesion in the same location). Figure is in radiological view with the right side of the brain on the left, and the left side of the brain on the right.