Learn R Programming

BootMRMR (version 0.1)

bootmr.weight: Computation of weights for informative genes/ geneset selection using Bootstrap-MRMR technique

Description

The function computes the weights associated with each genes for a given dataset using Bootstrap-MRMR technique.

Usage

bootmr.weight(x, y, s, plot)

Arguments

x
x is a N by p dataframe of gene expression, where rows are genes and columns are as samples/subjects (gene names are taken as row names). Each cell/entry represents the expression level of a gene in a sample/subject.
y
y is a p by 1 numeric vector having elements as 1/-1 representing the sample labels of samples/subjects (for two class problems, i.e. stress/control)
s
s is a numeric constant representing the number of bootstrap samples drawn (s must be sufficiently large)
plot
plot is a character string must either take logical value TRUE/FALSE representing whether the plot of the gene weights of all genes in the dataset needs to be constructed or not.

Details

The function returns a vector of weights associated with each genes computed from Bootstrap-MRMR technique for a given dataset.

Examples

Run this code

data(rice_salt)
x=as.data.frame(rice_salt[-1,])
y=as.numeric(rice_salt[1,])
s=80
bootmr.weight(x, y, s, plot=FALSE)

Run the code above in your browser using DataLab