Description Usage Arguments Value Examples
View source: R/get.node.info.R
Obtain the information for specified
node from the output list of ipcaps
.
1 | get.node.info(cluster.obj, node)
|
cluster.obj |
A list returned from the |
node |
An integer representing a node number to enquire information as shown in the HTML output files. |
The return value is NULL
if node's information does not exist
or a list containing.
PCs
, eigen.fit
, index
, and label
as explained
below:
$PCs
is a matrix of pricipal components of this node.
$eigen.fit
is a number represeting the EigenFit value of this
node.
$index
is a vector of row number (individuals) of
raw.data
(input data).
$label
is the vector of labels of all individuals that belongs
to this node.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # Importantly, bed file, bim file, and fam file are required
# Use the example files embedded in the package
BED.file <- system.file('extdata',
'ipcaps_example.bed',
package = 'IPCAPS.BIOC')
LABEL.file <- system.file('extdata',
'ipcaps_example_individuals.txt.gz',
package = 'IPCAPS.BIOC')
my.cluster <- ipcaps(bed = BED.file,
label.file = LABEL.file,
lab.col = 2,
out = tempdir(),
max.thread = 1,
seed = 1234)
#Here, to obtain the information of specified node, for example, node 3
node.info <- get.node.info(my.cluster,3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.