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
Hashes for snirf2bids-0.7.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09119a0ec5feb7268db94634afa22a2b9ff704d1850f5be7a24cea35de972f3f |
|
MD5 | 8a11e90690c7f830502f5b93956f04b0 |
|
BLAKE2b-256 | fa0a96a7d39f3ec5de4670469b6647f3c0b9a4eaf59e70ba5ca5f1f43f64635e |