2

脳領域の接続のネットワークをプロットする必要があります。Figure 1のようなものを取得したいと考えています。

図1

3D 空間にポイントを配置し、Python と mayavi を使用してエッジでリンクすることができました。コードは次のとおりです。

import mayavi    

# get data
xyz = getCoords(file_coords)
communities = getCommunities(file_communities)    

mlab.figure(1, bgcolor=(0, 0, 0))
mlab.clf()

# plot points
pts = mlab.points3d(xyz[:,0], xyz[:,1], xyz[:,2],
                    communities,
                    colormap= "Blues",
                    scale_factor=7,
                    resolution=50)

# plot edges            
pts.mlab_source.dataset.lines = np.array(list_of_edges)
tube = mlab.pipeline.tube(pts, tube_radius=0.1)
mlab.pipeline.surface(tube, color=(0.5, 0.5, 0.5))

mlab.show()

このコードの出力を図 2 に示します。

(上側の矢印と曲線は考慮しないでください。これらは一種の向きを作成するための試みにすぎません) 図 2

図 1のようなものを取得するために、脳の 3D レンダリングを作成するにはどうすればよいですか。

4

0 に答える 0