Hi @petebankhead, thanks for all the great work on QuPath so far! As usual, going off the deep end here…
Is there any way to write objects from one project entry into another entry’s hierarchy? So far I have been able to pull objects out of another entry in the project and put them into the image/entry (
readHierarchy()) that the script is currently being run from, but in some cases it would be cleaner to be able to run one script from an image and distribute objects across a project, rather than organizing it so the user needs to “Run for all” but exclude the current image… and possibly a training image or two.
The specific use case, in this case, would be having N images that are aligned via affine/rigid transformation, where there is a list of those affine transformations stored somewhere. I would want the script to be run from Image X, access that list, and then for each image in that list, send it’s objects to all destinations using their affine transformations.
In this way, tumor margins, islet boundaries, etc, could be distributed out from a single image.
The alternative is still workable, but involves what feels like a slightly more awkward structure, running a script For Project across all destination images, accessing the affine list for their specific transform, and then pull the images from the source file. But that involves manually targeting the source file, and editing the script (per patient/per sample, etc).