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 details)

Uploaded Source

Built Distribution

coinstacparsers-0.0.3-py2-none-any.whl (4.1 kB view details)

Uploaded Python 2

File details

Details for the file coinstacparsers-0.0.3.tar.gz.

File metadata

  • Download URL: coinstacparsers-0.0.3.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/2.7.15

File hashes

Hashes for coinstacparsers-0.0.3.tar.gz
Algorithm Hash digest
SHA256 3226e43b89951bd51b4d66e4664c1f24b624cb47451a97bd36c482780d70882e
MD5 adc56e7087d9a2d4e09bf5d172333187
BLAKE2b-256 8cf9c41d2d318c8d90cc9b2ecf6ff93334c22a948297205f0c65f9ad55d57616

See more details on using hashes here.

File details

Details for the file coinstacparsers-0.0.3-py2-none-any.whl.

File metadata

  • Download URL: coinstacparsers-0.0.3-py2-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/2.7.15

File hashes

Hashes for coinstacparsers-0.0.3-py2-none-any.whl
Algorithm Hash digest
SHA256 398b5b5697ef00b2f347865d11b41c2f8d0ffde89239a57f8b0b9b02a00b43fd
MD5 2c9ef5eea6f2601da71868c164809371
BLAKE2b-256 4fe928f55067842647784b336eb5f534d066dde8c22b1129187f3408e66bbea3

See more details on using hashes here.

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