Background_sampling: sampling cells for reference data construction input-...

Description Usage

View source: R/core.R

Description

sampling cells for reference data construction input- cell_clusterid_mat: matrix with columns –"cell.name(UMI)"–same as colnames of counts matrix,"cluster.id","Tissue"; counts_norm: normalised umi counts matrix– genes X UMIs; ncells.sample: number of cells to sample; clusterids_vec: vector with elements corresponding column names in cell_clusterid_mat with the correct heirarchiel order of clusterids (eg. Tissue, cell type, cell subtype) output- list: for every gene, sampled gene expression vector

Usage

1
2
3
4
5
6
7
Background_sampling(
  counts_norm_mat,
  cell_clusterid_mat,
  ncells.sample = 50,
  clusterids_vec = c("Tissue", "clusterid.1", "clusterid.2"),
  min.cells.gexp = 10
)

samychillara/ScRB documentation built on March 4, 2021, 12:53 a.m.