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. Returns NA when the crossing happens too close to the y axis (<4

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 Aug. 22, 2024, 7:50 p.m.