KD_boot_mst: Title

View source: R/scoloc.R

KD_boot_mstR Documentation

Title

Description

Title

Usage

KD_boot_mst(
  meta_df,
  coord_df,
  col_cell = "cell_names",
  boot_n = 100,
  prop = 0.8,
  replace = T,
  k = 10
)

Arguments

meta_df

Meta data, must contain cell type column

coord_df

Coordinates data, must be the same order of meta_df

col_cell

Column name of cell type, cell type names must be syntactically valid

boot_n

Number of bootstrapping iterations

prop

Subsample proportion

replace

should sampling be with replacement?

k

Number of NNs

Value

A list of 1. Bootstrap logOR distance; 2. MST consensus matrix

Examples

test <- KD_boot_mst(meta_df, coord_df, col_cell='cell_names', boot_n=100, prop=.8, eps=1e-5)

navinlabcode/CellTrek documentation built on April 15, 2022, 8:04 a.m.