Learn R Programming

CAESAR.Suite (version 0.1.0)

markerList2mat: 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)

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.

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.

See Also

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

Examples

Run this code
data(toydata)

markers <- toydata$markers

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

Run the code above in your browser using DataLab