Takes in a data frame and uses dplyr::filter to define a signature. By default uses absolute value of `lfc.threshold = log2(1.5)` and `padj.threshold < 0.1` to filter.

DefineSignature(results, lfc.threshold = log2(1.5), padj.threshold = 0.1,
  func = NULL, export.char = TRUE, export.col = "ENSEMBL")

Arguments

results

`data.frame` with unimportant rownames and columns labeled `log2FoldChange` and `padj` for filtering (or whatever you pass in to `func`

lfc.threshold

log2FoldChange threshold (default: 1.5)

padj.threshold

padj threshold (default: 0.1)

func

custom function for filtering passed in as a string

Value

data.frame parsed through `dplyr::filter` function based on filters

Details

Note You will lose the rownames with this method, so define them explicitly as a separate column. A user defined function can be passed in quotes.

Examples

DefineSignature(results)
DefineSignature(results, func = "log2FoldChange > 1.5")