Skip to content

TNBC

TNBCPatientData

Bases: BasePatientData

Represents Triple negative breast cancer patient data.

This model contains the patient-specific data, including imaging information, treatment history, and metadata. It provides methods to load patient data from files and compute derived properties, such as breast-masked images and treatment days.

Attributes:

Name Type Description
breastmask Path

Path to the breast mask image file.

T1_post Optional[Path]

Path to the post-contrast T1-weighted image file.

visits List[TNBCVisitData]

List of patient visits, including imaging and ROI data.

T1_post_image property

Loads the post-contrast T1-weighted image and optionally crops it.

Returns:

Type Description
Optional[NibabelNifti]

Optional[NibabelNifti]: The loaded T1-post image, or None if unavailable.

breastmask_image property

Loads the breast mask image and optionally crops it to the breast bounding box.

Returns:

Name Type Description
NibabelNifti NibabelNifti

The loaded breast mask image.

TNBCVisitData

Bases: BaseVisitData

Represents data for a single patient visit in the context of triple negative breast cancer (TNBC).

Attributes:

Name Type Description
adc Path

Path to the Apparent Diffusion Coefficient (ADC) image file.

roi_enhance Path

Path to the file containing the region of interest (ROI) for enhancing tumor regions.

adc_image property

Loads the ADC image as a NibabelNifti object, optionally cropped to the crop bounding box.

Returns:

Name Type Description
NibabelNifti NibabelNifti

The loaded and optionally cropped ADC image.

roi_enhance_image property

Loads the ROI enhancing image as a NibabelNifti object, optionally cropped to the breast region.

Returns:

Name Type Description
NibabelNifti NibabelNifti

The loaded and optionally cropped ROI enhancing image.