Skip to content

An app to convert original and segmented brain images in mgz format to .hdf5 format in axial, sagittal, and coronal plane required for FCNN training

License

Notifications You must be signed in to change notification settings

FNNDSC/pl-generate_hdf5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pl-generate_hdf5

https://travis-ci.org/FNNDSC/generate_hdf5.svg?branch=master

An app to convert original and segmented brain images in mgz format to .hdf5 format in axial, sagittall, and coronal plane

python generate_hdf5.py                                           \
    [-v <level>] [--verbosity <level>]                          \
    [--version]                                                 \
    [--man]                                                     \
    [--meta]                                                    \
    <inputDir>
    <outputDir>

generate_hdf5.py is a ChRIS-based application that...

[-v <level>] [--verbosity <level>]
Verbosity level for app. Not used currently.

[--version]
If specified, print version number.

[--man]
If specified, print (this) man page.

[--meta]
If specified, print plugin meta data.

This plugin can be run in two modes: natively as a python package or as a containerized docker image.

To run from PyPI, simply do a

pip install generate_hdf5

and run with

generate_hdf5.py --man /tmp /tmp

to get inline help. The app should also understand being called with only two positional arguments

generate_hdf5.py /some/input/directory /destination/directory

To run using docker, be sure to assign an "input" directory to /incoming and an output directory to /outgoing. Make sure that the $(pwd)/out directory is world writable!

Now, prefix all calls with

docker run --rm -v $(pwd)/out:/outgoing                             \
        fnndsc/pl-generate_hdf5 generate_hdf5.py                        \

Thus, getting inline help is:

mkdir in out && chmod 777 out
docker run --rm -v $(pwd)/in:/incoming -v $(pwd)/out:/outgoing      \
        fnndsc/pl-generate_hdf5 generate_hdf5.py                        \
        --man                                                       \
        /incoming /outgoing

About

An app to convert original and segmented brain images in mgz format to .hdf5 format in axial, sagittal, and coronal plane required for FCNN training

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published