Skip to content

QC types

rationai.types.qc.SlideCheckConfig

Configuration for slide quality checks.

Attributes:

Name Type Description
mask_level int

Pyramid level for mask generation.

sample_level int

Pyramid level for sampling.

check_residual bool

Enable residual tissue detection.

check_folding bool

Enable folding artifact detection.

check_focus bool

Enable focus quality assessment.

wb_correction bool

Enable white balance correction.

Source code in rationai/types/qc.py
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@dataclass
class SlideCheckConfig:
    """Configuration for slide quality checks.

    Attributes:
        mask_level: Pyramid level for mask generation.
        sample_level: Pyramid level for sampling.
        check_residual: Enable residual tissue detection.
        check_folding: Enable folding artifact detection.
        check_focus: Enable focus quality assessment.
        wb_correction: Enable white balance correction.
    """

    mask_level: int = 3
    sample_level: int = 1
    check_residual: bool = True
    check_folding: bool = True
    check_focus: bool = True
    wb_correction: bool = False

check_focus = True class-attribute instance-attribute

check_folding = True class-attribute instance-attribute

check_residual = True class-attribute instance-attribute

mask_level = 3 class-attribute instance-attribute

sample_level = 1 class-attribute instance-attribute

wb_correction = False class-attribute instance-attribute

__init__(mask_level=3, sample_level=1, check_residual=True, check_folding=True, check_focus=True, wb_correction=False)

rationai.types.qc.SlideCheckResult

Source code in rationai/types/qc.py
26
27
28
29
30
31
@dataclass
class SlideCheckResult:
    wsi_path: PathLike[str] | str
    xopat_url: str | None = None
    error: str | None = None
    success: bool = False

error = None class-attribute instance-attribute

success = False class-attribute instance-attribute

wsi_path instance-attribute

xopat_url = None class-attribute instance-attribute

__init__(wsi_path, xopat_url=None, error=None, success=False)