To convert snirf file to bids format.
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file snirf2bids-0.7.8.tar.gz
.
File metadata
- Download URL: snirf2bids-0.7.8.tar.gz
- Upload date:
- Size: 20.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8fabedd02677e91e3c7a89c2e4b281755e2b049fefc1f99f055b394226b9c20 |
|
MD5 | 6ea0cc4475672c4490c13bc44c9ccdf2 |
|
BLAKE2b-256 | 2387132416114eb769dc3f0e9dcd0d5be4fe7aa9c521413655bc92582f0d40bb |
File details
Details for the file snirf2bids-0.7.8-py3-none-any.whl
.
File metadata
- Download URL: snirf2bids-0.7.8-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76b16c98a1548b00ccd7d693f1544e4e0b3d4fae22cafc01eb83b9979ed1618b |
|
MD5 | 152554fc7da267e594dc7b465e7252c7 |
|
BLAKE2b-256 | ac9a3c4c623220597ff562c3c5b23658fe6ce557124c1588fb72ffb2b123fd84 |