Skip to main content

fsl, vbm and csv parsers

Project description

coinstacparsers

This package includes fsl_parser, vbm_parser and csv 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. csv_parser reads the values specified in inputspec.json file 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) for csv parser:
     import coinstacparsers
     from coinstacparsers import parsers
     args = json.loads(sys.stdin.read())
     (X, y) = parsers.csv_parser(args)

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.3.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

coinstacparsers-0.0.3-py2-none-any.whl (4.1 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