Skip to content
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

compute_stats() fails with large number of cells #38

Open
qu4drupole opened this issue May 20, 2022 · 2 comments
Open

compute_stats() fails with large number of cells #38

qu4drupole opened this issue May 20, 2022 · 2 comments

Comments

@qu4drupole
Copy link

I have processed CODEX data (that I assume came from the new PhenoCycler-Fusion system) saved as a single qptiff file. This format isn't quite what CellSeg expects for codex. With some small tweaks to the CellSeg code I was able to successfully complete the workflow on a cropped section (1000x1000) of the images. I used the 'CellSeg_stepbystep' notebook. The test image had an estimated 2.7k cells, and the overlays and statistics looked good. I reran everything on the entire image (~200k cells) and my kernel crashes at walkthrough_utils.compute_stats. The Jupyter log isn't very helpful:

[I 2022-05-20 14:44:19.756 ServerApp] Saving file at /CellSeg_stepbystep.ipynb
[W 2022-05-20 14:44:19.757 ServerApp] Notebook CellSeg_stepbystep.ipynb is not trusted
[I 2022-05-20 15:05:30.095 ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (1/5), keep random ports
kernel 815a70eb-3373-413b-84f1-3fa4c437534a restarted
kernel 815a70eb-3373-413b-84f1-3fa4c437534a restarted
[I 2022-05-20 15:05:30.168 ServerApp] Starting buffering for 815a70eb-3373-413b-84f1-3fa4c437534a:b07fe2b1-dfed-4a1f-a482-1c7f08a65774

I tried using more memory (500G). No avail. Any idea on what's causing the problem? What information would be helpful for troubleshooting?

@qu4drupole qu4drupole changed the title Statistics compute_stats() fails with large number of cells May 23, 2022
@qu4drupole
Copy link
Author

It's working now. It was (partly) a memory error. With 1 TB, I could get through to lstsq() step, but would have taken forever to complete with 200k cells and 44 markers. I made some edits to the output section and cvmask class to crop up the image into smaller chunks for quantification. Now it just takes <10min. If you think this may be a recurring situation for users, I can submit a pull request.

@charles-xue
Copy link

Hello, I have recently been trying to segment cells in CODEX's qptiff files and found this software, but I have some problems when using it. Can you provide me with some help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants