Learn R Programming

timma (version 1.1.0)

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:
  • nrthe gray code format target names as row names.
  • ncthe gray code format target names as row names.

Examples

Run this code
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)

Run the code above in your browser using DataLab