CreateSpatialList {scSpatialSIM}R Documentation

Get Spatial Files from a SpatSimObj

Description

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.

Usage

CreateSpatialList(sim_object, single_df = FALSE, multihit_action = "random")

Arguments

sim_object

A SpatSimObj

single_df

boolean as to whether to collapse the output list of data frames to a single data frame or not. default is FALSE

multihit_action

string of value 'random', 'drop', or 'keep' for cells that are positive for multiple cell assignments

Details

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'

Value

A list of data frames, one for each simulated cell type, with cleaned columns


[Package scSpatialSIM version 0.1.3.3 Index]