Closed fxpopp closed 1 month ago
Hi, seems like your cell type column is called 'classification'. If you rename that column to 'class_name', then I believe your code would start working. All the methods in this library expect that the cell type class info is under the 'class_name' column.
Also, the warnings you get are nothing major. The second warning especially can be avoided by setting the crs of the gdf for example hap_cells.set_crs(4328, inplace=True, allow_override=True)
I have segmented a WSI and extracted a 512x512 patch from it by
hap_cells = cells.cx[x:x+512, y:y+512]
.Following the user guide "Cell/Nuclei Neighborhood Distances and Characteristics", I would like to fit a connectivity graph to the resulting 157 cells. When executing
w = fit_graph(hap_cells, type="delaunay", thresh=200, id_col="uid")
I get many warnings like this:When running
wdf = weights2gdf(hap_cells, w)
I get an error:TypeError: sequence item 0: expected str instance, NoneType found
What could be the reason for this and what have I done wrong? Can you help me?