Learn R Programming

tlsR (version 0.1.2)

scan_clustering: Scan Tissue for Local Immune Cell Clustering (K-integral)

Description

Sliding-window Centerel L-Function (CLF) version of the Ripley's K analysis with whole tissue pseudo-plots.

Value

List of Lest objects for significant windows.

Arguments

ws

Window size in microns.

sample

Character. Sample name in ldata.

phenotype

One of "T cells", "B cells", or "Both".

plot

Logical. Show diagnostic plot?

creep

Integer. Grid density factor.

ldata

Optional list (defaults to global ldata).

Examples

Run this code
data(toy_ldata)
  # This one may produce plots and take ~10 sec
  models <- scan_clustering(ws = 500, sample = "ToySample",
                            phenotype = "B cells", plot = FALSE, ldata = toy_ldata)
  length(models)

Run the code above in your browser using DataLab