DE_data {hidecan} | R Documentation |
Creates a DE_data
object
Description
Creates a DE_data
object from a tibble or data-frame of differential expression
results.
Usage
DE_data(dat, keep_rownames_as = NULL)
Arguments
dat |
Tibble, results from a differential expression analysis. See Details. |
keep_rownames_as |
Character, the name of the column in which to save the
rownames of the input data-frame. Default value is |
Details
The input data should have one row per gene or transcript, and at least the following columns:
-
chromosome
: character column, chromosome on which the gene/transcript is located. -
start
andend
: numeric, starting and end position of the gene/transcript (in bp). A columnposition
will be constructed as the middle value (mean) betweenstart
andend
. -
score
orpadj
: numeric, the DE score or adjusted p-value of the gene/transcript. If columnscore
column is missing, will be constructed as-log10(padj)
. -
foldChange
orlog2FoldChange
: numeric, the fold-change or log2(fold-change) of the gene/transcript. If columnlog2FoldChange
is missing, will be constructed aslog2(foldChange)
.
Value
A DE_data
object, i.e. a tibble.
Examples
x <- get_example_data()
DE_data(x[["DE"]])