Skip to content

Error processing large IMC dataset in advanced analysis - 1. Add Masks #198

Description

@RoryCostell

Hi,

I'm having trouble processing a large IMC dataset. The ROIs are 2000x2000 with a 42-marker panel. There are 61 of these ROIs and they have been segmented using Ilastik successfully (although it took about a week to process).

The issue arises when Spectre is generating the polygons and outlines for the spatial data, the RAM usage for R shoots up and I'm assuming it reaches the limit for my computer (M1 Max, 64Gb RAM).

This is after the command spatial.dat <- do.create.outlines(dat = spatial.dat, mask.name = i)

Initially, it would give the error 'Error: vector memory exhausted (limit reached?)', however, I had to increase it beyond 150Gb - I have attached a screenshot of the usage. Currently, it is set at 250Gb using R_MAX_VSIZE=250Gb in .Renviron

Now R just crashes after the polygon step.

Screenshot 2024-10-01 at 6 16 07 PM

I'm wondering whether it is still possible to analyse these IMC images with Spectre, whether I need to redo the Ilastik step differently or whether I simply need a larger computer to analyse these images?

I can send you the IMC files and masks to try if you need to reproduce the error on your end, but as there is no error code (just a crash), I'm unsure where to go.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions