nodeAttrs {MineICA} | R Documentation

## 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

### Details

The created file is used in Cytoscape.

### Value

A data.frame describing each node/component

### Author(s)

Anne Biton

### Examples

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

[Package MineICA version 1.26.0 Index]