weight {signatureSurvival} | R Documentation |
Caculation of Weights for signature genes
Description
Weights for signature genes are calculated from the results obtained by performing Cox proportional hazard regression on the training survival datasets.
Usage
weight(results,signature)
Arguments
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. |
Details
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).
Value
Output a matrix where gene and/or gene id and weight in column and gene names and/or gene id values and weight values.
Note
Sum of weights may not be equal to 1 if some genes in results are lost.
Author(s)
Yuan-De Tan
yxt477@med.miami.edu
tanyuande@gmail.com
Examples
data(TS_signature)
data(results)
res<-weight(results = results,signature = TS_signature)