Skip to main content

fsl and vbm parsers

Project description

coinstacparsers 0.0.2

This package includes fsl_parser and vbm_parser. fsl_parser parses the freesurfer files (specified in inputspec.json) as dependencies and returns the covariates (X) and dependent (y) matrices as dataframes. The format of inputspec.json should be as shown in the example inputspec.json here. Similarly vbm_parser parses NIfTI images as dependencies and returns the covariates (X) and dependent (y) matrices as dataframes.

How to install

pip install coinstacparsers

How to run

for fsl parser:
     import coinstacparsers
     from coinstacparsers import parsers
     args = json.loads(sys.stdin.read())
     (X, y) = parsers.fsl_parser(args)
for vbm parser:
     import coinstacparsers
     from coinstacparsers import parsers
     args = json.loads(sys.stdin.read())
     mask = os.path.join('/computation', mask_directory, mask_file_name)
     (X, y) = parsers.vbm_parser(args, mask)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coinstacparsers-0.0.2.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

coinstacparsers-0.0.2-py2-none-any.whl (4.0 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page