CIVILITY
Cloud Based Interactive Visualization of Tractography Brain Connectome (CIVILITY) is an interactive visualization tool of brain connectome in the web.
Install / Use
/learn @NIRALUser/CIVILITYREADME
CIVILITY
Cloud Based Interactive Visualization of Tractography Brain Connectome (CIVILITY) is an interactive visualization tool of brain connectome in the web.
CIVILITY is a web application and has mainly 2 components.
-
CIVILITY-visualization ; front end of the application. This is a circle plot of the brain connectivity using the method of visualization : Hierarchical Edge Bundling. The graphic visualization of the brain connectivity is generated using Data Driven Documents (D3.js).
-
CIVILITY-tractography ; analysis pipeline. The analysis of the brain connectome is computed by a probabilistic method (FSL tools) using surfaces as seeds. The main steps of the pipeline are :
- bedpostX (FSL): Fitting of the probabilistic diffusion model on corrected data (by default number of tensors = 2 )
- ExtractLabelSurfaces : creation label surfaces (ASCII files) from a VTK surface containing labels information.(https://github.com/NIRALUser/ExtractLabelSurfaces)
- Creation of a seeds list : text file listing all path of label surfaces created by ExtractLabelSurfaces tool
- probtrackx2 (FSL): compute tractography according to the seeds list created.
CIVILITY performs the brain connectivity analysis in remote computing grids where the CIVILITY-tractography pipeline is deployed. CIVILITY uses clusterpost (https://github.com/NIRALUser/clusterpost) to submit the jobs to the computing grid.
NOTE: clusterpost clusterpost is a server application providing a REST api to submit jobs in remote computing grids using. Data transfer, job execution and monitoring are all handled by clusterpost. The front end of CIVILITY submits tasks to clusterpost and retrieves the results when they are finished.
See documentation in doc/ directory.
USAGE for TRACTOGRAPHY
1. Inputs file
- DWI image (in diffusion space, nrrd format)
- T1 image (in diffusion space, nrrd format)
- Brain mask (in diffusion space, nrrd format)
- Parcellation table, json file which describes the brain atlas in brain surfaces (format json)
- Brain Surface. This is a VTK file which represents the white matter surface. This surface must be in the diffusion space. If the white matter surface doesn't contain label information, upload another surface (same mesh, in diffusion space, vtk format) containning labels informations.
2. Output connectivity matrix
(example : 5 seeds )
0 0 713804 0 22 <br/> 6 0 12 628238 0<br/> 564497 10 0 47 148119<br/> 0 693669 289 0 8<br/> 27 0 194885 2 0<br/>
USAGE for VISUALIZATION
1. Inputs file
- Connectivity matrix
(example : 5 seeds )
0 0 713804 0 22 <br/> 6 0 12 628238 0<br/> 564497 10 0 47 148119<br/> 0 693669 289 0 8<br/> 27 0 194885 2 0<br/>
- Parcellation table
(example : 5 ROIs, atlas AAL90)
[ <br/> { <br/> "VisuOrder": 78, //This is the rank in the circle plotting <br/> "MatrixRow": 1, // Rank in the connectivity matrix - first row = 1 = first column ( if = -1 not in the matrix ) <br/> "name": "Precentral_L", //Name of the region/seed <br/> "VisuHierarchy": "seed.left.frontal.", //Hierachy of the seed (for circle plotting) <br/> "coord": [ //Coordinates of the seed <br/> -38.649999999999999, //X <br/> -5.6799999999999997, //Y <br/> 50.939999999999998 //Z <br/> ], <br/> "labelValue": "131 44 78", //Value of the label in the vtk file <br/> "AAL_ID": 1 // label/seed ID in the table/atlas <br/> }, <br/> {<br/> "VisuOrder": 1, <br/> "MatrixRow": 2, <br/> "name": "Precentral_R", <br/> "VisuHierarchy": "seed.right.frontal.", <br/> "coord": [<br/> 41.369999999999997, <br/> -8.2100000000000009, <br/> 52.090000000000003<br/> ], <br/> "labelValue": "241 43 17", <br/> "AAL_ID": 2<br/> }, <br/> {<br/> "VisuOrder": 77, <br/> "MatrixRow": 3, <br/> "name": "Frontal_Sup_L", <br/> "VisuHierarchy": "seed.left.frontal.", <br/> "coord": [<br/> -18.449999999999999, <br/> 34.810000000000002, <br/> 42.200000000000003<br/> ], <br/> "labelValue": "126 31 21", <br/> "AAL_ID": 3<br/> }, <br/> {<br/> "VisuOrder": 2, <br/> "MatrixRow": 4, <br/> "name": "Frontal_Sup_R", <br/> "VisuHierarchy": "seed.right.frontal.", <br/> "coord": [<br/> 21.899999999999999, <br/> 31.120000000000001, <br/> 43.82<br/> ], <br/> "labelValue": "70 93 250", <br/> "AAL_ID": 4<br/> }, <br/> {<br/> "VisuOrder": 76, <br/> "MatrixRow": 5, <br/> "name": "Frontal_Sup_Orb_L", <br/> "VisuHierarchy": "seed.left.frontal.", <br/> "coord": [<br/> -16.559999999999999, <br/> 47.32, <br/> -13.31<br/> ], <br/> "labelValue": "19 164 195", <br/> "AAL_ID": 5<br/> }<br/> ]<br/>
2. Output visualization

Related Skills
node-connect
352.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
