smartLayerAllocation: Layer weights per cell

View source: R/markerGenesAndMapping.r

smartLayerAllocationR Documentation

Layer weights per cell

Description

Returns a numeric vector saying how to weight a particular cell for each layer, using a smart weighting strategy

Usage

smartLayerAllocation(
  layerIn,
  useLayer = "L1",
  spillFactor = 0.15,
  weightCutoff = 0.02,
  layerNm = c("L1", "L2/3", "L4", "L5", "L6")
)

Arguments

layerIn

a list corresponding to all layers of dissection for a given sample

useLayer

target layer

spillFactor

fractional amount of cells in a layer below which it is assumed no cells are from that layer in multilayer dissection

weightCutoff

anything less than this is set to 0 for convenience and to avoid rare types

layerNm

names of all layers. set to NULL to have this calculated

Value

numeric vector saying how to weight a particular cell for each layer, using a smart weighting strategy


AllenInstitute/mfishtools documentation built on July 5, 2023, 4:20 p.m.