Changelog#
Version 0.2.8#
Major refactoring of ``spatial_cell`` function: * Refactored to use GeoDataFrame.plot() for efficient rendering and automatic legend generation * Integrated scanpy-style background image processing with scale_factor support * Fixed coordinate alignment issue when plotting subset data (image extent now matches data range) * Added support for gene expression visualization (color parameter can be a gene name from adata.var_names) * Legend and colorbar now positioned outside the plot area (right side) similar to sc.pl.spatial * Added
xlabel,ylabel, andshow_ticksparameters for axis customization *library_idparameter now auto-selects first available library_id when not specified (similar to sc.pl.spatial) * Addedalpha_imgparameter to control background image transparency * Improved categorical legend generation with custom palette supportEnhanced ``read_hd_cellseg`` function: * Added automatic detection of alternative segmentation file names (e.g.,
cell_segmentations.geojson) * Automatically addsspot_diameter_fullresto scalefactors if missing (required for sc.pl.spatial compatibility) * Improved error messages with suggestions for alternative filenamesDocumentation improvements: * Reorganized usage documentation into separate files (reading.rst, visualization.rst, computing_distances.rst) * Added directory structure requirements to reading documentation * Added comprehensive visualization optimization guide for large datasets * Updated examples with gene expression visualization
Version 0.2.5#
Fixed
read_hd_cellsegbug wherecellidcolumn was lost afterreset_index()Added robust handling for cases where
reset_index()creates'index'column instead of'cellid'Improved error messages for better debugging
Version 0.2.4#
Fixed
read_hd_cellsegbug wherecellidcolumn was missing when creating GeoDataFrameAdded field name detection for
cell_idcolumn (supports multiple naming variants)
Version 0.2.3#
Fixed
read_hd_cellsegto properly store cell geometries in GeoDataFrame format
Version 0.2.2#
Added
spatial_cellplotting function for visualizing cells as polygonsModified
read_hd_cellsegto store cell geometries in both GeoDataFrame and WKT formatRenamed
trackcell/io/spatial.pytotrackcell/io/read_data.pyRenamed
trackcell/pl/spatial.pytotrackcell/pl/plot.pyImproved documentation and examples
Version 0.2.1#
Added
read_hd_binfunction for reading bin-level data (2um/8um/16um)Enhanced
hd_labeldistwith automatic coordinate resolution detectionImproved memory efficiency with cKDTree method
Version 0.2.0#
Initial release with core functionality
read_hd_cellsegfor reading cell segmentation datahd_labeldistfor computing distances to labels