new_summarized_scGPS_object: new_summarized_scGPS_object

Description Usage Arguments Value Author(s) See Also Examples

View source: R/scgps_object.R

Description

new_scGPS_object generates a scGPS object in the SingleCellExperiment class for use with the scGPS package. This object contains an expression matrix, associated metadata (cells, genes, clusters). The data are expected to be normalised counts.

Usage

1
2
new_summarized_scGPS_object(ExpressionMatrix = NULL,
  GeneMetadata = NULL, CellMetadata = NULL)

Arguments

ExpressionMatrix

An expression dataset in matrix format. Rows should represent a transcript and its normalised counts, while columns should represent individual cells.

GeneMetadata

A data frame or vector containing gene identifiers used in the expression matrix. The first column should hold the cell identifiers you are using in the expression matrix. Other columns contain information about the genes, such as their corresponding ENSEMBL transcript identifiers.

CellMetadata

A data frame containing cell identifiers (usually barcodes) and clustering information (the first column of the data frame contains clustering information). The column containing clustering information needs to be named as 'Cluster'. If clustering information is not available, users can run CORE function and add the information to the scGPS before running scGPS prediction

Value

This function generates an scGPS object belonging to the SingleCellExperiment.

Author(s)

Quan Nguyen, 2017-11-25

See Also

SingleCellExperiment

Examples

1
2
3
4
day2 <- day_2_cardio_cell_sample
t <-new_summarized_scGPS_object(ExpressionMatrix = day2$dat2_counts, 
    GeneMetadata = day2$dat2geneInfo, CellMetadata = day2$dat2_clusters)
colData(t); show(t); colnames(t)

scGPS documentation built on Nov. 8, 2020, 5:22 p.m.