druid_geneset: DRUID geneset

Description Usage Arguments Value

View source: R/druid_geneset.R

Description

This function generates the query gene set that is to be used as input into DRUID.

Usage

1
2
druid_geneset(dge_matrix, desired_effect = c("pos", "neg"), fold_thr,
  pvalue_thr, entrez, gene_space)

Arguments

dge_matrix

This is a 2 column matrix for gene expression changes, where column 1 is the gene fold change and column 2 is the corresponding p-value for the fold change. NOTE: Use log2 of the fold changes as output, for example, from 'limma' or 'DESeq2'.

desired_effect

Desired effect for DRUID to run on: "pos" mimics query phenotype, "neg" reverts query phenotype. Defaults to "neg".

fold_thr

Threshold for the fold change to be considered. Defaults to 0 (i.e., log2(1), where fold change is not used as filter)

pvalue_thr

Threshold for the p-value of the fold change to be considered. Defaults to 0.05.

entrez

EntrezIDs for genes in differentially expressed set. Must be same order as the input matrix.

gene_space

EntrezIDs from TF.IDF matrix (column names of this matrix).

Value

A gene set to be used as input in DRUID as a Nx4 matrix.


diogocamacho/druid documentation built on Sept. 17, 2020, 12:39 p.m.