View source: R/prepareSignature.R
prepareSignature | R Documentation |
This function takes a differential gene expression output from any pipeline like edgeR or DeSeq2 or any that give you the gene symbol, log_2 fold-change and p-value and transforms that into an L1000 signature for later processing.
prepareSignature(
dge,
geneColumn = "Symbol",
logfcColumn = "logFC",
pvalColumn = "PValue"
)
dge |
A dataframe-like object that has the differential gene expression information |
geneColumn |
The name of the column that has gene symbols |
logfcColumn |
The name of the column that has log_2 fold-change values |
pvalColumn |
The name of the column that has p-values |
A tibble with the L1000 signature.
# Prepare an L1000 signature from a differential gene expression output
inputSignature <- read.table(system.file("extdata",
"dCovid_diffexp.tsv",
package = "drugfindR"
), header = TRUE)
signature <- prepareSignature(inputSignature,
geneColumn = "hgnc_symbol",
logfcColumn = "logFC", pvalColumn = "PValue"
)
head(signature)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.