Skip to contents

chromatin_embedding() (high-pass filtered log ratios to the all-cell leave-one-out reference, top principal components) of the given cells on the used bins of an extraction directory, with the cell ids as row names, ready for knn_pools(). Built from depth only (no copy-number features), as kNN pools require.

Usage

scn_embedding(
  dir,
  cells = NULL,
  use = NULL,
  n_pc = 20,
  hp_window = 21,
  seed = 1
)

Arguments

dir

extraction directory (bins_100kb.h5ad)

cells

cells to embed (default all)

use

logical bin filter over all bins of the sample (default bin_filter() on chr1-22 + chrX)

n_pc

components

hp_window

high-pass window (bins)

seed

RNG seed of the truncated SVD (irlba's random start)

Value

cells x components matrix