Skip to content

Simple Brainlife app which removes the first volumes of fMRI images

License

Notifications You must be signed in to change notification settings

amnsbr/app-remove-first-volumes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Abcdspec-compliant Run on Brainlife.io

app-remove-first-volumes

An app to remove the first N volumes of a 4D fMRI image.

This app uses nilearn to remove the first N volumes of a 4D fMRI image, which is a common practice in fMRI preprocessing. The input is a fMRI image (.nii.gz) and the number of volumes to be removed, and the output is another fMRI image (.nii.gz) with the first volumes removed. Notice that this app (for now) should only be used with rs-fMRI images and be run before fmriprep, as it will disrupt the correspondence of regressors timeseries and events with the 4D image.

Authors

Copyright (c) 2020 brainlife.io The University of Texas at Austin and Indiana University

Funding Acknowledgement

brainlife.io is publicly funded and for the sustainability of the project it is helpful to Acknowledge the use of the platform. We kindly ask that you acknowledge the funding below in your code and publications. Copy and past the following lines into your repository when using this code.

NSF-BCS-1734853 NSF-BCS-1636893 NSF-ACI-1916518 NSF-IIS-1912270 NIH-NIBIB-R01EB029272

Citations

We ask that you the following articles when publishing papers that used data, code or other resources created by the brainlife.io community.

  1. Avesani, P., McPherson, B., Hayashi, S. et al. The open diffusion data derivatives, brain data upcycling via integrated publishing of derivatives and reproducible open cloud services. Sci Data 6, 69 (2019). https://doi.org/10.1038/s41597-019-0073-y

Running the App

On Brainlife.io

You can submit this App online at https://doi.org/10.25663/brainlife.app.495 via the "Execute" tab.

Running Locally (on your machine)

  1. git clone this repo.
  2. Inside the cloned directory, create config.json with something like the following content with paths to your input files.
{
    "fmri": "test_bold.nii.gz",
    "n_vols": "5"
}
  1. Launch the App by executing main
./main

Output

Output file (a 4D .nii.gz file with the first volumes removed) will be generated inside the current working directory (pwd), inside a specifc directory called:

out_dir

Dependencies

This App only requires nilearn to run.

About

Simple Brainlife app which removes the first volumes of fMRI images

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published