number.cells.detect.celltype: Cell sample size calculation for cell type identification

View source: R/power.R

number.cells.detect.celltypeR Documentation

Cell sample size calculation for cell type identification

Description

Calculate required number of cells per individual to detect at least min.num.cells of a cell type with class frequency cell.type.frac for each of nSamples individual. with a probability of prob.cutoff

Usage

number.cells.detect.celltype(
  prob.cutoff,
  min.num.cells,
  cell.type.frac,
  nSamples
)

Arguments

prob.cutoff

Target power to detect the cell type

min.num.cells

Minimal number of the cells for the cell type of interest that should be detected

cell.type.frac

Frequency of the cell type of interest

nSamples

Sample size (number of individuals)

Value

Required number of cells per individual to reach the target power


heiniglab/scPower documentation built on Jan. 9, 2025, 12:13 p.m.