python-validator
Science Score: 49.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 3 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.6%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: bids-standard
- License: mit
- Language: Python
- Default Branch: main
- Size: 701 KB
Statistics
- Stars: 5
- Watchers: 12
- Forks: 3
- Open Issues: 11
- Releases: 0
Metadata Files
README.md
Python BIDS-Validator
This is a library of helper functions written in Python, for use with BIDS compliant applications written in this language.
The main function determines if a file path is compliant with the BIDS specification.
Installation
To install with pip:
python -m pip install bids_validator
To install with conda:
conda install bids-validator
Quickstart
- Open a Python terminal and type:
python - Import the BIDS Validator package
from bids_validator import BIDSValidator - Check if a file is BIDS compatible
BIDSValidator().is_bids('/relative/path/to/a/bids/file') - Note, the file path must be relative to the root of the BIDS dataset, and
a leading forward slash
/must be added to the file path.
Example
```Python from bids_validator import BIDSValidator
validator = BIDSValidator()
filepaths = ["/sub-01/anat/sub-01rec-CSDT1w.nii.gz", "/sub-01/anat/sub-01acq-23rec-CSDT1w.exe"] for filepath in filepaths: print(validator.isbids(filepath)) # will print True, and then False ```
Note, the file path must be relative to the root of the BIDS dataset, and a
leading forward slash / must be added to the file path.
Acknowledgments
Many contributions to the bids-validator were done by members of the
BIDS community. See the
list of contributors.
A large part of the initial development of bids-validator was done by
Squishymedia, who are in turn financed through
different grants offered for the general development of BIDS. See the list
below.
Development and contributions were supported through the following federally funded projects/grants:
- BIDS Derivatives (NIMH: R24MH114705, PI: Poldrack)
- OpenNeuro (NIMH: R24MH117179, PI: Poldrack)
- Spokes: MEDIUM: WEST (NSF: 1760950, PI: Poldrack & Gorgolewski)
- ReproNim (NIH-NIBIB P41 EB019936, PI: Kennedy)
Maintainers and Contributors
This project follows the all-contributors specification. Contributions of any kind are welcome!
The project is maintained by @rwblair with the help of many contributors listed below. (The emoji key is indicating the kind of contribution)
Please also see Acknowledgments.
Owner
- Name: Brain Imaging Data Structure
- Login: bids-standard
- Kind: organization
- Website: https://bids.neuroimaging.io
- Twitter: BIDSStandard
- Repositories: 47
- Profile: https://github.com/bids-standard
GitHub Events
Total
- Issues event: 5
- Watch event: 2
- Delete event: 4
- Issue comment event: 20
- Push event: 9
- Pull request review event: 8
- Pull request review comment event: 9
- Pull request event: 19
- Fork event: 2
- Create event: 3
Last Year
- Issues event: 5
- Watch event: 2
- Delete event: 4
- Issue comment event: 20
- Push event: 9
- Pull request review event: 8
- Pull request review comment event: 9
- Pull request event: 19
- Fork event: 2
- Create event: 3
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 3
- Total pull requests: 9
- Average time to close issues: N/A
- Average time to close pull requests: 24 days
- Total issue authors: 2
- Total pull request authors: 4
- Average comments per issue: 0.0
- Average comments per pull request: 0.78
- Merged pull requests: 5
- Bot issues: 0
- Bot pull requests: 2
Past Year
- Issues: 3
- Pull requests: 9
- Average time to close issues: N/A
- Average time to close pull requests: 24 days
- Issue authors: 2
- Pull request authors: 4
- Average comments per issue: 0.0
- Average comments per pull request: 0.78
- Merged pull requests: 5
- Bot issues: 0
- Bot pull requests: 2
Top Authors
Issue Authors
- effigies (5)
- marcelzwiers (1)
- christinerogers (1)
Pull Request Authors
- effigies (8)
- Remi-Gau (5)
- dependabot[bot] (3)
- ubdbra001 (2)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- actions/checkout v4 composite
- actions/download-artifact v4 composite
- actions/setup-python v5 composite
- codecov/codecov-action v4 composite
- conda-incubator/setup-miniconda v3 composite
- crazy-max/ghaction-chocolatey v3 composite
- hynek/build-and-inspect-python-package v2 composite
- pypa/gh-action-pypi-publish release/v1 composite
- actions/checkout v4 composite
- codespell-project/actions-codespell v2 composite
- actions/checkout v4 composite
- actions/setup-node v4 composite
- bidsschematools >=0.9