sopa.segmentation.transcripts
sopa.segmentation.transcripts.resolve(sdata, temp_dir, gene_column, patches_dirs=None, min_area=0, shapes_key=SopaKeys.BAYSOR_BOUNDARIES)
Concatenate all the per-patch segmentation runs and resolve the conflicts. Resulting cells boundaries are saved in the SpatialData
object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
sdata |
SpatialData
|
A |
required |
temp_dir |
str
|
Temporary directory used to store all the patches subdirectories (one subdirectory for one patch and for one segmentation run) |
required |
gene_column |
str
|
Column of the transcript dataframe containing the genes names |
required |
patches_dirs |
list[str] | None
|
Optional list of subdirectories inside |
None
|
min_area |
float
|
Minimum area (in microns^2) for a cell to be kept |
0
|