| assoc2list {AffiXcan} | R Documentation |
Reorganize associations table in a list
assoc2list(gene, regionAssoc)
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") |
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
if (interactive()) {
data(regionAssoc)
expressedRegions <- as.list(as.vector(unique(regionAssoc$EXPRESSED_REGION)))
gene <- expressedRegions[[1]]
assocList <- assoc2list(gene, regionAssoc)
}