make_data_object: Make data object

View source: R/make_data_object.R

make_data_objectR Documentation

Make data object

Description

This function creates the data object used in FRmatch. See an example of the data object in sce.example.

Usage

make_data_object(
  dat,
  tab,
  markers,
  cluster_marker_info = NULL,
  f_score = NULL,
  cluster_order = NULL
)

Arguments

dat

Cell-by-gene expression data in a data frame or equivalent format. The first column is cell names, followed by columns of each gene.

tab

Cluster membership of each cell in a data frame or equivalent format. The first column is cell names, and the second column is cluster labels.

markers

A vector of marker genes.

cluster_marker_info

Optionally, a data frame of maker genes for each cluster. marker is the unique set of marker genes for all clusters.

f_score

Optionally, a data frame of F-beta scores for each cluster.

cluster_order

Optionally, a vector of ordered cluster names, which may reflect the taxonomy of the cell type clusters.

Value

A data object of the SingleCellExperiment class


JCVenterInstitute/FRmatch documentation built on Dec. 15, 2022, 2:30 p.m.