build_sct: Build an SCT from an ExpressionSet

Description Usage Arguments Details Value

View source: R/sct.R

Description

This creates a sample-condition table from an ExpressionSet with pData.

Usage

1
build_sct(x, sample_field = NULL, condition_field = NULL)

Arguments

x

An ExpressionSet (possibly reduced gene list)

sample_field

A pdata field representing the unique samples (repeated entries).

condition_field

A pdata field representing the condition to plot.

Details

An SCT is a set of gene expressions indicating specific samples and associated with a specific condition. This structure allows plotting of individual gene expression by sample and by condition.

sct stands for sample-condition table. Briefly, it collects information from an ExpressionSet into a set of samples with specific conditions, together with gene expression. This is really only useful for gene subset. Given the gene subset, you can then plot the genes by sample and by condition.

This function takes an ExpressionSet, extracts two fields from the pData (sample_field and condition_field) and builds the necessary structure for plotting.

Value

A sct (sample-condition table).


steveneschrich/CLIApet documentation built on March 2, 2021, 12:02 a.m.