kda2himmeli.colorize {Mergeomics} | R Documentation

## Trace module memberships of genes

### Description

`kda2himmeli.colorize` assigns color to each node of the given module. If a node belongs to more than one module, different colors will be assigned to that node, as each color representing one module (shared nodes are illustrated as pie charts in the graph).

### Usage

    kda2himmeli.colorize(noddata, moddata, modpool, palette)

### Arguments

`noddata` | node information of the entire graph
`moddata` | module data including node (member gene) list
`modpool` | unique module list including significant key drivers
`palette` | assigned unique color map for all modules

### Value

`res` | data frame including the assigned color labels for the nodes of the given module. If a node is concurrently member of many modules, many colors will be assigned to that node (one color for each of these modules)

### Author(s)

Ville-Petteri Makinen

### References

Shu L, Zhao Y, Kurt Z, Byars SG, Tukiainen T, Kettunen J, Orozco LD, Pellegrini M, Lusis AJ, Ripatti S, Zhang B, Inouye M, Makinen V-P, Yang X. Mergeomics: multidimensional data integration to identify pathogenic perturbations to biological systems. BMC genomics. 2016;17(1):874.

### See Also

`kda2himmeli`

### Examples

    ## Trace module memberships for each KD
    ## If a KD is member of multiple modules, assign multiple colors to it
    ## Also consider the locus pval of the top locus of each KD (by valdata)
    ## We need to know data of all possible modules and all possible module ids
    ## to assign multiple colors(sectors) to a KD when needed
    if(exists("valdata"))
    cat("Marker pvalues will be used to determine node sizes
    in the network illustration")
    # noddata <- kda2himmeli.colorize(valdata, job.kda$moddata, modpool, palette)

[Package Mergeomics version 1.18.0 Index]