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
,MinimalMetadataStore
,MetadataStore
A special PathObject used exclusively to represent TMA cores.
Currently, these only contain circular (or elliptical) ROIs.
- See Also:
-
Field Summary
FieldsModifier 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.v0.6.0.Get the case ID metadata value.Deprecated.v0.6.0.getMetadataString
(String key) Deprecated.v0.6.0.getMetadataValue
(String key) Deprecated.v0.6.0.boolean
Query the 'missing' flag for this core.putMetadataValue
(String key, String value) Deprecated.v0.6.0.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, clearChildObjects, clearMetadataMap, createEmptyMeasurementList, getChildObjects, getChildObjects, getChildObjectsAsArray, getClassification, getClassifications, getColor, getDescendantObjects, getDisplayedName, getID, getLevel, getMeasurementList, getMeasurements, getMetadata, getName, getParent, getUnmodifiableMetadataMap, hasChildObjects, hasMeasurements, hasMetadata, hasROI, isAnnotation, isCell, isDetection, isRootObject, isTile, isTMACore, nChildObjects, nDescendants, objectCountPostfix, refreshID, removeChildObject, removeChildObjects, resetPathClass, retrieveMetadataKeys, retrieveMetadataValue, setClassification, setClassification, setClassifications, setColor, setColor, setID, setName, setPathClass, storeMetadataValue
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface qupath.lib.objects.MetadataStore
getMetadataMap
Methods inherited from interface qupath.lib.interfaces.MinimalMetadataStore
getMetadata
-
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
Deprecated.v0.6.0. UseputMetadataValue(String, String)
instead.Put a metadata value- Specified by:
putMetadataValue
in interfaceMetadataStore
- Parameters:
key
-value
-- Returns:
- any previous metadata value, or null if none
-
getMetadataString
Deprecated.v0.6.0. UsePathObject.getMetadata()
to directly access metadata instead.Get a string metadata value- Specified by:
getMetadataString
in interfaceMetadataStore
- Parameters:
key
-- Returns:
-
getMetadataValue
Deprecated.v0.6.0. UsePathObject.getMetadata()
to directly access metadata instead.Get a metadata value of any kind.- Specified by:
getMetadataValue
in interfaceMetadataStore
- Parameters:
key
-- Returns:
-
getMetadataKeys
Deprecated.v0.6.0. UsePathObject.getMetadata()
to directly access metadata instead.Get all metadata keys.- Specified by:
getMetadataKeys
in interfaceMetadataStore
- Returns:
-
clearMetadata
Deprecated.v0.6.0. UsePathObject.getMetadata()
to directly access metadata instead.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
-