Skip to main content

fMRI Anonymizer

This project contains a series of scripts that perform 2 essential steps:

  1. De-Identification
  2. De-Facing

The main purpose of this project is to have an "all-purpose" application that can automatize the whole anonymization process on MRI, fMRI data. This includes DICOM, and NIFTI formats.

This application follows a "best-effort" approach in order to comply with HIPAA regulations.

Pre-requisites

Since this is a module that leverages on other packages, there are 2 main dependencies that must be installed within your system prior to install this solution.

You will need:

  1. FSL: Please follow this link to install it.

    1.1. Make sure to install XQuartz before installing FSL. This is mentioned within their site.

  2. dcm2niix: This is a dependency used to convert DICOM into NIFTI format.

    2.1. In order to install it, you can safely use brew.

    2.2. You can also follow this tutorial.

How to install it?

In order to use this package, you will need to use the following command (recommended using it in a separate environment - like conda or venv):

pip install fmri-anonymizer

How to use it?

This is pretty simple, you have 2 ways to use it:

python -m fmri_anonymizer -i <INPUT_FOLDER> --dicom --anonymize --deface YES -o <OUTPUT_FOLDER>

Or:

fmri_anonymizer -i <INPUT_FOLDER> --dicom --anonymize --deface YES -o <OUTPUT_FOLDER>

Here, a complete example:

python -m fmri_anonymizer -i "<path_source_dicom_files>" --dicom True --nifti True --deface True --anonymize True -o "<output_path>"

How to get some help?

Simply type:

python -m fmri_anonymizer -h

H4ppy H4ck1n6!

Metadata

Release files for fmri-anonymizer 0.2.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fmri-anonymizer 0.2.11
File Size Uploaded Provenance
fmri_anonymizer-0.2.11.tar.gz 8.2 kB Without provenance Details

Release files / fmri_anonymizer-0.2.11.tar.gz

Download URL fmri_anonymizer-0.2.11.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a5d15a1daac0b5bfdc185a9ee36a0c80214f2f24dae1c5f7dc346de5a084b881
BLAKE2b-256 checksum
How to use checksums
8abcbb4955627cd63f4b6c721f14ffd039fdfeb7bdbd2e3573fb1455588188c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.6

Security for fmri-anonymizer 0.2.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page