kharchenkolab / Baysor

Bayesian Segmentation of Spatial Transcriptomics Data
MIT License
142 stars 29 forks source link

Baysor produces invalid polygons #103

Open pakiessling opened 8 months ago

pakiessling commented 8 months ago

Hi there,

I am working on creating a converter from Baysor output and I notice that a small percentage of Baysor .geojson output contains less than 4 coordinates and is therefore invalid. Any idea why this is happening?

Sample:

{'coordinates': [[[1274.0061070224892, 234.94768491936884],
   [1274.0061070224892, 234.94768491936884]]],
 'type': 'Polygon',
 'cell': 3105}

In my small dataset this happened to 78 out of 3565 cells

Baysor 0.6.2