hi
Do you ahve an MRI or CT image with the electrodes implanted? You can register this image to the T1 image, and localize the contacts in that coordinate system. Those positions can then be used to compute the gain matrix with respect to the center of the regions of interest used for the connectivity matrix.
cheers,
Marmaduke