You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Object classifications can form hierarchies in QuPath, as described in the documentation.
A derived class should be shown with a colon separator, e.g. Tumor: Positive and Tumor: Negative are both derived from a base classification of Tumor.
This appears to work fine, but if there are more than two 'levels' to the classification then only the final two are displayed through the user interface. Therefore while Tumor: E-cadherin: Positive can be represented in code, it would only be shown as E-cadherin: Positive on screen.
The following script can be used to print out what all the levels of the classification are.
// Get classification of selected objectdef pathClass = getSelectedObject().getPathClass()
println("Classification is "+ pathClass)
if (pathClass ==null) {
return
}
// Print the full classificationString fullName = pathClass.getName()
pathClass = pathClass.getParentClass()
while (pathClass !=null) {
fullName = pathClass.getName() +": "+ fullName
pathClass = pathClass.getParentClass()
}
println("Full classification hierarchy is "+ fullName)
Additionally, the Classify by specific feature command does not pay much attention to hierarchies of classification - which is somewhat unintuitive, and requires updating (or replacing).
The text was updated successfully, but these errors were encountered:
Object classifications can form hierarchies in QuPath, as described in the documentation.
A derived class should be shown with a colon separator, e.g.
Tumor: Positive
andTumor: Negative
are both derived from a base classification ofTumor
.This appears to work fine, but if there are more than two 'levels' to the classification then only the final two are displayed through the user interface. Therefore while
Tumor: E-cadherin: Positive
can be represented in code, it would only be shown asE-cadherin: Positive
on screen.The following script can be used to print out what all the levels of the classification are.
Additionally, the Classify by specific feature command does not pay much attention to hierarchies of classification - which is somewhat unintuitive, and requires updating (or replacing).
The text was updated successfully, but these errors were encountered: