calculateRSS: Calculate RSS matrix

Description Usage Arguments Value

View source: R/RSS.r

Description

This function calculates the Reference Similarity Spectrum (RSS) matrix, based on the given input matrix and the reference data set matrix.

Usage

1
2
calculateRSS(input, ref, method = "pearson", scale = TRUE,
  threads = 1)

Arguments

input

The input expression matrix, assuming its rows as genes and columns as samples. Its rows are expected to be named by the same types of gene representative (e.g. ENSEMBL IDs) as ref.

ref

The reference expression matrix, assuming its rows as genes and columns as samples.

method

The type of correlation to calculate. It allows any method used in the cor function.

scale

When it is TRUE, similarities of one sample (cell) in the input matrix across the reference samples are central-scaled transformed.

threads

The number of threads to calculate correlations.

Value

The RSS matrix, with rows for the input samples and columns for the reference samples.


maplesword/RefSimSpec documentation built on May 23, 2019, 1:47 p.m.