Package: ciftify
ciftifyThe tools of the Human Connectome Project (HCP) adapted for working with non-HCP datasetsciftifyis a set of three types of command line tools:**conversion tools**: command line tools adapted from HCP Minimal processing pipeline to put preprocessed T1 and fMRI data into an HCP like folder structure**ciftify tools**: Command line tools for making working with cifty format a little easier**cifti_vis tools**: Visualization tools, these use connectome-workbench tools to create pngs of standard views the present theme together in fRML pages.Check out our wiki for more details on individual tools!https://edickie.github.io/ciftify/Download and InstallInstall latest release python packageFirst, install the python package and all of its bundled data and scripts. You
can do this with a single command with pip.Notethe newest release of ciftify requires python 3 (python 2 no longer supported).To install with pip, type the following in a terminal.pipinstallciftifyFor other installation options seethis installation documentation.ciftify workflowsScripts adapted from HCP Minimal processing pipeline to put preprocessed T1 and fMRI data into an HCP like folder structureciftify_recon_allWill convert any freeserfer output directory into an HCP (cifti space) output directoryciftify_subject_fmriWill project a nifti functional scan to a cifti .dtseries.nii in that subjects hcp analysis directoryThe subject’s hcp analysis directory is created by runnning ciftify_recon_all on that participants freesurfer outputwill do fancy outlier removal to optimize the mapping in the process and then smooth the data in cifti spaceciftify Toolsciftify_meants:extracts mean timeseries(es) (similar to FSL’ fslmeants) that can take nifti, cifti or gifti inputsciftify_seed_corr:builds seed-based correlation maps using cifti, gifti or nifti inputsciftify_peaktable:similar to FSL’s clusterize, outputs a csv table of peak locations from a cifti statisical mapciftify_surface_rois:a tool for building circular rois on the cortical surface. Multiple roi locations can be read at once from a csv table.ciftify_groupmask:a tools for building a group mask for statiscal analyses using multiple .dtseries.nii files as the inputcifity_vol_resultWill project a nifti scan to cifti space (4D nifti -> .dtseries.nii or 3D nifti -> .dsclar.nii) with no fancy steps or smoothingintended for conversion of 3D statistical maps (or 3D regions of interest) for visualization with wb_viewcifti_vis Toolscitfi_vis_recon_all:builds visual qc pages for verification of ciftify_recon_all conversionNote: these pages can also be used for qc of freesurfer’s recon-all pipeline(they easier to generate (i.e. no display needed) than freesurfer QAtools, and a little prettier too)cifti_vis_fmri:builds visual qc pages for verification of ciftify_subject_fmri volume to surface mappingalso show surface smoothed images of seed based connectivity to give an impression of preprocessed fmri data qualitycifti_vis_map:generates picture of standard views from any cifti map (combined into on .html page)One can loop over multiple files (i.e. maps from multiple subjects) and combine all outputs so that all subjects can viewed together in one index page.can also take a nifti input which is internally converted to cifti usingciftify_vol_resultcifti_vis_RSN:From a functional file input, Will run seed-based correlations  from 4 ROIS of interest then generate pics of standard viewsOne can loop over multiple files (i.e. maps from multiple subjects) and combine all outputs so that all subjects can viewed together in one index page.can also take a nifti input which is internally converted to cifti usingciftify_vol_resultAnd also in the bin there isThese two are part of a work in progress (something I need to validate first)
ciftify_PINT_vertices
cifti_vis_PINT
epi_hcpexportReferences / Citing ciftifyThe workflows and template files employed in ciftify were adapted from those of the Human Connectome Project’s minimal proprocessing pipeline.  As such, any work employing ciftify’s conversion of visualization tools should cite:Glasser MF, Sotiropoulos SN, Wilson JA, Coalson TS, Fischl B, Andersson JL, Xu J, Jbabdi S, Webster M, Polimeni JR, Van Essen DC, Jenkinson M, WU-Minn HCP Consortium. The minimal preprocessing pipelines for the Human Connectome Project. Neuroimage. 2013 Oct 15;80:105-24. PubMed PMID: 23668970; PubMed Central PMCID: PMC3720813.Additionally, any work employing the parcellation files included here should cite their original sources. They are:Yeo 7 or (17) Network Parcellation:
Yeo, B. T. Thomas, Fenna M. Krienen, Jorge Sepulcre, Mert R. Sabuncu, Danial Lashkari, Marisa Hollinshead, Joshua L. Roffman, et al. 2011. “The Organization of the Human Cerebral Cortex Estimated by Intrinsic Functional Connectivity.” Journal of Neurophysiology 106 (3): 1125–65.The freesurfer DK atlas (i.e. ‘aparc’ segmentation):
Desikan, Rahul S., Florent Ségonne, Bruce Fischl, Brian T. Quinn, Bradford C. Dickerson, Deborah Blacker, Randy L. Buckner, et al. 2006. “An Automated Labeling System for Subdividing the Human Cerebral Cortex on MRI Scans into Gyral Based Regions of Interest.” NeuroImage 31 (3): 968–80.The Glasser MMP1.0 Parcellation:
Glasser, Matthew F., Timothy S. Coalson, Emma C. Robinson, Carl D. Hacker, John Harwell, Essa Yacoub, Kamil Ugurbil, et al. 2016. “A Multi-Modal Parcellation of Human Cerebral Cortex.” Nature 536 (7615): 171–78.