Skip to main content

To convert snirf file to bids format.

Project description

python pypi tests DOI

snirf2BIDS

Conveniently generate BIDS files from SNIRF files.

Installation

pip install snirf2bids

snirf2bids requires Python > 3.

Usage

SNIRF files with valid BIDS names can be converted into BIDS metadata text files.

For use with snirf2bids, a SNIRF file name must include at least the sub- and task- entitites and end in _nirs.snirf, i.e. sub-01_task-tapping_nirs.snirf.

Create BIDS text files from a SNIRF file

snirf2bids.snirf2bids('<path to snirf file>', '<folder to generate files in>')

Export BIDS text files in JSON Format

s = snirf2bids.snirf2json('<path to snirf file>')  # Returns serialized JSON in which keys are filenames and values are their contents

Contributors

Developed by BU BME Senior Design Group 3 (2022): Christian Arthur, Jeonghoon Choi, Jiazhen Liu, Juncheng Zhang and the Boston University Neurophotonics Center.

@Christian Arthur :melon:
@Juncheng Zhang :tangerine:
@Jeonghoon Choi :pineapple:
@Jiazhen Liu :grapes:

This project exists thanks to:

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

snirf2bids-0.8.3.tar.gz (20.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snirf2bids-0.8.3-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file snirf2bids-0.8.3.tar.gz.

File metadata

  • Download URL: snirf2bids-0.8.3.tar.gz
  • Upload date:
  • Size: 20.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.17

File hashes

Hashes for snirf2bids-0.8.3.tar.gz
Algorithm Hash digest
SHA256 8ee6563123da4331f4dfce82c92a80aac3d6df5666208113e75cb2f498f4f2c7
MD5 918bdb3bd92f26c5063b5671cc0e3d8c
BLAKE2b-256 86a5c114b6790a3dd5fc6915fd52937edf898b1473c8f0cfc086740562a088d8

See more details on using hashes here.

File details

Details for the file snirf2bids-0.8.3-py3-none-any.whl.

File metadata

  • Download URL: snirf2bids-0.8.3-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.17

File hashes

Hashes for snirf2bids-0.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 48c6c7382cd7bb7e154bfadca64c7f461b6d78e77571469ca83cdbe6a41604a4
MD5 f9733fd1b8b38a459b9d16bfd9a04687
BLAKE2b-256 08e35dae8d155cfe23e80b4602a8b8d25d9fb10a6463d6b23a7024d3c4d60278

See more details on using hashes here.

Supported by

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