/fast5purge

Purge a fast5 file from sensitive information

Primary LanguagePythonMIT LicenseMIT

fast5purge

Purge a fast5 file or directory of fast5 files from potentially sensitive information: the information in data in following locations will be erased:

  • UniqueGlobalKey/context_tags/filename
  • UniqueGlobalKey/context_tags/user_filename_input
  • UniqueGlobalKey/tracking_id/sample_id
  • UniqueGlobalKey/tracking_id/ip_address

WARNING

Currently modifies fast5 file IN PLACE. You cannot get your original data data back if you do not have a copy.
I hope to fix this sooner or later, pull requests are very much welcome

INSTALLATION

pip install fast5purge

USAGE

fast5purge [-h] [-d DIR] [-f FILE] [-r]

Remove sensitive content from a fast5 file or directory

optional arguments:
  -h, --help            show this help message and exit
  -d DIR, --dir DIR     directory in which fast5 files have to be purged
  -f FILE, --file FILE  single fast5 file to purge
  -r, --recursive       recursively go through directory