get_mut_survivalresult {ProgModule} | R Documentation |
Plot Kaplan-Meier survival curve.
Description
The function 'get_mut_survivalresult' uses to draw the Kaplan-Meier survival curve based on the mutated status of candidate module.
Usage
get_mut_survivalresult(module, freq_matrix, sur)
Arguments
module |
The gene module,generated by 'get_final_candidate_module'. |
freq_matrix |
The mutations matrix,generated by 'get_mut_status'. |
sur |
A nx2 data frame of samples' survival data,the first line is samples' survival event and the second line is samples' overall survival. |
Value
No return value
Examples
#load the data.
data(mut_status)
sur<-system.file("extdata","sur.csv",package="ProgModule")
sur<-read.delim(sur,sep=",",header=TRUE,row.names=1)
data(final_candidate_module)
#perform the function `get_mut_survivalresult`.
get_mut_survivalresult(module=final_candidate_module,freq_matrix=mut_status,sur)
[Package ProgModule version 0.1.0 Index]