neuroimaging-cookbook / neuroimaging-cookbook.github.io

https://neuroimaging-cookbook.github.io
Apache License 2.0
9 stars 9 forks source link

concatenateVolumesAFNI #50

Open JunaidMerchant opened 2 years ago

JunaidMerchant commented 2 years ago

Description

This recipe will show you how concatenate volumes (i.e., fMRI, ROIs etc) into a single file.

What language are you using?

bash

To which modalities does your recipe apply?

fmri, smri

Which software does your recipe require?

afni

Tags

concatenate, 4D

Ingredients

What is your recipe?

# Prefix defines the output file, and you can give it numerous input files
3dTcat -prefix ${OUTPUT_FILE} ${INPUT_FILES}

What is your example?

# This example will allow you to concatenate different volumes from 3 different runs of resting state scans 
3dTcat -prefix sub-01_rest_3runs.nii.gz sub-01_task-rest_run-01.nii.gz sub-01_task-rest_run-02.nii.gz sub-01_task-rest_run-03.nii.gz

Anything else?

Code of Conduct