Extract metadata of input file to Flywheel.
Project description
File metadata import
Flywheel gear for importing metadata header of file to Flywheel.
Metadata is stored under file.info.header. Currently, supporting
the following file types:
- DICOM
Usage
Inputs
- input-file: The input file.
Configuration
- debug (boolean, default False): Include debug statements in log.
- Siemens CSA (boolean, default False): If True extract Siemens CSA header for Dicom.
file.info.header structure
DICOM
Dicom header will be stored under file.info.header.dicom. Additionally, if:
input-fileis an archive (e.g dicom.zip), thenfile.info.header.dicom_arraywill be populated.Siemens CSAis enabled, thenfile.info.header.csawill be populated if found.
Details
DICOM
By default, the following tags are not extracted:
- All private tags
PixelDataPixel DataContourDataEncryptedAttributesSequenceOriginalAttributesSequenceSpectroscopyData
By default, for zip archive the following tags are extracted
and stored in file.info.header.dicom_array:
AcquisitionNumberAcquisitionTimeEchoTimeImageOrientationPatientImagePositionPatientImageTypeInstanceNumberSliceLocation
These deny/allow lists can be amended by defining a specific
key/value in the project level custom information under context.header.dicom.
Key: value should take the form of Tag: bool where Tag can either be
a Dicom keyword (e.g. PatientID), a Dicom hex index (e.g 00100020) or
a Dicom private tag GEMS_PARM_01, 0043xx01. If bool is True, the tag
will be added to the parsed tags , if False is will be removed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fw_gear_file_metadata_importer-0.1.0-py3-none-any.whl.
File metadata
- Download URL: fw_gear_file_metadata_importer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.8.8 Linux/4.19.78-coreos
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ef05869d31f54dea2d736a6fcb10e5869b63dae572900f984af22271345add9
|
|
| MD5 |
4160a8d71a3b9913f9887604cf155d0b
|
|
| BLAKE2b-256 |
dabfa2538013c89f0599e3ee948c284ceac9a6b163c7f154a2dd805c2ce11abc
|