SydneyBioX / spicyR

https://sydneybiox.github.io/spicyR/
8 stars 4 forks source link

Multi-Column Morphology #3

Closed celsomilne closed 4 years ago

celsomilne commented 4 years ago

Should SegmentedCells accommodate multi-column morphology data? For example:

library(spicyR)
df <- data.frame(x=runif(100),
                 y=runif(100),
                 area=runif(100)^2*pi,
                 circularity=runif(100)^2*pi,
                 cellType=runif(100) >= 0.5)
SegmentedCells(df, morphologyString = c("area", "circularity"))
ellispatrick commented 4 years ago

It already should. Try using morphologyString = "shape_" with "shape_area" and "shape_circularity" in the df.

celsomilne commented 4 years ago

Great, that works! Would it be good to have functionality similar to that mentioned in #5?