SingleR.ScoreData: Scoring single cells using reference data set

Description Usage Arguments Value

View source: R/SingleR.R

Description

Scoring single cells using reference data set

Usage

1
2
SingleR.ScoreData(sc_data, ref_data, genes, types, quantile.use,
  numCores = 1, step = 10000)

Arguments

sc_data

the single-cell RNA-seq data set as a matrix with genes as rownames. If the data if from a full-length platform, counts must be normalized to gene length (TPM, RPKM, FPKM, etc.).

ref_data

the reference dataset with genes as rownames. Gene names must be in the same format as the single cell data (if sc_data uses genes symbols, ref_data must have the same)

genes

the list of genes to use.

types

a list of cell type names corresponding to ref_data. Number of elements in types must be equal to number of columns in ref_data

quantile.use

correlation coefficients are aggregated for multiple cell types in the reference data set. This parameter allows to choose how to sort the cell types scores, by median (0.5) or any other number between 0 and 1. The default is 0.9.

numCores

Number of cores to use.

step

number of cells in each correlation analysis. The correlation analysis memory requirements may be too high, thus it can be split to smaller sets.

Value

a list with the scores, the raw correlation coefficients and the top labels


dviraran/SingleR documentation built on April 21, 2020, 3:23 p.m.