append_genes: Given a reference matrix and a list of genes, take the union...

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Given a reference matrix and a list of genes, take the union of all genes in vector and genes in reference matrix and insert zero counts for all remaining genes.

Usage

1
append_genes(gene_vector, ref_matrix)

Arguments

gene_vector

char vector with gene names

ref_matrix

Reference matrix containing cell types vs. gene expression values

Value

Reference matrix with union of all genes

Examples

1
2
3
4
mat <- append_genes(
    gene_vector = human_genes_10x,
    ref_matrix = cbmc_ref
)

clustifyr documentation built on Nov. 8, 2020, 5:32 p.m.