
Repair older SpatialMap objects
Repair.RdThis function was designed to help fix SpatialMap objects that
break due to changes in the structure of any S4 object class (SpatialMap,
Region, Analysis, Representation, or NN); or due
to the introduction of NaN feature values; or due to issues with how
Y-coordinates are represented. The function returns a SpatialMap object that
has been repaired.
Details
NaNs might occur when samples are introduced with non-overlapping biomarkers or background metrics, e.g., data from multiple studies. These values break many functions.
The function helps in the case that an older version of SpatialMap created the object; some settings and architectures might not be valid still.
Not all situations call for Repair!
Examples
sm <- load_sm_data()
sm <- Repair(sm)
#> 0.5.20-->Repaired_0.5.25-->Repaired_0.20.0