markerList2mat: Convert Marker List to a Weighted Matrix

View source: R/caesar_annotation.R

markerList2matR Documentation

Convert Marker List to a Weighted Matrix

Description

This function converts a list of marker genes for different cell types or clusters into a matrix, where rows represent cell types and columns represent marker genes. The matrix contains the frequency of each marker gene across the different cell types.

Usage

markerList2mat(markerList)

Arguments

markerList

A list where each element contains marker genes for different cell types or clusters. Each element of the list is a named list, where the names are the cell types and the values are the marker genes for that cell type. Generally, it is a list of the output of function marker.select.

Value

A matrix with rows representing cell types and columns representing unique marker genes. The values in the matrix represent the frequency of each gene as a marker in the corresponding cell type.

See Also

marker.select for select markers. find.sig.genes for signature gene list.

Examples

data(toydata)

markers <- toydata$markers

marker.freq <- markerList2mat(list(markers))
print(marker.freq)


CAESAR.Suite documentation built on April 3, 2025, 10:32 p.m.