wsidicom


Namewsidicom JSON
Version 0.20.4 PyPI version JSON
download
home_pagehttps://github.com/imi-bigpicture/wsidicom
SummaryTools for handling DICOM based whole scan images
upload_time2024-03-25 14:50:10
maintainerNone
docs_urlNone
authorErik O Gabrielsson
requires_python<4.0,>=3.9
licenseApache-2.0
keywords whole slide image digital pathology annotations dicom
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # *wsidicom*

*wsidicom* is a Python package for reading [DICOM WSI](http://dicom.nema.org/Dicom/DICOMWSI/). The aims with the project are:

- Easy to use interface for reading and writing WSI DICOM images and annotations either from file or through DICOMWeb.
- Support the latest and upcoming DICOM standards.
- Platform independent installation via PyPI.

## Installing *wsidicom*

*wsidicom* is available on PyPI:

```console
pip install wsidicom
```

And through conda:

```console
conda install -c conda-forge wsidicom
```

## Important note

Please note that this is an early release and the API is not frozen yet. Function names and functionality is prone to change.

## Requirements

*wsidicom* uses pydicom, numpy, Pillow, marshmallow, fsspec, universal-pathlib, and dicomweb-client. Imagecodecs, pylibjpeg-rle, pyjpegls, and pylibjpeg-openjpeg can be installed as optionals to support additional transfer syntaxes.

## Limitations

- Levels are required to have (close to) 2 factor scale and same tile size.

- Only 8 bits per sample is supported for color images, and 8 and 16 bits for grayscale images.

- Without optional dependencies, the following transfer syntaxes are supported:

  - JPEGBaseline8Bit
  - JPEG2000
  - JPEG2000Lossless
  - HTJPEG2000
  - HTJPEG2000Lossless
  - HTJPEG2000RPCLLossless
  - ImplicitVRLittleEndian
  - ExplicitVRLittleEndian
  - ExplicitVRBigEndian

- With imagecodecs, the following transfer syntaxes are additionally supported:

  - JPEGExtended12Bit
  - JPEGLosslessP14
  - JPEGLosslessSV1
  - JPEGLSLossless
  - JPEGLSNearLossless
  - RLELossless

- With pylibjpeg-rle RLELossless is additionally supported.

- With pyjpegls JPEGLSLossless and JPEGLSNearLossless is additionally supported.

- Optical path identifiers needs to be unique across instances.

- Only one pyramid (i.e. offset from slide corner) per frame of reference is supported.

## Basic usage

***Load a WSI dataset from files in folder.***

```python
from wsidicom import WsiDicom
slide = WsiDicom.open("path_to_folder")
```

The `files` argument accepts either a path to a folder with DICOM WSI-files or a sequence of paths to DICOM WSI-files.

***Load a WSI dataset from remote url using [fsspec](https://filesystem-spec.readthedocs.io).***

```python
from wsidicom import WsiDicom
slide = WsiDicom.open("s3://bucket/key", file_options={"s3": "anon": True})
```

***Or load a WSI dataset from opened streams.***

```python
from wsidicom import WsiDicom

slide = WsiDicom.open_streams([file_stream_1, file_stream_2, ... ])
```

***Or load a WSI dataset from a DICOMDIR.***

```python
from wsidicom import WsiDicom

slide = WsiDicom.open_dicomdir("path_to_dicom_dir")
```

***Or load a WSI dataset from DICOMWeb.***

```python
from wsidicom import WsiDicom, WsiDicomWebClient
from requests.auth import HTTPBasicAuth

auth = HTTPBasicAuth('username', 'password')
client = WsiDicomWebClient.create_client(
    'dicom_web_hostname',
    '/qido',
    '/wado,
    auth
)
slide = WsiDicom.open_web(
    client,
    "study uid to open",
    "series uid to open" or ["series uid 1 to open", "series uid 2 to open"]
)
```

Alternatively, if you have already created an instance of `dicomweb_client.DICOMwebClient`, that may be used to create the `WsiDicomWebClient` like so:

```python
dicomweb_client = DICOMwebClient("url")
client = WsiDicomWebClient(dicomweb_client)
```

Then proceed to call `WsiDicom.open_web()` with this as in the first example.

***Use as a context manager.***

```python
from wsidicom import WsiDicom
with WsiDicom.open("path_to_folder") as slide:
    ...
```

***Read a 200x200 px region starting from px 1000, 1000 at level 6.***

```python
region = slide.read_region((1000, 1000), 6, (200, 200))
```

***Read a 2000x2000 px region starting from px 1000, 1000 at level 4 using 4 threads.***

```python
region = slide.read_region((1000, 1000), 6, (200, 200), threads=4)
```

***Read 3x3 mm region starting at 0, 0 mm at level 6.***

```python
region_mm = slide.read_region_mm((0, 0), 6, (3, 3))
```

***Read 3x3 mm region starting at 0, 0 mm with pixel spacing 0.01 mm/px.***

```python
region_mpp = slide.read_region_mpp((0, 0), 0.01, (3, 3))
```

***Read a thumbnail of the whole slide with maximum dimensions 200x200 px.***

```python
thumbnail = slide.read_thumbnail((200, 200))
```

***Read an overview image (if available).***

```python
overview = slide.read_overview()
```

***Read a label image (if available).***

```python
label = slide.read_label()
```

***Read (decoded) tile from position 1, 1 in level 6.***

```python
tile = slide.read_tile(6, (1, 1))
```

***Read (encoded) tile from position 1, 1 in level 6.***

```python
tile_bytes = slide.read_encoded_tile(6, (1, 1))
```

***Close files***

```python
slide.close()
```

## API differences between WsiDicom and OpenSlide

The WsiDicom API is similar to OpenSlide, but with some important differences:

- In WsiDicom, the `open`-method (i.e. `WsiDicom.open()`) is used to open a folder with DICOM WSI files, while in OpenSlide a file is opened with the `__init__`-method (e.g. `OpenSlide()`).

- In WsiDicom the `location` parameter in `read_region` is relative to the specified `level`, while in OpenSlide it is relative to the base level.

- In WsiDicom the `level` parameter in `read_region` is the pyramid index, i.e. level 2 always the level with quarter the size of the base level. In OpenSlide it is the index in the list of available levels, and if pyramid levels are missing these will not correspond to pyramid indices.

Conversion between OpenSlide `location` and `level` parameters to WsiDicom can be performed:

```python
with WsiDicom.open("path_to_folder") as wsi:
    level = wsi.levels[openslide_level_index]
    x = openslide_x // 2**(level.level)
    y = openslide_y // 2**(level.level)

```

## Metadata

WsiDicom parses the DICOM metadata in the opened image into easy-to-use dataclasses, see `wsidicom\metadata`.

```python
with WsiDicom.open("path_to_folder") as wsi:
    metadata = wsi.metadata
```

The obtained `WsiMetadata` has child dataclass properties the resembelse the DICOM WSI modules (compare
with the [VL Whole Slide Microscopy Image CIOD](https://dicom.innolitics.com/ciods/vl-whole-slide-microscopy-image)):

- `study`: The study the slide is part of (study identifiers, study date and time, etc.).
- `series`: The series the slide is part of.
- `patient`: Patient information (name, identifier, etc.).
- `equipment`: Scanner information information.
- `optical_paths`: List of optical path descriptions used for imaging the slide.
- `slide`: Slide information, including slide identifier, stainings done on the slide, and samples placed on the slide, see details in [Slide information](#slide-information)
- `label`: Slide label information, such as label text.
- `image`: Image information, including acquisition datetime, pixel spacing, focus method, etc.
- `frame_of_reference_uid`: The unique identifier for the frame of reference for the image.
- `dimension_organization_uids`: List of dimension organization uids.

Note that not all DICOM attributes are represented in the defined metadata model. Instead the full ´pydicom´ Datasets can be accessed per level, for example:

```python
with WsiDicom.open("path_to_folder") as wsi:
    wsi.levels.base_level.datasets[0]
```

If you encounter that some important and/or useful attribute is missing from the model, please make an issue (see [Contributing](#contributing)).

### Slide information

The `Slide` information model models the `Specimen` module has the following properties:

- `identifier`: Identifier for the slide.
- `stainings`: List of stainings done on the slide. Note that the model assumes that the same stainings have been done on all the samples on the slide.
- `samples`: List of samples placed on the slide.

Note that that while the parsing of slide information is designed to be as flexible and permissive as possible, some datasets contains non-standard compliant `Specimen` modules that are (at least currently) not possible to parse. In such cases the `stainings` and `samples` property will be set to `None`. If you have a dataset with a `Specimen` module that you think should be parsable, please make an issue (see [Contributing](#contributing)).

#### SlideSample

Each sample is model with the `SlideSample` dataclass, which represents an item in the DICOM [`Specimen Description Sequence`](https://dicom.innolitics.com/ciods/vl-whole-slide-microscopy-image/specimen/00400560)

- `identifier`: Identifier of the sample.
- `anatomical_sites`: List of codes describing the primary anatomic structures of interest in the sample.
- `sampled_from`: The sampling (of another specimen) that was done to produce the sample (if known). If the sampled specimen also was produced through sampling, this property will give access to the full hierarchy of (known) specimens.
- `uid`: Unique identifier for the sample.
- `localization`: Description of the placement of the sample on the slide. Should be present if more than one sample is placed on the slide.
- `steps`: List of preparation steps performed on the sample.
- `short_description`: Short description of the sample (should not exceed 64 characters).
- `detailed_description`: Unlimited description of the sample.

#### Samplings

The optional `sampled_from` property can either be a `Sampling` or a `UnknownSampling`. Both of these specify a sampled `specimen`, with the difference that the `UnknownSampling` is used when the sampling conditions are not fully know. A `Sampling` is more detailed, and specifies the sampling `method` and optional properties such as sampling `date_time`, `description` and `location`.

#### Specimens

The `specimen` property of a `Sampling` or a `UnknownSampling` links to either a `Specimen` or a `Sample`. A `Specimen` has no known parents (e.g. could be the specimen extracted from a patient), while a `Sample` always is produced from one or more samplings of other `Specimen`s or `Sample`s. The samplings used to produce a `Sample` is given by its `sampled_from`-property. Both `Specimen` and `Sample` contain additional properties describing the specimen:

- identifier: Identifier of the specimen.
- type: Optional anatomic pathology specimen type code (e.g. "tissue specimen"). Should be a specimen type defined in [CID 8103](https://dicom.nema.org/medical/dicom/current/output/chtml/part16/sect_CID_8103.html).
- steps: List of processing steps performed on the specimen.
- container: Optional container type code the specimen is placed in. Should be a container type defined in [CID 8101](https://dicom.nema.org/medical/dicom/current/output/chtml/part16/sect_CID_8101.html).

#### Processing and staining steps

The processing steps that can be performed on a sample are:

- `Sampling`: Sampling of the specimen in order to produce new specimen(s). The sampling `method` should be a method defined in [CID 8110](https://dicom.nema.org/medical/Dicom/current/output/chtml/part16/sect_CID_8110.html).
- `Collection`: Collection of a specimen from a body. This can only be done on a `Specimen`, i.e. not on a specimen produced by sampling. The collection `method` should be a method defined in [CID 8109](https://dicom.nema.org/medical/Dicom/current/output/chtml/part16/sect_CID_8109.html).
- `Processing`: Processing performed on the specimen. The processing `method` should be a method defined in [CID 8113](https://dicom.nema.org/medical/Dicom/current/output/chtml/part16/sect_CID_8113.html).
- `Embedding`: Embedding done on the specimen. The embedding medium should be a medium defined in [CID 8115](https://dicom.nema.org/medical/Dicom/current/output/chtml/part16/sect_CID_8115.html).
- `Fixation`: Fixation of the specimen. The fixative should be a fixative defined in [CID 8114](https://dicom.nema.org/medical/Dicom/current/output/chtml/part16/sect_CID_8114.html).
- `Receiving`: Receiving of the specimen.
- `Storage`: Storage of the specimen.

The `Staining`(s) for a `Slide` contains a list of substances used for staining. The substances used should defined in [CID 8112](https://dicom.nema.org/medical/Dicom/current/output/chtml/part16/sect_CID_8112.html).

Every processing step (including staining) also have the optional properties `date_time` for when the processing was done and `description` for a textual description of the processing.

These steps are parsed from the `SpecimenPreparationSequence` following [`TID 8004`](https://dicom.nema.org/medical/dicom/current/output/chtml/part16/chapter_C.html#sect_TID_8004) for each specimen identifier in the item sequence.

### Exporting to json

The metadata can be exported to json:

```python
from wsidicom.metadata.schema.json import WsiMetadataJsonSchema

with WsiDicom.open("path_to_folder") as wsi:
    metadata = wsi.metadata

schema = WsiMetadataJsonSchema()
metadata_json = schema.dump(metadata)
```

### Settings

The strictness of parsing of DICOM WSI metadata can be configured using the following settings (see [Settings](#settings)):

- `strict_specimen_identifier_check`: Controls how to handle matching between specimen identifiers if one of the identifiers have a issuer of identifier set and the other does not. If `True` the identifiers are considered equal (provided that the identifier value is the same), if `False` the issuer of identifier must always also match. This setting is useful if for example a issuer of identifier is specified in the `Specimen Description Sequence` but steps in the `Specimen Preparation Sequence` lacks the issuer of identifier. The default value is `True`.
- `ignore_specimen_preparation_step_on_validation_error`: Controls how to handle if a step in the `Specimen Preparation Sequence` fails to validate. If `True`, only steps that fails will be ignored. If `False` all steps will be ignored. The default value is `True`.

## Saving files

An opened WsiDicom instance can be saved to a new path using the save()-method. The produced files will be:

- Fully tiled. Any sparse tiles will be replaced with a blank tile with color depending on the photometric interpretation.
- Have a basic offset table (or optionally an extended offset table or no offset table).
- Not be concatenated.

By default frames are copied as-is, i.e. without re-compression.

```python
with WsiDicom.open("path_to_folder") as slide:
    slide.save("path_to_output")
```

The output folder must already exists. Be careful to specify a unique folder folder to avoid mixing files from different images.

Optionally frames can be transcoded, either by a encoder setting or an encoder:

```python
from wsidicom.codec import JpegSettings

with WsiDicom.open("path_to_folder") as slide:
    slide.save("path_to_output", transcoding=JpegSettings())
```

## Settings

*wsidicom* can be configured with the settings variable. For example, set the parsing of files to strict:

```python
from wsidicom import settings
settings.strict_uid_check = True
settings.strict_attribute_check = True
```

## Annotation usage

Annotations are structured in a hierarchy:

- AnnotationInstance
    Represents a collection of AnnotationGroups. All the groups have the same frame of reference, i.e. annotations are from the same wsi stack.
- AnnotationGroup
    Represents a group of annotations. All annotations in the group are of the same type (e.g. PointAnnotation), have the same label, description and category and type. The category and type are codes that are used to define the annotated feature. A good resource for working with codes is available [here](https://qiicr.gitbook.io/dcmqi-guide/opening/coding_schemes).
- Annotation
    Represents a annotation. An Annotation has a geometry (currently Point, Polyline, Polygon) and an optional list of Measurements.
- Measurement
    Represents a measurement for an Annotation. A Measurement consists of a type-code (e.g. "Area"), a value and a unit-code ("mm")

Codes that are defined in the 222-draft can be created using the create(source, type) function of the ConceptCode-class.

***Load a WSI dataset from files in folder.***

```python
from wsidicom import WsiDicom
slide = WsiDicom.open("path_to_folder")
```

***Create a point annotation at x=10.0, y=20.0 mm.***

```python
from wsidicom import Annotation, Point
point_annotation = Annotation(Point(10.0, 20.0))
```

***Create a point annotation with a measurement.***

```python
from wsidicom import ConceptCode, Measurement
# A measurement is defined by a type code ('Area'), a value (25.0) and a unit code ('Pixels).
area = ConceptCode.measurement('Area')
pixels = ConceptCode.unit('Pixels')
measurement = Measurement(area, 25.0, pixels)
point_annotation_with_measurment = Annotation(Point(10.0, 20.0), [measurement])
```

***Create a group of the annotations.***

```python
from wsidicom import PointAnnotationGroup
# The 222 supplement requires groups to have a label, a category and a type
group = PointAnnotationGroup(
    annotations=[point_annotation, point_annotation_with_measurment],
    label='group label',
    categorycode=ConceptCode.category('Tissue'),
    typecode=ConceptCode.type('Nucleus'),
    description='description'
)
```

***Create a collection of annotation groups.***

```python
from wsidicom import AnnotationInstance
annotations = AnnotationInstance([group], 'volume', slide.uids)
```

***Save the collection to file.***

```python
annotations.save('path_to_dicom_dir/annotation.dcm')
```

***Reopen the slide and access the annotation instance.***

```python
slide = WsiDicom.open("path_to_folder")
annotations = slide.annotations
```

## Setup environment for development

Requires poetry installed in the virtual environment.

```console
git clone https://github.com/imi-bigpicture/wsidicom.git
poetry install
```

To watch unit tests use:

```console
poetry run pytest-watch -- -m unittest
```

The integration tests uses test images from nema.org that's needs to be downloaded. The location of the test images can be changed from the default tests\testdata\slides using the environment variable WSIDICOM_TESTDIR. Download the images using the supplied script:

```console
python .\tests\download_test_images.py
```

If the files are already downloaded the script will validate the checksums.

To run integration tests:

```console
poetry run pytest -m integration
```

## Data structure

A WSI DICOM pyramid is in *wsidicom* represented by a hierarchy of objects of different classes, starting from bottom:

- *WsiDicomReader*, represents a WSI DICOM file reader, used for accessing WsiDicomFileImageData and WsiDataset.
- *WsiDicomFileImageData*, represents the image data in one or several (in case of concatenation) WSI DICOM files.
- *WsiDataset*, represents the image metadata in one or several (in case of concatenation) WSI DICOM files.
- *WsiInstance*, represents image data and image metadata.
- *Level*, represents a group of instances with the same image size, i.e. of the same level.
- *Pyramid*, represents a group of levels, i.e. the pyrimidal structure.
- *Pyramids*, represents a collection of pyramids, each with different image coordate system or extended depth of field.
- *WsiDicom*, represents a collection of pyramids, labels and overviews.

Labels and overviews are structured similarly to levels, but with somewhat different properties and restrictions. For DICOMWeb the WsiDicomFile\* classes are replaced with WsiDicomWeb\* classes.

A Source is used to create WsiInstances, either from files (*WsiDicomFileSource*) or DICOMWeb (*WsiDicomWebSource*), and can be used to to Initiate a *WsiDicom* object. A source is easiest created with the open() and open_web() helper functions, e.g.:

```python
slide = WsiDicom.open("path_to_folder")
```

## Code structure

- [codec](wsidicom/codec) - Encoders and decoders for image pixel data.
- [file](wsidicom/file) - Implementation for reading and writing DICOM WSI files.
- [group](wsidicom/group) - Group implementations, e.g. Level.
- [instance](wsidicom/instance) - Instance implementations WsiIsntance and WsiDataset, the metaclass ImageData and ImageData implementations WsiDicomImageData and PillowImageData.
- [metadata](wsidicom/metadata) - Metadata models and schema for serializing and deserializing to DICOM and json.
- [series](wsidicom/series) - Series implementations Levels, Labels, and Overview.
- [web](wsidicom/web) - Implementation for reading DICOM WSI from DICOMWeb.
- [conceptcode.py](wsidicom/conceptcode.py) - Handling of DICOM concept codes.
- [config.py](wsidicom/config.py) - Handles configuration settings.
- [errors.py](wsidicom/errors.py) - Custom errors.
- [geometry.py](wsidicom/geometry.py) - Classes for geometry handling.
- [graphical_annotations](wsidicom/graphical_annotations.py) - Handling graphical annotations.
- [source.py](wsidicom/source.py) - Metaclass Source for serving WsiInstances to WsiDicom.
- [stringprinting.py](wsidicom/stringprinting.py) - For nicer string printing of objects.
- [tags.py](wsidicom/tags.py) - Definition of commonly used DICOM tags.
- [threads.py](wsidicom/thread.py) - Implementation of ThreadPoolExecutor that does not use a pool when only single worker.
- [uid.py](wsidicom/uid.py) - Handles DICOM uids.
- [wsidicom.py](wsidicom/wsidicom.py) - Main class with methods to open DICOM WSI objects.

## Adding support for other file formats

Support for other formats (or methods to access DICOM data) can be implemented by creating a new Source implementation, that should create WsiInstances for the implemented formats. A format specific implementations of the *ImageData* is likely needed to access the WSI image data. Additionally a WsiDataset needs to be created that returns matching metadata for the WSI.

The implemented Source can then create a instance from the implemented ImageData (and a method returning a WsiDataset):

```python
image_data = MyImageData('path_to_image_file')
dataset = create_dataset_from_image_data(image_data)
instance = WsiInstance(dataset, image_data)
```

The source should arrange the created instances and return them at the level_instances, label_instances, and overview_instances properties. WsiDicom can then open the source object and arrange the instances into levels etc as described in 'Data structure'.

## Other DICOM python tools

- [pydicom](https://pydicom.github.io/)
- [highdicom](https://github.com/MGHComputationalPathology/highdicom)
- [wsidicomizer](https://github.com/imi-bigpicture/wsidicomizer)
- [dicomslide](https://github.com/ImagingDataCommons/dicomslide)
- [openslide-python](https://openslide.org/api/python/)

## Contributing

We welcome any contributions to help improve this tool for the WSI DICOM community!

We recommend first creating an issue before creating potential contributions to check that the contribution is in line with the goals of the project. To submit your contribution, please issue a pull request on the [imi-bigpicture/wsidicom repository](https://github.com/imi-bigpicture/wsidicom) with your changes for review.

Our aim is to provide constructive and positive code reviews for all submissions. The project relies on gradual typing and roughly follows PEP8. However, we are not dogmatic. Most important is that the code is easy to read and understand.

## Acknowledgement

*wsidicom*: Copyright 2021 Sectra AB, licensed under Apache 2.0.

This project is part of a project that has received funding from the Innovative Medicines Initiative 2 Joint Undertaking under grant agreement No 945358. This Joint Undertaking receives support from the European Union’s Horizon 2020 research and innovation programme and EFPIA. IMI website: <www.imi.europa.eu>

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/imi-bigpicture/wsidicom",
    "name": "wsidicom",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": "whole slide image, digital pathology, annotations, dicom",
    "author": "Erik O Gabrielsson",
    "author_email": "erik.o.gabrielsson@sectra.com",
    "download_url": "https://files.pythonhosted.org/packages/ca/b0/335fbd7f17a37551cc196a62e6eee567f4d8f1c0ff69c624b1517794ca03/wsidicom-0.20.4.tar.gz",
    "platform": null,
    "description": "# *wsidicom*\n\n*wsidicom* is a Python package for reading [DICOM WSI](http://dicom.nema.org/Dicom/DICOMWSI/). The aims with the project are:\n\n- Easy to use interface for reading and writing WSI DICOM images and annotations either from file or through DICOMWeb.\n- Support the latest and upcoming DICOM standards.\n- Platform independent installation via PyPI.\n\n## Installing *wsidicom*\n\n*wsidicom* is available on PyPI:\n\n```console\npip install wsidicom\n```\n\nAnd through conda:\n\n```console\nconda install -c conda-forge wsidicom\n```\n\n## Important note\n\nPlease note that this is an early release and the API is not frozen yet. Function names and functionality is prone to change.\n\n## Requirements\n\n*wsidicom* uses pydicom, numpy, Pillow, marshmallow, fsspec, universal-pathlib, and dicomweb-client. Imagecodecs, pylibjpeg-rle, pyjpegls, and pylibjpeg-openjpeg can be installed as optionals to support additional transfer syntaxes.\n\n## Limitations\n\n- Levels are required to have (close to) 2 factor scale and same tile size.\n\n- Only 8 bits per sample is supported for color images, and 8 and 16 bits for grayscale images.\n\n- Without optional dependencies, the following transfer syntaxes are supported:\n\n  - JPEGBaseline8Bit\n  - JPEG2000\n  - JPEG2000Lossless\n  - HTJPEG2000\n  - HTJPEG2000Lossless\n  - HTJPEG2000RPCLLossless\n  - ImplicitVRLittleEndian\n  - ExplicitVRLittleEndian\n  - ExplicitVRBigEndian\n\n- With imagecodecs, the following transfer syntaxes are additionally supported:\n\n  - JPEGExtended12Bit\n  - JPEGLosslessP14\n  - JPEGLosslessSV1\n  - JPEGLSLossless\n  - JPEGLSNearLossless\n  - RLELossless\n\n- With pylibjpeg-rle RLELossless is additionally supported.\n\n- With pyjpegls JPEGLSLossless and JPEGLSNearLossless is additionally supported.\n\n- Optical path identifiers needs to be unique across instances.\n\n- Only one pyramid (i.e. offset from slide corner) per frame of reference is supported.\n\n## Basic usage\n\n***Load a WSI dataset from files in folder.***\n\n```python\nfrom wsidicom import WsiDicom\nslide = WsiDicom.open(\"path_to_folder\")\n```\n\nThe `files` argument accepts either a path to a folder with DICOM WSI-files or a sequence of paths to DICOM WSI-files.\n\n***Load a WSI dataset from remote url using [fsspec](https://filesystem-spec.readthedocs.io).***\n\n```python\nfrom wsidicom import WsiDicom\nslide = WsiDicom.open(\"s3://bucket/key\", file_options={\"s3\": \"anon\": True})\n```\n\n***Or load a WSI dataset from opened streams.***\n\n```python\nfrom wsidicom import WsiDicom\n\nslide = WsiDicom.open_streams([file_stream_1, file_stream_2, ... ])\n```\n\n***Or load a WSI dataset from a DICOMDIR.***\n\n```python\nfrom wsidicom import WsiDicom\n\nslide = WsiDicom.open_dicomdir(\"path_to_dicom_dir\")\n```\n\n***Or load a WSI dataset from DICOMWeb.***\n\n```python\nfrom wsidicom import WsiDicom, WsiDicomWebClient\nfrom requests.auth import HTTPBasicAuth\n\nauth = HTTPBasicAuth('username', 'password')\nclient = WsiDicomWebClient.create_client(\n    'dicom_web_hostname',\n    '/qido',\n    '/wado,\n    auth\n)\nslide = WsiDicom.open_web(\n    client,\n    \"study uid to open\",\n    \"series uid to open\" or [\"series uid 1 to open\", \"series uid 2 to open\"]\n)\n```\n\nAlternatively, if you have already created an instance of `dicomweb_client.DICOMwebClient`, that may be used to create the `WsiDicomWebClient` like so:\n\n```python\ndicomweb_client = DICOMwebClient(\"url\")\nclient = WsiDicomWebClient(dicomweb_client)\n```\n\nThen proceed to call `WsiDicom.open_web()` with this as in the first example.\n\n***Use as a context manager.***\n\n```python\nfrom wsidicom import WsiDicom\nwith WsiDicom.open(\"path_to_folder\") as slide:\n    ...\n```\n\n***Read a 200x200 px region starting from px 1000, 1000 at level 6.***\n\n```python\nregion = slide.read_region((1000, 1000), 6, (200, 200))\n```\n\n***Read a 2000x2000 px region starting from px 1000, 1000 at level 4 using 4 threads.***\n\n```python\nregion = slide.read_region((1000, 1000), 6, (200, 200), threads=4)\n```\n\n***Read 3x3 mm region starting at 0, 0 mm at level 6.***\n\n```python\nregion_mm = slide.read_region_mm((0, 0), 6, (3, 3))\n```\n\n***Read 3x3 mm region starting at 0, 0 mm with pixel spacing 0.01 mm/px.***\n\n```python\nregion_mpp = slide.read_region_mpp((0, 0), 0.01, (3, 3))\n```\n\n***Read a thumbnail of the whole slide with maximum dimensions 200x200 px.***\n\n```python\nthumbnail = slide.read_thumbnail((200, 200))\n```\n\n***Read an overview image (if available).***\n\n```python\noverview = slide.read_overview()\n```\n\n***Read a label image (if available).***\n\n```python\nlabel = slide.read_label()\n```\n\n***Read (decoded) tile from position 1, 1 in level 6.***\n\n```python\ntile = slide.read_tile(6, (1, 1))\n```\n\n***Read (encoded) tile from position 1, 1 in level 6.***\n\n```python\ntile_bytes = slide.read_encoded_tile(6, (1, 1))\n```\n\n***Close files***\n\n```python\nslide.close()\n```\n\n## API differences between WsiDicom and OpenSlide\n\nThe WsiDicom API is similar to OpenSlide, but with some important differences:\n\n- In WsiDicom, the `open`-method (i.e. `WsiDicom.open()`) is used to open a folder with DICOM WSI files, while in OpenSlide a file is opened with the `__init__`-method (e.g. `OpenSlide()`).\n\n- In WsiDicom the `location` parameter in `read_region` is relative to the specified `level`, while in OpenSlide it is relative to the base level.\n\n- In WsiDicom the `level` parameter in `read_region` is the pyramid index, i.e. level 2 always the level with quarter the size of the base level. In OpenSlide it is the index in the list of available levels, and if pyramid levels are missing these will not correspond to pyramid indices.\n\nConversion between OpenSlide `location` and `level` parameters to WsiDicom can be performed:\n\n```python\nwith WsiDicom.open(\"path_to_folder\") as wsi:\n    level = wsi.levels[openslide_level_index]\n    x = openslide_x // 2**(level.level)\n    y = openslide_y // 2**(level.level)\n\n```\n\n## Metadata\n\nWsiDicom parses the DICOM metadata in the opened image into easy-to-use dataclasses, see `wsidicom\\metadata`.\n\n```python\nwith WsiDicom.open(\"path_to_folder\") as wsi:\n    metadata = wsi.metadata\n```\n\nThe obtained `WsiMetadata` has child dataclass properties the resembelse the DICOM WSI modules (compare\nwith the [VL Whole Slide Microscopy Image CIOD](https://dicom.innolitics.com/ciods/vl-whole-slide-microscopy-image)):\n\n- `study`: The study the slide is part of (study identifiers, study date and time, etc.).\n- `series`: The series the slide is part of.\n- `patient`: Patient information (name, identifier, etc.).\n- `equipment`: Scanner information information.\n- `optical_paths`: List of optical path descriptions used for imaging the slide.\n- `slide`: Slide information, including slide identifier, stainings done on the slide, and samples placed on the slide, see details in [Slide information](#slide-information)\n- `label`: Slide label information, such as label text.\n- `image`: Image information, including acquisition datetime, pixel spacing, focus method, etc.\n- `frame_of_reference_uid`: The unique identifier for the frame of reference for the image.\n- `dimension_organization_uids`: List of dimension organization uids.\n\nNote that not all DICOM attributes are represented in the defined metadata model. Instead the full \u00b4pydicom\u00b4 Datasets can be accessed per level, for example:\n\n```python\nwith WsiDicom.open(\"path_to_folder\") as wsi:\n    wsi.levels.base_level.datasets[0]\n```\n\nIf you encounter that some important and/or useful attribute is missing from the model, please make an issue (see [Contributing](#contributing)).\n\n### Slide information\n\nThe `Slide` information model models the `Specimen` module has the following properties:\n\n- `identifier`: Identifier for the slide.\n- `stainings`: List of stainings done on the slide. Note that the model assumes that the same stainings have been done on all the samples on the slide.\n- `samples`: List of samples placed on the slide.\n\nNote that that while the parsing of slide information is designed to be as flexible and permissive as possible, some datasets contains non-standard compliant `Specimen` modules that are (at least currently) not possible to parse. In such cases the `stainings` and `samples` property will be set to `None`. If you have a dataset with a `Specimen` module that you think should be parsable, please make an issue (see [Contributing](#contributing)).\n\n#### SlideSample\n\nEach sample is model with the `SlideSample` dataclass, which represents an item in the DICOM [`Specimen Description Sequence`](https://dicom.innolitics.com/ciods/vl-whole-slide-microscopy-image/specimen/00400560)\n\n- `identifier`: Identifier of the sample.\n- `anatomical_sites`: List of codes describing the primary anatomic structures of interest in the sample.\n- `sampled_from`: The sampling (of another specimen) that was done to produce the sample (if known). If the sampled specimen also was produced through sampling, this property will give access to the full hierarchy of (known) specimens.\n- `uid`: Unique identifier for the sample.\n- `localization`: Description of the placement of the sample on the slide. Should be present if more than one sample is placed on the slide.\n- `steps`: List of preparation steps performed on the sample.\n- `short_description`: Short description of the sample (should not exceed 64 characters).\n- `detailed_description`: Unlimited description of the sample.\n\n#### Samplings\n\nThe optional `sampled_from` property can either be a `Sampling` or a `UnknownSampling`. Both of these specify a sampled `specimen`, with the difference that the `UnknownSampling` is used when the sampling conditions are not fully know. A `Sampling` is more detailed, and specifies the sampling `method` and optional properties such as sampling `date_time`, `description` and `location`.\n\n#### Specimens\n\nThe `specimen` property of a `Sampling` or a `UnknownSampling` links to either a `Specimen` or a `Sample`. A `Specimen` has no known parents (e.g. could be the specimen extracted from a patient), while a `Sample` always is produced from one or more samplings of other `Specimen`s or `Sample`s. The samplings used to produce a `Sample` is given by its `sampled_from`-property. Both `Specimen` and `Sample` contain additional properties describing the specimen:\n\n- identifier: Identifier of the specimen.\n- type: Optional anatomic pathology specimen type code (e.g. \"tissue specimen\"). Should be a specimen type defined in [CID 8103](https://dicom.nema.org/medical/dicom/current/output/chtml/part16/sect_CID_8103.html).\n- steps: List of processing steps performed on the specimen.\n- container: Optional container type code the specimen is placed in. Should be a container type defined in [CID 8101](https://dicom.nema.org/medical/dicom/current/output/chtml/part16/sect_CID_8101.html).\n\n#### Processing and staining steps\n\nThe processing steps that can be performed on a sample are:\n\n- `Sampling`: Sampling of the specimen in order to produce new specimen(s). The sampling `method` should be a method defined in [CID 8110](https://dicom.nema.org/medical/Dicom/current/output/chtml/part16/sect_CID_8110.html).\n- `Collection`: Collection of a specimen from a body. This can only be done on a `Specimen`, i.e. not on a specimen produced by sampling. The collection `method` should be a method defined in [CID 8109](https://dicom.nema.org/medical/Dicom/current/output/chtml/part16/sect_CID_8109.html).\n- `Processing`: Processing performed on the specimen. The processing `method` should be a method defined in [CID 8113](https://dicom.nema.org/medical/Dicom/current/output/chtml/part16/sect_CID_8113.html).\n- `Embedding`: Embedding done on the specimen. The embedding medium should be a medium defined in [CID 8115](https://dicom.nema.org/medical/Dicom/current/output/chtml/part16/sect_CID_8115.html).\n- `Fixation`: Fixation of the specimen. The fixative should be a fixative defined in [CID 8114](https://dicom.nema.org/medical/Dicom/current/output/chtml/part16/sect_CID_8114.html).\n- `Receiving`: Receiving of the specimen.\n- `Storage`: Storage of the specimen.\n\nThe `Staining`(s) for a `Slide` contains a list of substances used for staining. The substances used should defined in [CID 8112](https://dicom.nema.org/medical/Dicom/current/output/chtml/part16/sect_CID_8112.html).\n\nEvery processing step (including staining) also have the optional properties `date_time` for when the processing was done and `description` for a textual description of the processing.\n\nThese steps are parsed from the `SpecimenPreparationSequence` following [`TID 8004`](https://dicom.nema.org/medical/dicom/current/output/chtml/part16/chapter_C.html#sect_TID_8004) for each specimen identifier in the item sequence.\n\n### Exporting to json\n\nThe metadata can be exported to json:\n\n```python\nfrom wsidicom.metadata.schema.json import WsiMetadataJsonSchema\n\nwith WsiDicom.open(\"path_to_folder\") as wsi:\n    metadata = wsi.metadata\n\nschema = WsiMetadataJsonSchema()\nmetadata_json = schema.dump(metadata)\n```\n\n### Settings\n\nThe strictness of parsing of DICOM WSI metadata can be configured using the following settings (see [Settings](#settings)):\n\n- `strict_specimen_identifier_check`: Controls how to handle matching between specimen identifiers if one of the identifiers have a issuer of identifier set and the other does not. If `True` the identifiers are considered equal (provided that the identifier value is the same), if `False` the issuer of identifier must always also match. This setting is useful if for example a issuer of identifier is specified in the `Specimen Description Sequence` but steps in the `Specimen Preparation Sequence` lacks the issuer of identifier. The default value is `True`.\n- `ignore_specimen_preparation_step_on_validation_error`: Controls how to handle if a step in the `Specimen Preparation Sequence` fails to validate. If `True`, only steps that fails will be ignored. If `False` all steps will be ignored. The default value is `True`.\n\n## Saving files\n\nAn opened WsiDicom instance can be saved to a new path using the save()-method. The produced files will be:\n\n- Fully tiled. Any sparse tiles will be replaced with a blank tile with color depending on the photometric interpretation.\n- Have a basic offset table (or optionally an extended offset table or no offset table).\n- Not be concatenated.\n\nBy default frames are copied as-is, i.e. without re-compression.\n\n```python\nwith WsiDicom.open(\"path_to_folder\") as slide:\n    slide.save(\"path_to_output\")\n```\n\nThe output folder must already exists. Be careful to specify a unique folder folder to avoid mixing files from different images.\n\nOptionally frames can be transcoded, either by a encoder setting or an encoder:\n\n```python\nfrom wsidicom.codec import JpegSettings\n\nwith WsiDicom.open(\"path_to_folder\") as slide:\n    slide.save(\"path_to_output\", transcoding=JpegSettings())\n```\n\n## Settings\n\n*wsidicom* can be configured with the settings variable. For example, set the parsing of files to strict:\n\n```python\nfrom wsidicom import settings\nsettings.strict_uid_check = True\nsettings.strict_attribute_check = True\n```\n\n## Annotation usage\n\nAnnotations are structured in a hierarchy:\n\n- AnnotationInstance\n    Represents a collection of AnnotationGroups. All the groups have the same frame of reference, i.e. annotations are from the same wsi stack.\n- AnnotationGroup\n    Represents a group of annotations. All annotations in the group are of the same type (e.g. PointAnnotation), have the same label, description and category and type. The category and type are codes that are used to define the annotated feature. A good resource for working with codes is available [here](https://qiicr.gitbook.io/dcmqi-guide/opening/coding_schemes).\n- Annotation\n    Represents a annotation. An Annotation has a geometry (currently Point, Polyline, Polygon) and an optional list of Measurements.\n- Measurement\n    Represents a measurement for an Annotation. A Measurement consists of a type-code (e.g. \"Area\"), a value and a unit-code (\"mm\")\n\nCodes that are defined in the 222-draft can be created using the create(source, type) function of the ConceptCode-class.\n\n***Load a WSI dataset from files in folder.***\n\n```python\nfrom wsidicom import WsiDicom\nslide = WsiDicom.open(\"path_to_folder\")\n```\n\n***Create a point annotation at x=10.0, y=20.0 mm.***\n\n```python\nfrom wsidicom import Annotation, Point\npoint_annotation = Annotation(Point(10.0, 20.0))\n```\n\n***Create a point annotation with a measurement.***\n\n```python\nfrom wsidicom import ConceptCode, Measurement\n# A measurement is defined by a type code ('Area'), a value (25.0) and a unit code ('Pixels).\narea = ConceptCode.measurement('Area')\npixels = ConceptCode.unit('Pixels')\nmeasurement = Measurement(area, 25.0, pixels)\npoint_annotation_with_measurment = Annotation(Point(10.0, 20.0), [measurement])\n```\n\n***Create a group of the annotations.***\n\n```python\nfrom wsidicom import PointAnnotationGroup\n# The 222 supplement requires groups to have a label, a category and a type\ngroup = PointAnnotationGroup(\n    annotations=[point_annotation, point_annotation_with_measurment],\n    label='group label',\n    categorycode=ConceptCode.category('Tissue'),\n    typecode=ConceptCode.type('Nucleus'),\n    description='description'\n)\n```\n\n***Create a collection of annotation groups.***\n\n```python\nfrom wsidicom import AnnotationInstance\nannotations = AnnotationInstance([group], 'volume', slide.uids)\n```\n\n***Save the collection to file.***\n\n```python\nannotations.save('path_to_dicom_dir/annotation.dcm')\n```\n\n***Reopen the slide and access the annotation instance.***\n\n```python\nslide = WsiDicom.open(\"path_to_folder\")\nannotations = slide.annotations\n```\n\n## Setup environment for development\n\nRequires poetry installed in the virtual environment.\n\n```console\ngit clone https://github.com/imi-bigpicture/wsidicom.git\npoetry install\n```\n\nTo watch unit tests use:\n\n```console\npoetry run pytest-watch -- -m unittest\n```\n\nThe integration tests uses test images from nema.org that's needs to be downloaded. The location of the test images can be changed from the default tests\\testdata\\slides using the environment variable WSIDICOM_TESTDIR. Download the images using the supplied script:\n\n```console\npython .\\tests\\download_test_images.py\n```\n\nIf the files are already downloaded the script will validate the checksums.\n\nTo run integration tests:\n\n```console\npoetry run pytest -m integration\n```\n\n## Data structure\n\nA WSI DICOM pyramid is in *wsidicom* represented by a hierarchy of objects of different classes, starting from bottom:\n\n- *WsiDicomReader*, represents a WSI DICOM file reader, used for accessing WsiDicomFileImageData and WsiDataset.\n- *WsiDicomFileImageData*, represents the image data in one or several (in case of concatenation) WSI DICOM files.\n- *WsiDataset*, represents the image metadata in one or several (in case of concatenation) WSI DICOM files.\n- *WsiInstance*, represents image data and image metadata.\n- *Level*, represents a group of instances with the same image size, i.e. of the same level.\n- *Pyramid*, represents a group of levels, i.e. the pyrimidal structure.\n- *Pyramids*, represents a collection of pyramids, each with different image coordate system or extended depth of field.\n- *WsiDicom*, represents a collection of pyramids, labels and overviews.\n\nLabels and overviews are structured similarly to levels, but with somewhat different properties and restrictions. For DICOMWeb the WsiDicomFile\\* classes are replaced with WsiDicomWeb\\* classes.\n\nA Source is used to create WsiInstances, either from files (*WsiDicomFileSource*) or DICOMWeb (*WsiDicomWebSource*), and can be used to to Initiate a *WsiDicom* object. A source is easiest created with the open() and open_web() helper functions, e.g.:\n\n```python\nslide = WsiDicom.open(\"path_to_folder\")\n```\n\n## Code structure\n\n- [codec](wsidicom/codec) - Encoders and decoders for image pixel data.\n- [file](wsidicom/file) - Implementation for reading and writing DICOM WSI files.\n- [group](wsidicom/group) - Group implementations, e.g. Level.\n- [instance](wsidicom/instance) - Instance implementations WsiIsntance and WsiDataset, the metaclass ImageData and ImageData implementations WsiDicomImageData and PillowImageData.\n- [metadata](wsidicom/metadata) - Metadata models and schema for serializing and deserializing to DICOM and json.\n- [series](wsidicom/series) - Series implementations Levels, Labels, and Overview.\n- [web](wsidicom/web) - Implementation for reading DICOM WSI from DICOMWeb.\n- [conceptcode.py](wsidicom/conceptcode.py) - Handling of DICOM concept codes.\n- [config.py](wsidicom/config.py) - Handles configuration settings.\n- [errors.py](wsidicom/errors.py) - Custom errors.\n- [geometry.py](wsidicom/geometry.py) - Classes for geometry handling.\n- [graphical_annotations](wsidicom/graphical_annotations.py) - Handling graphical annotations.\n- [source.py](wsidicom/source.py) - Metaclass Source for serving WsiInstances to WsiDicom.\n- [stringprinting.py](wsidicom/stringprinting.py) - For nicer string printing of objects.\n- [tags.py](wsidicom/tags.py) - Definition of commonly used DICOM tags.\n- [threads.py](wsidicom/thread.py) - Implementation of ThreadPoolExecutor that does not use a pool when only single worker.\n- [uid.py](wsidicom/uid.py) - Handles DICOM uids.\n- [wsidicom.py](wsidicom/wsidicom.py) - Main class with methods to open DICOM WSI objects.\n\n## Adding support for other file formats\n\nSupport for other formats (or methods to access DICOM data) can be implemented by creating a new Source implementation, that should create WsiInstances for the implemented formats. A format specific implementations of the *ImageData* is likely needed to access the WSI image data. Additionally a WsiDataset needs to be created that returns matching metadata for the WSI.\n\nThe implemented Source can then create a instance from the implemented ImageData (and a method returning a WsiDataset):\n\n```python\nimage_data = MyImageData('path_to_image_file')\ndataset = create_dataset_from_image_data(image_data)\ninstance = WsiInstance(dataset, image_data)\n```\n\nThe source should arrange the created instances and return them at the level_instances, label_instances, and overview_instances properties. WsiDicom can then open the source object and arrange the instances into levels etc as described in 'Data structure'.\n\n## Other DICOM python tools\n\n- [pydicom](https://pydicom.github.io/)\n- [highdicom](https://github.com/MGHComputationalPathology/highdicom)\n- [wsidicomizer](https://github.com/imi-bigpicture/wsidicomizer)\n- [dicomslide](https://github.com/ImagingDataCommons/dicomslide)\n- [openslide-python](https://openslide.org/api/python/)\n\n## Contributing\n\nWe welcome any contributions to help improve this tool for the WSI DICOM community!\n\nWe recommend first creating an issue before creating potential contributions to check that the contribution is in line with the goals of the project. To submit your contribution, please issue a pull request on the [imi-bigpicture/wsidicom repository](https://github.com/imi-bigpicture/wsidicom) with your changes for review.\n\nOur aim is to provide constructive and positive code reviews for all submissions. The project relies on gradual typing and roughly follows PEP8. However, we are not dogmatic. Most important is that the code is easy to read and understand.\n\n## Acknowledgement\n\n*wsidicom*: Copyright 2021 Sectra AB, licensed under Apache 2.0.\n\nThis project is part of a project that has received funding from the Innovative Medicines Initiative 2 Joint Undertaking under grant agreement No 945358. This Joint Undertaking receives support from the European Union\u2019s Horizon 2020 research and innovation programme and EFPIA. IMI website: <www.imi.europa.eu>\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Tools for handling DICOM based whole scan images",
    "version": "0.20.4",
    "project_urls": {
        "Homepage": "https://github.com/imi-bigpicture/wsidicom",
        "Repository": "https://github.com/imi-bigpicture/wsidicom"
    },
    "split_keywords": [
        "whole slide image",
        " digital pathology",
        " annotations",
        " dicom"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "91cfea44e7543d690fa8d5867b3a86370b9f54545bb8b33f0cdc82e1d3196f5c",
                "md5": "81cd480e351fd84325635ac62cfbf398",
                "sha256": "6760af7d4e6ecc322c5c23ac2e1aad8f6ee904e126d8c840da90210d95ee0aeb"
            },
            "downloads": -1,
            "filename": "wsidicom-0.20.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "81cd480e351fd84325635ac62cfbf398",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 225404,
            "upload_time": "2024-03-25T14:50:08",
            "upload_time_iso_8601": "2024-03-25T14:50:08.860523Z",
            "url": "https://files.pythonhosted.org/packages/91/cf/ea44e7543d690fa8d5867b3a86370b9f54545bb8b33f0cdc82e1d3196f5c/wsidicom-0.20.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cab0335fbd7f17a37551cc196a62e6eee567f4d8f1c0ff69c624b1517794ca03",
                "md5": "cb1498d2ffdf87dffcfb5a0f4919fbb5",
                "sha256": "3d4df665b325e3c990b573258a2cfb974f68ee6d977ce74e9c97fbc6ab8c3663"
            },
            "downloads": -1,
            "filename": "wsidicom-0.20.4.tar.gz",
            "has_sig": false,
            "md5_digest": "cb1498d2ffdf87dffcfb5a0f4919fbb5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 151674,
            "upload_time": "2024-03-25T14:50:10",
            "upload_time_iso_8601": "2024-03-25T14:50:10.749623Z",
            "url": "https://files.pythonhosted.org/packages/ca/b0/335fbd7f17a37551cc196a62e6eee567f4d8f1c0ff69c624b1517794ca03/wsidicom-0.20.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-25 14:50:10",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "imi-bigpicture",
    "github_project": "wsidicom",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "wsidicom"
}
        
Elapsed time: 0.20868s