EtienneCmb / visbrain

A multi-purpose GPU-accelerated open-source suite for brain data visualization
http://visbrain.org
Other
241 stars 64 forks source link

Source analysis of SEEG #100

Closed ZhengL97 closed 3 years ago

ZhengL97 commented 3 years ago

Hi, I want to know does visbrain support source analysis of SEEG. Not to get the anatomy of the electrodes, but the sources' activity, a time series, like a matrix with the shape of (num of regions, time)

ZhengL97 commented 3 years ago

Hi, sorry to bother again. I just run this code:

import pandas as pd
import numpy as np
from visbrain.objects import SceneObj, BrainObj, SourceObj, RoiObj

scene = SceneObj(size=(1400, 1000))

brain = BrainObj('B1')

scene.add_to_subplot(brain)

fpath = 'channels.txt'

elec_df = pd.read_table(fpath, header=None)
xyz = np.array(elec_df[[1, 2, 3]])
name = list(elec_df[0])

src = SourceObj('source', xyz, text=name)

scene.add_to_subplot(src)

roi = RoiObj('aal')
roi.select_roi([57])
scene.add_to_subplot(roi)

scene.preview(mpl=False)

and it becomes non-interactive, I manually set mpl=False in SceneObj, still not working. 图片

ZhengL97 commented 3 years ago

It's a version error of PyQt5, so I'll close it.