Learn R Programming

MineICA (version 1.12.0)

nodeAttrs: Generate node attributes

Description

This function builds a data.frame describing for each node of the graph its ID and which analysis/data it comes from.

Usage

nodeAttrs(nbAn, nbComp, labAn, labComp, file)

Arguments

nbAn
Number of analyses being considered, i.e number of IcaSet objects
nbComp
Number of components by analysis, if of length 1 then it is assumed that each analysis has the same number of components.
labAn
Labels of the analysis, if missing it will be generated as an1, an2, ...
labComp
List containing the component labels indexed by analysis, if missing will be generated as comp1, comp2, ...
file
File where the description of the node attributes will be written

Value

A data.frame describing each node/component

Details

The created file is used in Cytoscape.

Examples

Run this code
## 4 datasets, 20 components calculated in each dataset, labAn
nodeAttrs(nbAn=4, nbComp=20, labAn=c("tutu","titi","toto","tata"))

Run the code above in your browser using DataLab