weight | R Documentation |
Weights for signature genes are calculated from the results obtained by performing Cox proportional hazard regression on the training survival datasets.
weight(results,signature)
results |
a list of multiple results obtained by performing survival analysis on the training datasets. |
signature |
a vector or matrix of genes screened by a method from survival data and expression data. |
The results file is a list of multiple results obtained by performing Cox proportional hazard survival analysis based on univariate models in multiple datasets. User can create this list by using results<-list(result1,result2,..., resultn). Signature may be a matrix with two columns and n rows. One column may be gene id(such as probe id or Ensembl id or NCBI Entrez id) and the other is gene symbol or gene name. Signature may be a vector(a set of genes or gene ids).
Output a matrix where gene and/or gene id and weight in column and gene names and/or gene id values and weight values.
Sum of weights may not be equal to 1 if some genes in results are lost.
Yuan-De Tan
yxt477@med.miami.edu
tanyuande@gmail.com
data(TS_signature)
data(results)
res<-weight(results = results,signature = TS_signature)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.