Baysor icon indicating copy to clipboard operation
Baysor copied to clipboard

Inconsistent cell number in the json file and cell stats file

Open zhanglab2008 opened this issue 2 years ago • 2 comments

Hi @VPetukhov I wonder how to plot the cells (in polygon shapes) in the 2D tissue dimension after I finished clustering and cell type annotation. I saw that the zoom-in figure you showed in your Nature Biotech paper (figure3) is really amazing. I want to do the same with my own dataset. I have successfully read the json file and make the plot but the cell number in the json file is inconsistent with that in the cell_stats file. Appreciated if you can help or give comments... THanks!

zhanglab2008 avatar Apr 08 '22 01:04 zhanglab2008

Hi @VPetukhov I wonder how to plot the cells (in polygon shapes) in the 2D tissue dimension after I finished clustering and cell type annotation. I saw that the zoom-in figure you showed in your Nature Biotech paper (figure3) is really amazing. I want to do the same with my own dataset. I have successfully read the json file and make the plot but the cell number in the json file is inconsistent with that in the cell_stats file. Appreciated if you can help or give comments... THanks!

Hi @zhanglab2008 , could you give me some recommendations about plotting the GeoJson file, which is produced by save-polygons=geojson?

rocketeer1998 avatar Apr 11 '22 01:04 rocketeer1998

Hi @VPetukhov I wonder how to plot the cells (in polygon shapes) in the 2D tissue dimension after I finished clustering and cell type annotation. I saw that the zoom-in figure you showed in your Nature Biotech paper (figure3) is really amazing. I want to do the same with my own dataset. I have successfully read the json file and make the plot but the cell number in the json file is inconsistent with that in the cell_stats file. Appreciated if you can help or give comments... THanks!

Hi @zhanglab2008 , could you give me some recommendations about plotting the GeoJson file, which is produced by save-polygons=geojson?

I just used the json/geojson package in python and plot it out with matplotlib

zhanglab2008 avatar Jul 08 '22 14:07 zhanglab2008

I have the same question ..

teng-gao avatar Mar 16 '23 00:03 teng-gao

So, this is finally fixed in v0.6.0. Now the cell numbers are consistent, and you can use any plotting package for visualizing them.

VPetukhov avatar Apr 20 '23 12:04 VPetukhov

The cell numbers are now consistent in that there are the same number of cells, but they still aren't ordered or labelled in the same way. Or am I missing something? Is it possible to relate a cell from the cell stats csv file to its polygon coordinates?

reillyeo avatar May 09 '23 13:05 reillyeo