Closed EsperanzaDai closed 11 months ago
Hi @EsperanzaDai,
Thanks for suggesting a fix for this. The call in SpatialPosition is expecting a single value and not a vector so I'm curious if something else is happening with your data. Do you have multiple columns named "Position" when you call colnames(SpatialOverlay@overlayData@position)
? Or what is length(position(SpatialOverlay@overlayData@position))
?
Maddy
colnames(SOobject@overlayData@position) [1] "ROILabel" "Sample_ID" "Height" "Width" "X" [6] "Y" "Segmentation" "Position"
I got this error when trying to call SpatialPosition(AttributeTable). I think within this function class, all values from the position column are input for the bookendStr function. If there are multiple ROIs, then nchar(x)[1] will work instead of nchar(x).
Thank you!
Hi @EsperanzaDai,
Sorry for the long delay but there will be a fix for this in the next Bioconductor release. Thanks for bringing it to our attention.
Maddy
Found a bug in the bookendStr function. Original function:
Suggesting adding one thing: the [1] after nchar(x) in the second if.
Otherwise, if x is a vector with more than one character giving the error in the title. E.g. SpatialPosition calls this function and has a glitch in printing the results for position column.