In the last days the SpatialExperiment package made changes to SpatialExperiment::spatialData(), in which they no longer return a data.frame but a DFrame when function is call with as_df=TRUE (https://github.com/drighelli/SpatialExperiment/commit/bf2abe9d663c5f490705f3f5ff312af71ec1ce18). Therefore, the functions for plots are not working. Plotting calls produce the following error:
data must be a data frame, or other object coercible by fortify(), not an S4 object with class DFrame
Wrapping the calls SpatialExperiment::spatialData(spe_sub, cd_bind = TRUE, as_df = TRUE) with as.data.frame should fix the issue for now.
Defining a utility function to use in all those calls might also work:
Hey, Leo! c:
In the last days the SpatialExperiment package made changes to
SpatialExperiment::spatialData()
, in which they no longer return adata.frame
but aDFrame
when function is call withas_df=TRUE
(https://github.com/drighelli/SpatialExperiment/commit/bf2abe9d663c5f490705f3f5ff312af71ec1ce18). Therefore, the functions for plots are not working. Plotting calls produce the following error:data
must be a data frame, or other object coercible byfortify()
, not an S4 object with class DFrameWrapping the calls
SpatialExperiment::spatialData(spe_sub, cd_bind = TRUE, as_df = TRUE)
withas.data.frame
should fix the issue for now.Defining a utility function to use in all those calls might also work: