OLD_calculateInfiltrationDensity: Calculate density of set of markers (marker combinations)

Description Usage Arguments Value

View source: R/melanoma_spatial.R

Description

Based on pre-computed areas and band assignments (may be one band, depending on how area was calculated), calculate densities for a set of markers in each band

Usage

1
2
3
OLD_calculateInfiltrationDensity(areas, bandAssignments, markerSet,
  funcMarker = NULL, sortByMarker = NULL, writeCSVfiles = TRUE,
  outDir = NULL, statsByBand = FALSE)

Arguments

areas

tibble containing area by band

bandAssignments

tibble containing band assignments for each cell

markerSet

vector of markers for which density should be calculated

funcMarker

functional marker for which to calculate density; default=NULL

sortByMarker

sort data by density of this marker; default=NULL

writeCSVfiles

logical; write density to csv files; default=FALSE

outDir

logical; if writeCSVfiles is TRUE, write them to this directory

statsByBand

logical; calculate density by interval bands

Value

tibble containing densities for each marker type


caitlinjones/halo documentation built on May 7, 2019, 8 a.m.