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

Read single marker arrays without loading the entire acquisition into memory #36

Open
matt-sd-watson opened this issue Dec 9, 2024 · 1 comment

Comments

@matt-sd-watson
Copy link

We have users for our IMC visualisation application who have MCDs of 10-15GB for a single ROI, which is beyond the capability of most laptops to load fully into memory. Is there API support to read individual marker arrays from MCD into memory without loading the entire acquisition? Currently, big ome tiff stacks do this much better than reading from IMC files.

@jwindhager
Copy link
Contributor

jwindhager commented Dec 9, 2024

IIRC, acquisition data is fully loaded to memory, including all channels, sorry. Looking at the read_acquisition source code, this should be easy to change to a memory-mapping ("on-disk") based approach, though. Basically, the culprit is here:

img = np.zeros((num_channels, height, width), dtype=np.float32)
Perhaps the current maintainers could take a look?

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