Description Usage Arguments Value
View source: R/melanoma_spatial.R
Calculate area and density of cells within a given distance to a tumor boundary
1 2 3 | calculateInterfaceArea(dat, aFiles = NULL, haloAnnotations = NULL,
writeCSVfiles = TRUE, maxG = 5, outDir = NULL,
interfaceBins = (-36:36) * 10)
|
aFiles |
a vector of Halo boundary annotation files, with '.annotations' extension in XML format |
writeCSVfiles |
logical indicating whether to write density and area tables to file; default=TRUE |
maxG |
the maximum factor of 10 to use for generating random points for area calculation |
outDir |
if writeCSVfiles=T, directory to which these files will be written |
interfaceBins |
a vector of distances from tumor interface in which cells will be binned; default=(-20:20)*10 |
data |
Halo data for one sample, loaded from *.rda file |
statsByBand |
logical; return stats broken down by interface bands (bins) as opposed to total stats; default=FALSE |
a list containing two tables: 'density' and 'area'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.