Open Tripfantasy opened 4 months ago
Hello, What is the shape of your tiff "nuclei" ? I noticed that the function assumes that the input is 3D. I quick fix could be just to reshape your nuclei to 3D shape (1, Y, X) ? Do not hesitate if you have other issues. I will adapt plot_result() to 2d in the future.
" Is it a soft-requirement to run cellpose as a prior?"
Hello, What is the shape of your tiff "nuclei" ?
Hi! Thanks for the reply. My tiff is 3D shape with x,y,z columns. The default format for my data is X,Y,Z,Gene. Before running ComSeg, I manually add in an 'in_nucleus' column and set all values equal to 0. Here's what it looks like after running.:
Note: Unnamed: 0 is just the index after adding the new column via pandas.
The configuration dictionary is mostly untouched aside form changing what the input data is, when compared to the 'minimal example' on the docs page.
Hello, excited to try out this method. I'm currently adapting the 'minimal example' from the docs to 4 sections. My data consists of 4 tiffs with DAPI staining, and 4 csv files with x,y,z coords and gene names. I've manually added in the 'in_nucleus' column with all values set to 0 due to no prior, as per the documents instructions.
I'm having trouble visualizing the cells afterwords with the plot_result function:
This error occurs:
Traced specifically to:
And after doing some digging through the source code, I can't seem to figure out what the image data is, or why the error is occurring to begin with. I'm assuming it's the pixel length of the tiff image. Despite the error, it still overlays cell_index_pred over the tiff I feed it. Though, I can't make sense of it- and the cells seem more chaotic than the initial DAPI stain would imply.
Image for reference:
Probably user error on my part, but I'd appreciate any help you guys can provide. Is it a soft-requirement to run cellpose as a prior? Thanks in advance!