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!

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:
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!
