View source: R/input_data_constructors.R
DE_data | R Documentation |
DE_data
objectCreates a DE_data
object from a tibble or data-frame of differential expression
results.
DE_data(dat, keep_rownames_as = NULL)
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 |
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
and end
: numeric, starting and end position of the gene/transcript
(in bp). A column position
will be constructed as the middle value (mean) between
start
and end
.
score
or padj
: numeric, the DE score or adjusted p-value of the
gene/transcript. If column score
column is missing, will be constructed
as -log10(padj)
.
foldChange
or log2FoldChange
: numeric, the fold-change or log2(fold-change)
of the gene/transcript. If column log2FoldChange
is missing, will be constructed
as log2(foldChange)
.
A DE_data
object, i.e. a tibble.
x <- get_example_data() DE_data(x[["DE"]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.