createDataObj: Create 'Phemd' object

Description Usage Arguments Details Value Examples

View source: R/functions-core.R

Description

Wrapper function to create 'Phemd' object containing raw expression data and metadata

Usage

1
createDataObj(data, markers, snames, datatype = "list", valtype = "counts")

Arguments

data

List of length num_samples containing expression data; each element is of size num_cells x num_markers. Alternately a SingleCellExperiment object.

markers

Vector containing marker names (i.e. column names of all_data)

snames

Vector containing sample names (i.e. names of samples contained in all_data)

datatype

Either "list" or "sce" (SingleCellExperiment with genes x cells)

valtype

Type of assay data (i.e. "counts", "normcounts", "logcounts", "tpm", "cpm") if datatype is "sce"

Details

Note that each element in list can have different number of rows (i.e. number of cells in each sample can vary).

Value

'Phemd' object containing raw multi-sample expression data and associated metadata

Examples

1

phemd documentation built on Nov. 8, 2020, 8:15 p.m.