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 StringMetadata key to store a case identify for the TMA core.static final StringMetadata key for an overall survival censored flag.static final StringMetadata key for an overall survival (temporal) value.static final StringMetadata key for an recurrence-free survival (temporal) value.static final StringMetadata key for an recurrence-free survival censored flag.static final StringDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.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.booleanQuery the 'missing' flag for this core.putMetadataValue(String key, String value) Deprecated.v0.6.0.voidvoidSet the case ID metadata value.voidsetMissing(boolean missing) Set the missing flag for this core, for example because insufficient tissue is present.toString()voidMethods inherited from class qupath.lib.objects.PathROIObject
getClassProbability, getPathClass, getROI, isEditable, isLocked, setLocked, setPathClass, setROIMethods 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, storeMetadataValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface qupath.lib.objects.MetadataStore
getMetadataMapMethods 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:
putMetadataValuein 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:
getMetadataStringin 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:
getMetadataValuein interfaceMetadataStore- Parameters:
key-- Returns:
-
getMetadataKeys
Deprecated.v0.6.0. UsePathObject.getMetadata()to directly access metadata instead.Get all metadata keys.- Specified by:
getMetadataKeysin interfaceMetadataStore- Returns:
-
clearMetadata
Deprecated.v0.6.0. UsePathObject.getMetadata()to directly access metadata instead.Clear all associated metadata. -
toString
- Overrides:
toStringin classPathObject
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classPathROIObject- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classPathROIObject- Throws:
IOExceptionClassNotFoundException
-