preprocessInputData {TFEA.ChIP} | R Documentation

## Extracts data from a DESeqResults object or a data frame.

### Description

Function to extract Gene IDs, logFoldChange, and p-val values from a DESeqResults object or data frame. Gene IDs are translated to ENTREZ IDs, if possible, and the resultant data frame is sorted accordint to decreasing log2(Fold Change). Translating gene IDs from mouse to their equivalent human genes is avaible using the option from.Mouse.

### Usage

    preprocessInputData(inputData, from.Mouse = FALSE)

### Arguments

`inputData` | DESeqResults object or data frame. In all cases must include gene IDs. Data frame inputs should include 'pvalue' and 'log2FoldChange' as well.
`from.Mouse` | TRUE if the input consists of mouse gene IDs.

### Value

A table containing Entrez Gene IDs, LogFoldChange and p-val values (both raw p-value and fdr adjusted p-value), sorted by log2FoldChange.

### Examples

    data('hypoxia_DESeq',package='TFEA.ChIP')
    preprocessInputData(hypoxia_DESeq)

[Package TFEA.ChIP version 1.0.0 Index]