Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

bi_ripleys_k

Calculate Bivariate Ripley's K function for IF data


Description

This function calculates Ripley's K function of IF data for two markers.

Usage

bi_ripleys_k(
  mif,
  id,
  mnames,
  r_range = seq(0, 100, 50),
  num_permutations = 50,
  edge_correction = "translation",
  kestimation = TRUE,
  keep_perm_dis = FALSE,
  mlabels = NULL
)

Arguments

mif

An MIF object

id

Character string of variable name for subject ID in TMA data.

mnames

A list of character strings containing two marker names

r_range

Numeric vector of potential r values to estimate K at.

num_permutations

Numeric value indicating the number of permutations used. Default is 50.

edge_correction

Character value indicating the type of edge correction to use. Options include "theoretical", "translation", "isotropic" or "border". Various edges corrections are most appropriate in different settings. Default is "none".

kestimation

Logical value determining the type estimation performed. TRUE estimates Ripley's reduced second moment function while FALSE estimates Besags's transformation of Ripley's K.

keep_perm_dis

Logical value determining whether or not to keep the full distribution of permuted K values

mlabels

A list of character strings containing two marker labels

Value

Returns a list of data frames

sample

Subject ID in TMA data

marker

Ripley's K estimate using translation edge correction

theoretical_estimate

theoretical value of k

observed_estimate

observed estimate of k


spatialTIME

Spatial Analysis of Vectra Immunoflourescent Data

v1.0.0
MIT + file LICENSE
Authors
Jordan Creed [aut], Ram Thapa [aut], Christopher Wilson [aut], Brooke Fridley [cph], Fridley Lab [cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.