-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue when running Baysor with prior segmentation #133
Comments
Hi @lguerard , which way of installing Baysor did you use? And for CSV input, which command did you use? |
Hi ! I downloaded the binaries directly for GitHub as this is on Linux. Everything's running fine without the For the CSV, I just added the path to the CSV, but for that one, it might be normal as I was just passing a CSV with the X,Y,Z centroids of the cells that I got from |
Then I'd suggest trying native julia installation. As for the CSV, you can't pass a new CSV, it should be a column in the old CSV. Please, see the docs here. |
As for the image prior, can you check if it still persists in v0.7.0? |
Hi @VPetukhov, I'm still testing and haven't yet looked at the results but at least it doesn't crash anymore, thanks a lot !
Just a question, is there an issue with the shape being opposite between the image and my transcript coordinates ? I'm guess yes, but the first warning seems to still understand it no ? |
Hi @lguerard , |
Hi @VPetukhov, Thanks for the anwer. I transformed my image to match the molecules and could run the segmentation with prior cellpose segmentation and it went through. However, the results look weird. Here is my cellpose segmentation : Here is the result of Baysor with prior segmentation and And here is the result of Baysor with prior segmentation and Multiple comments/questions:
Thanks again for your very helpful help ! |
The way Baysor handles the prior segmentation is that
It deliberately doesn't work on transcripts, which weren't assigned to any prior cell. It's done because stainings can often work well in some cell types but not the other, so those regions not covered by stains should be segmented de-novo. Another reason is that if you only used DAPI for a prior segmentation, we'd want to expand them to cytoplasm molecules. So "constraining the transcripts segmentation to the cellpose cells" wouldn't provide good results. If you only want to analyze cells from CellPose, you may filter the segmentation results to only those cells. With prior confidence = 1 each cell pose cell with transcripts should have exactly one Baysor cell. P.S. Answering this I realized that this part is only explained in the paper, but not in the docs. I'll update them with the next release. |
Thanks for your answer ! I agree that it might be good to analyze de-novo if there's a lot of transcripts that are not in the segmented cells from the previous run. However, and if I understand correctly what you are saying, we should be able to limit Baysor to the segmented cells using |
Hi,
I want to improve the results I'm getting from Baysor by using prior segmentation. I have run CellPose on the DAPI channel and got both a label image as well as a CSV with the X, Y and Z position of my cells. However, they both produces errors :
When running with CSV:
When running with label image:
There seem to be some errors with Julia but unsure how to fix this.
Any ideas ?
The text was updated successfully, but these errors were encountered: