hubmapconsortium / phenocycler-pipeline

PhenoCycler segmentation pipeline
GNU General Public License v3.0
0 stars 1 forks source link

Perform tissue segmentation via `SectionAligner` code #1

Open mruffalo opened 7 months ago

mruffalo commented 7 months ago

Use @rfmurphy and @tCeZ's SectionAligner code for tissue segmentation, to crop large regions of images that don't contain any tissue.

In the simple case in which only a single tissue section is profiled/included, pass 1 as the number of sections to segment. This may or may not correspond to the existence of a GeoJSON file, so "no GeoJSON file" and "single GeoJSON" file should be treated identically here.

mruffalo commented 7 months ago

@tCeZ pushed the SectionAligner code to https://github.com/hubmapconsortium/SectionAligner.

mruffalo commented 6 months ago

Some modifications to the SectionAligner code are required, such as reading the channels and physical pixel size from the OME-TIFF input.

While those updates are in progress, let's mock up this step as copying the input expression file to the output directory. Everything else in the pipeline will still work for development; we'll just be wasting some CPU, I/O, and storage for large empty regions of the image.

NickEngland commented 3 months ago

This is now complete for the num_tissue=1 case.

We still need to add support for GeoJSON for samples with multiple separate tissues.