A BIDSapp for deidentification of neuroimaging data.
Project description
Description
A BIDS App for the de-identification of neuroimaging data. BIDSonym gathers all T1w images from a BIDS dataset and applies one of several popular de-identification algorithms. It currently supports:
MRI deface, Pydeface, Quickshear and mridefacer.
Additionally, the user can choose to evaluate the sidecar JSON files regarding potentially sensitive information, like for example participant names and define a list of fields which information should be deleted.
Using BIDSonym can help you can make collected neuroimaging data available for others without violating subjects’ privacy or anonymity (depending on the regulations of the country you’re in).
Usage
This App has the following command line arguments:
usage: run.py [-h]
[–participant_label PARTICIPANT_LABEL [PARTICIPANT_LABEL …]]
[–deid {pydeface,mri_deface,quickshear}]
[–del_nodeface {del,no_del}]
[–deface_t2w]
[–check_meta]
[–del_meta META_DATA_FIELD [META_DATA_FIELD …]]
[–brainextraction {bet,nobrainer}]
[–bet_frac BET_FRAC]
bids_dir {participant,group}
a BIDS app for de-identification of neuroimaging data
- positional arguments:
- bids_dir The directory with the input dataset formatted
according to the BIDS standard.
- output_dir The directory where the not de-identified raw files should be stored,
in case you decide to keep them.
- {participant,group} Level of the analysis that will be performed. Multiple
participant level analyses can be run independently (in parallel) using the same output_dir.
- optional arguments:
- –participant_label PARTICIPANT_LABEL [PARTICIPANT_LABEL …]
The label(s) of the participant(s) that should be analyzed. The label corresponds to sub-<participant_label> from the BIDS spec (so it does not include “sub-“). If this parameter is not provided all subjects should be analyzed. Multiple participants can be specified with a space separated list.
- –deid {pydeface,mri_deface,quickshear}
Approach to use for de-identifictation.
- –deface_t2w
Deface T2w images by using defaced T1w image as deface-mask.
- –check_meta META_DATA_FIELD [META_DATA_FIELD …]
Indicate which information from the image and
.json
meta-data files should be check for potentially problematic information. Indicate strings that should be searched for. The results will be saved tosourcedata/
.- –del_meta META_DATA_FIELD [META_DATA_FIELD …]
Indicate (via strings) if and which information from the
.json
meta-data files should be deleted. If so, the original.json
files will be copied tosourcedata/
.- –brainextraction {BET, no_brainer}
What algorithm should be used for pre-defacing brain extraction (outputs will be used in quality control).
- –bet_frac [BET_FRAC]
In case BET is used for pre-defacing brain extraction, provide a Frac value.
- –skip_bids_validation
Assume the input dataset is BIDS compliant and skip the validation (default: False).
- -v
BIDS-App version.
Run it in participant level mode (for one participant):
docker run -i --rm \
-v /Users/peer/ds005:/bids_dataset \
peerherholz/bidsonym \
/bids_dataset \
participant --deid pydeface --del_meta 'InstitutionAddress' \
--participant_label 01
--brainextraction bet --bet_frac 0.5
Run it in group level mode (for all participants):
docker run -i --rm \
-v /Users/peer/ds005:/bids_dataset \
peerherholz/bidsonym \
/bids_dataset group --deid pydeface --del_meta 'InstitutionAddress' \
--brainextraction bet --bet_frac 0.5
Installation
Following the BIDS apps standard it is recommend to install and use BIDSonym in its Docker or Singularity form. To get the BIDSonym Docker image, you need to install docker and within the terminal of your choice type:
docker pull peerherholz/bidsonym
To get its Singularity version, you need to install singularity and within the terminal of your choice type:
singularity pull PeerHerholz/BIDSonym
Documentation
BIDSonym’s documentation can be found here.
How to report errors
Running into any bugs :beetle:? Check out the open issues to see if we’re already working on it. If not, open up a new issue and we will check it out when we can!
How to contribute
Thank you for considering contributing to our project! Before getting involved, please review our Code of Conduct. Next, you can review open issues that we are looking for help with. If you submit a new pull request please be as detailed as possible in your comments. Please also have a look at our contribution guidelines.
Acknowledgements
Please acknowledge this work by mentioning explicitly the name of this software (BIDSonym) and the version, along with a link to the GitHub repository or the Zenodo reference. For more details, please see citation.
Support
This work is supported in part by funding provided by Brain Canada, in partnership with Health Canada, for the Canadian Open Neuroscience Platform initiative.
Furthermore, the project is supported by [Repronim](https://www.repronim.org/) under NIH-NIBIB P41 EB019936.
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 bidsonym-0.0.4.tar.gz
.
File metadata
- Download URL: bidsonym-0.0.4.tar.gz
- Upload date:
- Size: 50.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0df2cfed3f73c738864bfc3655ae5e4dccc096abea2f575042d43cfb23e7b5be |
|
MD5 | f757a0b4820fe2e06c56c9adc22e6f5d |
|
BLAKE2b-256 | 49018d9eec6a1013a18f8249b8ee24147d71363fc91ea2f58eb71d3447cd2386 |
File details
Details for the file bidsonym-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: bidsonym-0.0.4-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7acf2b316978de3f4afbf479e56a02b799619e31dde4ef297e0ce6e80a6c9cd |
|
MD5 | 77e242f47eda770305eae5d021a7fb8b |
|
BLAKE2b-256 | 966e680d01dc614ba609cc21cc4156de51dcb7579ed154eed812e7d15cfe0c4d |