View source: R/get_spatial_list.R
CreateSpatialList | R Documentation |
SpatSimObj
This function extracts the 'Spatial Files' slot from a Spatial Simulation Object and removes probability columns while converting 'Positive' and 'Negative' in cell assignment columns to 1 and 0, respectively.
CreateSpatialList(sim_object, single_df = FALSE, multihit_action = "random")
sim_object |
A |
single_df |
boolean as to whether to collapse the output list of data frames to a single data frame or not. default is |
multihit_action |
string of value 'random', 'drop', or 'keep' for cells that are positive for multiple cell assignments |
The output of this function creates a list of the spatial files formatted in a way that would allow direct import into a mIF object from the package 'spatialTIME'
A list of data frames, one for each simulated cell type, with cleaned columns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.