assoc2list: Reorganize associations table in a list

Description Usage Arguments Value Examples

View source: R/AffiXcan.R

Description

Reorganize associations table in a list

Usage

1

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

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

AffiXcan documentation built on Nov. 8, 2020, 8:07 p.m.