Skip to content

A CLI tool to anonymise files using the RSNA MIRC Clinical Trials Processor (CTP) DICOM Anonymizer

Notifications You must be signed in to change notification settings

SMI/ctp-anon-cli

Repository files navigation

main pre-commit.ci status

CTP Anonymiser CLI

A CLI tool to anonymise files using the RSNA MIRC Clinical Trials Processor (CTP) DICOM Anonymizer. Uses the ctp-anon-minimal dependency.

Usage

Requires a Java JRE >= 8. Download a jar from the Releases, then run with java -jar <jar>

Required arguments:

  • -a / --anon-script: Path to a CTP DICOM anonymizer script file. Samples can be found here
  • -s / --sr-anon-tool: Path to the SRAnonTool. Can be set to false if SR anonymisation is being performed elsewhere.

Optional arguments:

  • -d / --daemonize: Run as a daemon and wait for files to process

To anonymise a single file:

$ java -jar <jar> -a <anon-script> -s <sr-anon-tool> <src-file> <anon-file>

To anonymise multiple files:

$ java -jar <jar> -a <anon-script> -s <sr-anon-tool> (<src-file>:<anon-file>)...

To run as a daemon and process many files:

$ java -jar <jar> -a <anon-script> -s <sr-anon-tool> -d

The application will then wait for lines of <src-file> <anon-file> pairs to process.

Development

Requirements:

  • Java 8 JDK
  • Maven

About

A CLI tool to anonymise files using the RSNA MIRC Clinical Trials Processor (CTP) DICOM Anonymizer

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages