crossing_of_crossK: crossing_of_crossK

View source: R/crossing_of_crossK.R

crossing_of_crossKR Documentation

crossing_of_crossK

Description

Determine if there is a crossing in the cross K curves, to further detect the existence of potential immune rings.

Usage

crossing_of_crossK(df.cross)

Arguments

df.cross

Data.frame. The output of calculate_cross_functions. Containing the positions of the two curves. Columns contain "r", "border" and "theo".

Value

A number. The percentage of the crossing position of the specified distance.

Examples

df_cross <- calculate_cross_functions(SPIAT::defined_image, method="Kcross",
              cell_types_of_interest = c("Tumour","Immune3"),
              feature_colname ="Cell.Type", dist = 100)
crossing_of_crossK(df_cross)

TrigosTeam/SPIAT documentation built on Nov. 6, 2023, 3:50 p.m.