Package qupath.lib.objects
Class TMACoreObject
java.lang.Object
qupath.lib.objects.PathObject
qupath.lib.objects.PathROIObject
qupath.lib.objects.TMACoreObject
- All Implemented Interfaces:
Externalizable
,Serializable
,MetadataStore
A special PathObject used exclusively to represent TMA cores.
Currently, these only contain circular (or elliptical) ROIs.
- Author:
- Pete Bankhead
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Metadata key to store a case identify for the TMA core.static final String
Metadata key for an overall survival censored flag.static final String
Metadata key for an overall survival (temporal) value.static final String
Metadata key for an recurrence-free survival (temporal) value.static final String
Metadata key for an recurrence-free survival censored flag.static final String
Deprecated. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clear all associated metadata.Get the case ID metadata value.Get all metadata keys.Returns an unmodifiable map containing the metadata.getMetadataString
(String key) Get a metadata value, cast as a String if possible.getMetadataValue
(String key) Get a metadata value of any kind.boolean
Query the 'missing' flag for this core.putMetadataValue
(String key, String value) Store a new metadata value.void
void
Set the case ID metadata value.void
setMissing
(boolean missing) Set the missing flag for this core, for example because insufficient tissue is present.toString()
void
Methods inherited from class qupath.lib.objects.PathROIObject
getClassProbability, getPathClass, getROI, isEditable, isLocked, setLocked, setPathClass, setROI
Methods inherited from class qupath.lib.objects.PathObject
addChildObject, addChildObjects, addPathObject, addPathObjects, clearChildObjects, clearMetadataMap, clearPathObjects, createEmptyMeasurementList, getChildObjects, getChildObjects, getChildObjectsAsArray, getClassifications, getColor, getColorRGB, getDescendantObjects, getDisplayedName, getID, getLevel, getMeasurementList, getMeasurements, getMetadata, getName, getParent, getUnmodifiableMetadataMap, hasChildObjects, hasChildren, hasMeasurements, hasROI, isAnnotation, isCell, isDetection, isRootObject, isTile, isTMACore, nChildObjects, nDescendants, objectCountPostfix, refreshID, removeChildObject, removeChildObjects, removePathObject, removePathObjects, resetPathClass, retrieveMetadataKeys, retrieveMetadataValue, setClassifications, setColor, setColor, setColorRGB, setID, setName, setPathClass, storeMetadataValue
-
Field Details
-
LEGACY_KEY_UNIQUE_ID
Deprecated.The key used before v0.4.0 to represent a unique (usually patient) ID. This was replaced by #KEY_CASE_ID.- See Also:
-
KEY_CASE_ID
Metadata key to store a case identify for the TMA core. This can be used to group cores that belong to the same case.- See Also:
-
KEY_OVERALL_SURVIVAL
Metadata key for an overall survival (temporal) value.- See Also:
-
KEY_RECURRENCE_FREE_SURVIVAL
Metadata key for an recurrence-free survival (temporal) value.- See Also:
-
KEY_OS_CENSORED
Metadata key for an overall survival censored flag.- See Also:
-
KEY_RFS_CENSORED
Metadata key for an recurrence-free survival censored flag.- See Also:
-
-
Constructor Details
-
TMACoreObject
public TMACoreObject()Default constructor. Should not be used directly, instead usePathObjects.createTMACoreObject(double, double, double, boolean)
.
-
-
Method Details
-
isMissing
public boolean isMissing()Query the 'missing' flag for this core.- Returns:
-
setMissing
public void setMissing(boolean missing) Set the missing flag for this core, for example because insufficient tissue is present. 'Missing' cores are typically ignored during analysis.- Parameters:
missing
-
-
getCaseID
Get the case ID metadata value.- Returns:
- See Also:
-
setCaseID
Set the case ID metadata value. This is typically used to store a patient identifier, and must be unique for the patient (but multiple cores may have the same ID if they correspond to the same patient).- Parameters:
caseID
-
-
putMetadataValue
Description copied from interface:MetadataStore
Store a new metadata value.- Specified by:
putMetadataValue
in interfaceMetadataStore
- Parameters:
key
-value
-- Returns:
-
getMetadataString
Description copied from interface:MetadataStore
Get a metadata value, cast as a String if possible.- Specified by:
getMetadataString
in interfaceMetadataStore
- Parameters:
key
-- Returns:
-
getMetadataValue
Description copied from interface:MetadataStore
Get a metadata value of any kind.- Specified by:
getMetadataValue
in interfaceMetadataStore
- Parameters:
key
-- Returns:
-
getMetadataKeys
Description copied from interface:MetadataStore
Get all metadata keys.- Specified by:
getMetadataKeys
in interfaceMetadataStore
- Returns:
-
getMetadataMap
Description copied from interface:MetadataStore
Returns an unmodifiable map containing the metadata.- Specified by:
getMetadataMap
in interfaceMetadataStore
- Returns:
-
clearMetadata
public void clearMetadata()Clear all associated metadata. -
toString
- Overrides:
toString
in classPathObject
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Overrides:
writeExternal
in classPathROIObject
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Overrides:
readExternal
in classPathROIObject
- Throws:
IOException
ClassNotFoundException
-