Learn R Programming

timma (version 1.2.1)

graycodeNames: Names for the predicted sensitivity matrix

Description

A function to make the target names in the format of gray code for the predected sensitivity matrix

Usage

graycodeNames(m, names, gc_row, gc_col)

Arguments

m
an integer to specify the number of targets
names
a vector of the names of the targets
gc_row
the gray code as row indexes. It can be returned by graycode3.
gc_col
the gray code as column indexes. It can be returned by graycode3.

Value

a list of the following components:
nr
the gray code format target names as row names.
nc
the gray code format target names as row names.

Examples

Run this code
## Not run: 
# data(tyner_interaction_binary)
# data(tyner_sensitivity)
# k_select<-sffsBinary(tyner_interaction_binary, tyner_sensitivity[, 1])$k_sel
# gc_timma<-graycode3(length(k_select))
# select_kinase_names<-dimnames(tyner_interaction_binary)[[2]][k_select]
# gc_names<-graycodeNames(length(k_select), select_kinase_names, gc_timma$gc_row, gc_timma$gc_col)
# ## End(Not run)

Run the code above in your browser using DataLab