assoc2list {AffiXcan} | R Documentation

## Reorganize associations table in a list

### Description

Reorganize associations table in a list

### Usage

    assoc2list(gene, regionAssoc)

### Arguments

`gene` | A string; the name of an expressed gene
`regionAssoc` | A data.frame with the associations between regulatory regions and expressed genes, and with colnames = c("REGULATORY_REGION", "EXPRESSED_REGION")

### Value

A list of data frames, each of which has the same structure of the param regionAssoc, except that contains the information relative to one expressed gene

### Examples

    if (interactive()) {
    data(regionAssoc)
    expressedRegions <- as.list(as.vector(unique(regionAssoc$EXPRESSED_REGION)))
    gene <- expressedRegions[[1]]
    assocList <- assoc2list(gene, regionAssoc)
    }

[Package AffiXcan version 1.4.0 Index]