add_names: Function to add names to network for the user.

Description Usage Arguments Value Examples

View source: R/add_names.R

Description

Function to add names to network for the user.

Usage

1
add_names(grn, gen_names)

Arguments

grn

a GRN object from KBoost.

gen_names

a vector with the gene names.

Value

grn a GRN object with elements with user-defined gene names.

Examples

1
2
3
4
5
6
7
    data(D4_multi_1)
    Net = kboost(D4_multi_1)
    g_names = matrix("G",100,1)
    for (i in seq_along(g_names)){
        g_names[i] = paste(g_names[i],toString(i), sep = "")
    }
    Net = add_names(Net,g_names)

Luisiglm/KBoost documentation built on May 13, 2021, 7:27 p.m.