BIDSonym

BIDSonym: a BIDS App for the pseudo-anonymization of neuroimaging datasets - Published in JOSS (2021)

https://github.com/peerherholz/bidsonym

Science Score: 95.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 2 DOI reference(s) in README and JOSS metadata
  • Academic publication links
    Links to: plos.org
  • Committers with academic emails
    3 of 8 committers (37.5%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software

Keywords from Contributors

bids

Scientific Fields

Neuroscience Life Sciences - 38% confidence
Last synced: 4 months ago · JSON representation

Repository

a BIDS app for pseudo-anonymization of neuroimaging data

Basic Info
Statistics
  • Stars: 52
  • Watchers: 2
  • Forks: 12
  • Open Issues: 29
  • Releases: 3
Created over 7 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog Contributing License Code of conduct Authors

README.rst

===============================
BIDSonym
===============================

.. image:: https://img.shields.io/travis/PeerHerholz/BIDSonym.svg
        :target: https://travis-ci.org/PeerHerholz/BIDSonym

.. image:: https://img.shields.io/github/issues-pr/PeerHerholz/BIDSonym.svg
    :alt: PRs
    :target: https://github.com/PeerHerholz/BIDSonym/pulls/

.. image:: https://img.shields.io/github/contributors/PeerHerholz/BIDSonym.svg
    :alt: Contributors
    :target: https://GitHub.com/PeerHerholz/BIDSonym/graphs/contributors/

.. image:: https://github-basic-badges.herokuapp.com/commits/PeerHerholz/BIDSonym.svg
    :alt: Commits
    :target: https://github.com/PeerHerholz/BIDSonym/commits/master

.. image:: http://hits.dwyl.io/PeerHerholz/BIDSonym.svg
    :alt: Hits
    :target: http://hits.dwyl.io/PeerHerholz/BIDSonym

.. image:: https://img.shields.io/docker/cloud/automated/peerherholz/bidsonym
    :alt: Dockerbuild
    :target: https://cloud.docker.com/u/peerherholz/repository/docker/peerherholz/bidsonym

.. image:: https://img.shields.io/docker/pulls/peerherholz/bidsonym
    :alt: Dockerpulls
    :target: https://cloud.docker.com/u/peerherholz/repository/docker/peerherholz/bidsonym

.. image:: https://img.shields.io/badge/License-BSD%203--Clause-blue.svg
    :alt: License
    :target: https://opensource.org/licenses/BSD-3-Clause

.. image:: https://upload.wikimedia.org/wikipedia/commons/7/74/Zotero_logo.svg
    :alt: Zotero
    :target: https://www.zotero.org/groups/2362367/bidsonym

.. image:: https://img.shields.io/badge/Supported%20by-%20CONP%2FPCNO-red
    :alt: support_conp
    :target: https://conp.ca/

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 `_.

.. image:: https://raw.githubusercontent.com/PeerHerholz/BIDSonym/master/img/bidsonym_example.png
   :alt: alternate text

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 make collected neuroimaging data available for others without violating subjects' privacy or anonymity (depending on the regulations of the country you're in).**

.. intro-marker

Usage
=====

.. usage-marker

This App has the following command line arguments:

.. code-block::

	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- 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
		    :code:`.json` meta-data files should be check for potentially problematic information. 
		    Indicate strings that should be searched for.
		    The results will be saved to :code:`sourcedata/`.
	  --del_meta META_DATA_FIELD [META_DATA_FIELD ...]
				Indicate (via strings) if and which information from the :code:`.json` meta-data
				files should be deleted. If so, the original :code:`.json` files
				will be copied to :code:`sourcedata/`.
	  --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):

.. code-block::

	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):

.. code-block::

	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

.. usage-marker-end


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:

:code:`docker 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 `_.

.. image:: https://conp.ca/wp-content/uploads/elementor/thumbs/logo-2-o5e91uhlc138896v1b03o2dg8nwvxyv3pssdrkjv5a.png
    :alt: logo_conp
    :target: https://conp.ca/

Furthermore, the project is supported by `Repronim `_ under NIH-NIBIB P41 EB019936. 

Owner

  • Name: Peer Herholz
  • Login: PeerHerholz
  • Kind: user
  • Location: Montréal/Canada, Boston/ USA & EU

freelancer | neuroscience, AI, methods/workflows/data, open & reproducible science at @TheNeuro_MNI & @mcgovernmit | E&O chair @OhbmEnvironment | he/him

JOSS Publication

BIDSonym: a BIDS App for the pseudo-anonymization of neuroimaging datasets
Published
August 28, 2021
Volume 6, Issue 64, Page 3169
Authors
Peer Herholz ORCID
NeuroDataScience-Origami lab, McConnell Brain Imaging Centre, The Neuro (Montreal Neurological Institute-Hospital), Faculty of Medicine, McGill University, Montreal, Quebec, Canada
Rita Marie Ludwig ORCID
University of Oregon, Eugene, United States
Jean-Baptiste Poline ORCID
NeuroDataScience-Origami lab, McConnell Brain Imaging Centre, The Neuro (Montreal Neurological Institute-Hospital), Faculty of Medicine, McGill University, Montreal, Quebec, Canada
Editor
Olivia Guest ORCID
Tags
data pseudo-anonymization - neuroimaging datasets - de-identification - data sharing

GitHub Events

Total
  • Issues event: 1
Last Year
  • Issues event: 1

Committers

Last synced: 5 months ago

All Time
  • Total Commits: 272
  • Total Committers: 8
  • Avg Commits per committer: 34.0
  • Development Distribution Score (DDS): 0.107
Past Year
  • Commits: 2
  • Committers: 1
  • Avg Commits per committer: 2.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
PeerHerholz h****r@g****m 243
rxqx r****g@u****u 15
Yaroslav Halchenko d****n@o****m 6
Tashrif Billah t****h@g****m 3
Daniel M. Drucker d****d@3****g 2
Zeynep Enkavi z****i@g****m 1
Kirstie Whitaker k****1@c****k 1
Daniel S. Katz d****z@i****g 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 4 months ago

All Time
  • Total issues: 60
  • Total pull requests: 28
  • Average time to close issues: 5 months
  • Average time to close pull requests: about 2 months
  • Total issue authors: 25
  • Total pull request authors: 11
  • Average comments per issue: 2.37
  • Average comments per pull request: 0.86
  • Merged pull requests: 22
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 2
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 2
  • Pull request authors: 0
  • Average comments per issue: 0.5
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • yarikoptic (18)
  • PeerHerholz (10)
  • araikes (4)
  • julfou81 (3)
  • neuromusic (3)
  • Remi-Gau (2)
  • dkp (1)
  • hcp4715 (1)
  • tashrifbillah (1)
  • hugofluhr (1)
  • bpinsard (1)
  • complexbrains (1)
  • jbwexler (1)
  • m-petersen (1)
  • multiduplikator (1)
Pull Request Authors
  • PeerHerholz (13)
  • yarikoptic (5)
  • dmd (2)
  • Remi-Gau (2)
  • zenkavi (1)
  • vferat (1)
  • tashrifbillah (1)
  • KirstieJane (1)
  • complexbrains (1)
  • danielskatz (1)
  • jbpoline (1)
Top Labels
Issue Labels
enhancement (24) bug (22) help wanted (14) question (5) good first issue (2)
Pull Request Labels
enhancement (3) documentation (2)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 25 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 1
  • Total maintainers: 1
pypi.org: bidsonym

A BIDSapp for deidentification of neuroimaging data.

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 25 Last month
Rankings
Stargazers count: 9.6%
Forks count: 9.8%
Dependent packages count: 10.0%
Average: 27.5%
Downloads: 40.7%
Dependent repos count: 67.4%
Maintainers (1)
Last synced: 4 months ago

Dependencies

.github/workflows/container_build_publish.yml actions
  • actions/checkout v3 composite
  • docker/build-push-action v2 composite
  • docker/login-action v2 composite
  • docker/setup-buildx-action v2 composite
.github/workflows/docs.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v1 composite
  • peaceiris/actions-gh-pages v3.6.1 composite
Dockerfile docker
  • ubuntu 20.04 build
.github/workflows/codespell.yml actions
  • actions/checkout v4 composite
  • codespell-project/actions-codespell v2 composite
requirements-dev.txt pypi
  • codecov * development
  • coverage * development
  • doctr * development
  • duecredit * development
  • flake8 * development
  • ipython * development
  • matplotlib * development
  • numpydoc * development
  • pytest * development
  • sphinx * development
  • sphinx-argparse * development
  • sphinx-copybutton * development
  • sphinx_rtd_theme * development
requirements.txt pypi
  • argparse *
  • duecredit *
  • nibabel *
  • nilearn *
  • nipype *
  • pandas *
  • pybids *
  • pydeface *
  • scikit-image *
setup.py pypi