Bin2cell
Project home page here, demonstration notebook here.
Main workflow functions
|
Create a custom microns per pixel render of the full scale H&E image for visualisation and downstream application. |
|
Create a custom microns per pixel render of the full scale IF image for visualisation and downstream application. |
|
Correct the raw counts of the input object for known variable width of VisiumHD 2um bins. |
|
Create an image of a specified |
|
Segment an image with StarDist. |
|
Load StarDist segmentation results and store them in the object. |
|
Expand StarDist segmentation results to bins a maximum distance away in the array coordinates. |
|
Create a joint |
|
Collapse all bins for a given nonzero |
Utility functions
|
Get a PIL-formatted crop tuple from a provided object and coordinate representation. |
|
Render segmentation results in a lightweight manner on a full image level. |
|
Colour morphology segmentations by cell-level metadata or gene expression. |
|
Efficiently load an external image and return it as an RGB numpy array. |
|
Assess the relationship between |
Compare the shape of the actual morphology image versus what the shape of the morphology image that was used for Spaceranger appears to be from information stored for the hires. |
|
|
Compute a scale factor for a specified mpp value. |
|
Get an mpp-adjusted representation of spatial or array coordinates of the provided object. |
|
Helper function used by |
|
Scale each row (bin) of |
Obsoleted functions
|
Use StarDist's label rendering to view segmentation results in a crop of the input image. |
|
Assess the number of bins that fall within the source image coordinate space. |