Python functions (and bash scripts) to project freesurfer/MNI volume space data to HCP CIFTI files and downsample to resolutions < 32k.
Structural - Freesurfer recon-all results (white matter boarder visually inspected)
Functional - Basic preprocessed resting state timeseries and average volumes in MNI space.
fMRI preprocessing:
- Motion correction
- Noise regression
- Band-pass filtered
- No smoothing
Optional:
- Global signal regression
Python:
- Python 3.6 and above is required
The following softwares and databases are required:
- HCP pipeline (minimum: files under HCPpipeline/global/)
- BALSA_database
- Freesurfer
- FSL
- Connectome workbench
After installation, the following environment variables are also needed by Python functions:
WB_DIR
= /path/to/workbench/binary/directoryHCP_PIPELINES_DIR
= /path/to/hcp/pipelines/repositoryHCP_STANDARD_MESH_ATLASES_DIR
= /path/to/hcp/standard/meshes (under $HCP_PIPELINES_DIR/global/templates/standard_mesh_atlases by default)HCP_BALSA_DIR
= /path/to/balsa/database
An example of how to use the Python functions is included in playground.py
The pipeline can be run in the following order
Only need to run these files once
- CreateNewResTemplate.sh
- DownsampleGroupTemplate.sh
- GiftiReady.sh
- GoodvoxelsRibbon.sh
- NeocorticalResampler.sh
- SubcorticalResampler.sh