https://github.com/bunpc/fnirs-bids-validator
https://github.com/bunpc/fnirs-bids-validator
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bunpc/fnirs-bids-validator
- Owner: BUNPC
- Created: 2022-04-27T14:19:11.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-10T16:02:38.000Z (about 4 years ago)
- Last Synced: 2025-09-09T20:41:23.180Z (9 months ago)
- Language: Python
- Size: 27.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BIDS-fNIRS-Validator
Validates that BIDS-fNIRS datasets and returns missing fileds of meta data files.
### Input
dataset_path : path to the BIDS-fNIRS dataset that needs to be validated
### Output
BIDS_raw_folder_missing_metadata : dictionary with missing fileds of raw folder meta data files
BIDS_fNIRS_sub_folder_missing_metadata_list : list of dictionaries with missing fileds of subject folder meta data files
### Example
```
import json
import sys
from fNIRS_BIDS_Validator.fNIRS_BIDS import fNIRS_BIDS
fNIRS_BIdS_obj = fNIRS_BIDS()
dataset_path = 'BIDS-NIRS-Tapping'
metadata_validation_info = fNIRS_BIdS_obj.validate_fNIRS_BIDS_dataset(dataset_path)
sys.stdout.write(json.dumps(metadata_validation_info))
```