Extracting TMA dearreyer images with imported TMA map names

qupath

#1

Hello! Is there a way to extract each single cores detected after running “TMA dearrayer” but with the Unique ID (imported TMA map name) instead of the core name (A-1, ect)?

I am using ImageJ macro runner:

title = getTitle();
saveAs(“Tiff”, “D:/Users/Desktop/test/”+title)

Thanks,

Paula


#2

Sorry, I don’t have a TMA with associated spreadsheet file right now, but is what you are looking for in the measurement list?

def cores = getTMACoreList()

for (core in cores){
print core.getMeasurementList()
return;
}


#3

Also possibly…

def cores = getTMACoreList()

for (core in cores){
print core.getUniqueID()
print core.getMeasurementList()
return;
}


#4

Would it help to just set the unique ID to be the name…?

getTMACoreList().each {it.setName(it.getUniqueID())}
fireHierarchyUpdate()

Can always relabel the cores later (or revert to a previously saved version).