A function of constructing the Group variables, Direction variables, and the Count variables.
Usage
Factor(exprs, case, control)
Arguments
exprs
exprs is a data frame or matrix for two groups or conditions, with rows as variables (genes) and columns as samples.
case
case is the sample names in case groups.
control
control is the sample names in control groups.
Value
Count
The gene expression count values.
Group
The indicator variables represent that whether a gene belongs to case group or not.
Direction
The indicator variables represent that a gene is up-regulated or down-regulated.
Details
Two indicator variables Group and Direction corresponding to the different groups and the direction of the gene expression changes in the context of an RNA-Seq experiment, respectively.
And in this part, 1 represents that a gene belongs to case group or up-regulated and 0 represents a gene belongs to control group or down-regulated. Besides, Count variables are the
expression value in different samples for genes.