Skip to content

Instantly share code, notes, and snippets.

#%% import ####################################################################
import mne
import numpy as np
import os
#%% load group avg data #######################################################
os.environ["SUBJECTS_DIR"] = \
"/freesurfer/RH4-x86_64-R530/subjects"
src_path = \
'/MNE-sample-data/subjects/fsaverage/bem/fsaverage-ico-5-src.fif';
@dongqunxi
dongqunxi / pdc_dtf.py
Last active August 29, 2015 14:12 — forked from agramfort/pdc_dtf.py
Try to realize the model order estimation across trials
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Implements Partial Directed Coherence and Direct Transfer Function
using multi-trials' MVAR processes.
Reference
---------
[1] Luiz A. Baccala and Koichi Sameshima. Partial directed coherence:
a new concept in neural structure determination.