
Parse output from .smapply iterator
which_returns.Rd
Internal function that decides how transformations should be returned to the parent SpatialMap object.
Arguments
- object
A SpatialMap object
- choice
The analysis type, which will determine the function logic.
- args
The arguments returned from "which_analysis". Formatted as a list.
Details
There are currently 3 possibilities that correspond exactly to those found in the which_analysis function:
1. Region-wise analyses. In this case, the result of the iterator is simply returned to the SpatialMap
2. Formal Analysis objects. In this case, the Analysis is updated, and a splitting operation is performed to update each of the individual Regions that comprise the Analysis
3. Informal grouped Regions (e.g., grouping Regions by batch for normalization). In this case, no Analysis is added or updated in the SpatialMap, but individual Regions are updated.