Data-independent and data-driven optimization of extraction of ROI time series based on M/EEG
Project description
ROIextract
Optimization of extraction of ROI time series based on the cross-talk function (CTF) or source reconstruction of spatial patterns (REC). Work in progress!
Usage
Obtain a spatial filter that optimizes CTF properties:
from roiextract import ctf_optimize_label
sf = ctf_optimize_label(fwd, label, template, lambda_)
sf, props = ctf_optimize_label(fwd, label, template, lambda_, quantify=True)
sf = ctf_optimize_label(fwd, label, template, lambda_='auto', threshold=0.95)
Plot the filter as a topomap:
sf.plot(info)
Apply it to the data to obtain the time course of activity in the ROI/label:
label_tc = sf.apply(data)
Estimate the CTF for the filter:
ctf = sf.get_ctf_fwd(fwd) # ctf is an instance of mne.SourceEstimate
Plot the CTF on the brain surface:
ctf.plot()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
roiextract-0.0.2.tar.gz
(14.4 kB
view hashes)
Built Distribution
roiextract-0.0.2-py3-none-any.whl
(11.5 kB
view hashes)
Close
Hashes for roiextract-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d97fc7ca22e41ce14b8962f116d630eb9de506f4b124003a55f4ed55eeef8a8a |
|
MD5 | 48f8c2302097a4c6459ebd790463e0d5 |
|
BLAKE2b-256 | 9262a561f3b5c1077a30065c7db0d953c8b081b21e8e30dac804a54d4e093653 |