DT_boot_mst: Title

View source: R/scoloc.R

DT_boot_mstR Documentation

Title

Description

Title

Usage

DT_boot_mst(
  meta_df,
  coord_df,
  col_cell = "cell_names",
  boot_n = 100,
  prop = 0.8,
  replace = T,
  dist_cutoff = NULL
)

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?

dist_cutoff

Remove edges with distance >= dist_cutoff

Value

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

Examples

test <- DT_boot_mst(meta_df, coord_df, col_cell='cell_names', boot_n=100, prop=.8)

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