bootstrap.ktsp: Bootstrap procedure for the k-TSP

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/bootstrap.ktsp.r

Description

This function computes n bootstrap resamples of the original dataset, at each step it applies the k-TSP on the simulated dataset and records which pairs of genes were selected as well as the number k.

Usage

1
bootstrap.ktsp(dat, grp, k = NULL, seed = NULL, n = 500, length = 40, display = FALSE, med = FALSE)

Arguments

dat

Can either be (a) a matrix of m lines (the gene expressions) and n columns (the observations) or (b) an eSet object.

grp

Can either be (a) a character (or numeric) vector indicating the group of each observations or (b) an integer indicating the column of pData(dat) that represents the group of the observations.

k

If the number of pair of genes should be the same at each step or if it should be computed every time (by crossvalidation).

seed

If a seed should be set or not.

n

The number of bootstrap resamples.

length

To control the length of the list in the C code, see kts.pair() or ktspcalc() for more details.

display

If warnings should be displayed or not.

med

If the mean of the median between the two groups for each gene should be substracted to the dataset or not.

Value

A bootstrap object with the following elements

score

A n by 9 matrix containing the scores of the k-TSP computed on the bootstrap. May contain NA (if k<9).

index

A n by 18 matrix containing the index of the k-TSP computed on the bootstrap. May contain NA (if k<9).

k_value

A vector of length n containing the number of pairs for each k-TSP (k).

k

A booleen indicating if the value of k was computed at every step or chosen as a parameter by the user.

n

The number of boostrap resamples.

genenames

The names of the genes contained in the dataset. If none, a numerotation is used.

ktsp

A ktsp object computed on the original dataset.

Author(s)

Julien Damond julien.damond@gmail.com

References

D. Geman, C. d'Avignon, D. Naiman and R. Winslow, "Classifying gene expression profiles from pairwise mRNA comparisons," Statist. Appl. in Genetics and Molecular Biology, 3, 2004.

A.C. Tan, D.Q. Naiman, L. Xu, R.L. Winslow, D. Geman, "Simple decision rules for classifying human cancers from gene expression profiles," Bioinformatics, 21: 3896-3904, 2005.

J. Damond, supervised by S. Morgenthaler and S. Hosseinian, "Presentation and study of robustness for several methods to classify individuals based on their gene expressions", Master thesis, Swiss Federal Institute of Technology Lausanne (Switzerland), 2011.

J. Damond, S. Morgenthaler, S. Hosseinian, "The robustness of the TSP and the k-TSP and the computation of ROC curves", paper is submitted in Bioinformatics, December 2011.

Jeffrey T. Leek <jtleek@jhu.edu> (). tspair: Top Scoring Pairs for Microarray Classification. R package version 1.10.0.

See Also

ktspcalc, ktspplot,predict.ktsp, summary.ktsp

Examples

1
2
3
4
5
6
7
  ## Not run: 
  ## Load data
   data(ktspdata)
   bootstrap1 <- bootstrap.ktsp(dat, grp, k=3, n=20)
   bootstrap2 <- bootstrap.ktsp(dat, grp, n=20, seed=1)
  
## End(Not run)

ktspair documentation built on May 2, 2019, 3:25 a.m.