This app will This app will remove parcels from a parcellation/volume datatype based on user input. This is done using python, specifically nibabel and numpy.
- Brad Caron (bacaron@utexas.edu)
- Soichi Hayashi (shayashi@iu.edu)
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 publications and code reusing this code.
We kindly ask that you cite the following articles when publishing papers and code using this code.
- 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
You can submit this App online at https://doi.org/https://doi.org/10.25663/brainlife.app.518 via the 'Execute' tab.
-
git clone this repo
-
Inside the cloned directory, create
config.json
with something like the following content with paths to your input files.
{
"parc": "/input/parc/parc.nii.gz",
"key": "/input/parc/key.txt",
"label": "/input/parc/label.json",
"discard_labels": "1 181"
}
You can download sample datasets from Brainlife using Brainlife CLI.
npm install -g brainlife
bl login
mkdir input
bl dataset download
- Launch the App by executing 'main'
./main
The main output of this App is a parcellation/volume datatype containing only the parcels the user wanted.
The secondary output of this app is product.json
. This file allows web interfaces, DB and API calls on the results of the processing.
This App only requires singularity to run. If you don't have singularity, you will need to install following dependencies.
- nibabel: https://nipy.org/nibabel/
- numpy: https://numpy.org/