Skip to content

Instantly share code, notes, and snippets.

View hungs's full-sized avatar

Peter Shih-Ping Hung hungs

View GitHub Profile
#! /usr/bin/env python
'''
Symmetric orthogonalization leakage correction
Paper:
Colclough, G. L., Brookes, M., Smith, S. M. and Woolrich, M. W., "A symmetric multivariate leakage correction for MEG connectomes," NeuroImage 117, pp. 439-448 (2015)
Translated from MATLAB:
https://github.com/OHBA-analysis/MEG-ROI-nets/blob/master/%2BROInets/symmetric_orthogonalise.m
Main function:
closest_ortho_matrix(dat)