cn_sampR_to_pattern: Helper function of ranked_findSpecGenes.

cn_sampR_to_patternR Documentation

Helper function of ranked_findSpecGenes.

Description

Return a pattern for use in cn_testPattern (template matching). Convert the cell population to matrix of 0 and 1, where the rows are the unique cell populations and the columns are the population of each cell. Thus, the cell values indicates the population of a cell.

Usage

cn_sampR_to_pattern(sampR)

Arguments

sampR

character vector; vector of cell populations.

Value

dgCMatrix matrix; ans_sparse_matrix.


edroaldo/fusca documentation built on March 1, 2023, 1:43 p.m.