Skip to content

Area analysis on Data.table not working in Spectre 1.2.0 #195

Description

@RoryCostell

Hi, I have updated my Spectre to 1.2.0, and also updated R and R studio to the latest build.

When I run the new advanced spatial workflow, everything works great and the addition of the regions and cell types is great.

However, when I run the third script - advanced quantitative analysis, and I run the area analysis, it seems unable to run the area analysis by region for all the ROIs, giving the error:

Smooth muscle cells to Podoplanin+ fibroblasts
Smooth muscle cells to Podoplanin+aSMA+ fibroblasts
Smooth muscle cells to Podoplanin+aSMA+Factor 13a+ fibroblasts
---- Smooth muscle cells to Smooth muscle cells
Region: Tumour
Error in gtools::permutations(n = length(reg.pops), r = 2, V = reg. pops, :
bad value of n

It this because some of the cell types are not present in the region: Tumour?

The area analysis is working fine with the old code, setting the region to total and ignoring the individual regions for the area analysis.

Please let me know if you need more information and I will reproduce the error.

Thank you very much!
Screenshot 2024-08-30 at 11 42 59 AM

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