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!

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
fmri_anonymizer-0.2.11.tar.gz 8.2 kB 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

Release history Release notifications | RSS feed

This release

0.2.11 This release

1 release file

0.2.10

1 release file

0.2.9

1 release file

0.2.8

1 release file

0.2.7

1 release file

0.2.6

1 release file

0.2.5

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.2

2 release files

0.0.1

2 release files

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