Skip to contents

Infer Copy-Number Alterations From Single-Cell RNA-Seq Data

Usage

Infercna(
  expr_mat,
  refCells = NULL,
  window = 100,
  range = c(-3, 3),
  top_n = 3000,
  noise = 0.1,
  center.method = "median",
  verbose = FALSE
)

Arguments

expr_mat

a normalized expression matrix of genes X cells containing scRNA-seq expression data. It can be TPM, RPKM, CPM etc.

refCells

a list of two or more character vectors, each containg cell IDs of normal cell types (one cell type per list element). Since these cell types are presumed normal cells, their CNA values can be used to correct the remaining CNA values. Note that all cell IDs should correspond to column names in expr_mat. See Infercna::refCells (normal cells) for an example. Default: NULL

window

the size of the window to use for the rolling mean. Units are in number of genes. Default: 100

range

values in expr_mat above and below this range will be set to values in range. See Infercna::clip() for more details. Default: c(-3, 3)

top_n

a numeric value indicating if only top genes should be used in the CNA calculation and how many. if n is a fraction between 0 and 1, the number of genes included will n * nrow(expr_mat). Else the number of genes included will be n. Default: 3000

noise

a numeric value, which if given, increases the boundaries within which CNA values are considered 0. Increases by <noise> i.e. the bounds become Minimum - noise and Maximum + noise. Default: 0.1

center.method

method by which to center the cells after calculating CNA values. One of 'median', 'mean', etc.... Default: 'median'

verbose

print progress messages. Default: FALSE

Value

a matrix of genes X cells of inferred CNA values. Note that n = (window - 1)/2 genes will be lost from either extremity of the genome (ie. n genes lost at the start of chromosome 1 and at the end of chromosome Y, if the genome in question is H.sapiens.)

Details

Correction with reference cells' <refCells> CNAs: the boundaries of reference CNA values are the boundaries for what should be considered a CNA of 0. Thus, if the boundary is -0.1 and 0.1, then a cell with CNA = -0.5 will be corrected to -0.4, a cell with CNA value of 1 will be corrected to 0.9 and a cell with CNA value of 0.05 will be corrected to 0.

Examples

if (FALSE) { # \dontrun{
m <- mgh125
cna <- Infercna(expr_mat = m, refCells = refCells, top_n = 3000)
} # }