get_Pvalue_S | R Documentation |
The function 'get_Pvalue_S' is used to calculate the perturbed p-value.
get_Pvalue_S(module, freq_matrix, sur, perms = 1000, local_network)
module |
The candidate module,generated by 'get_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. |
perms |
The perturbation number,default is 1000. |
local_network |
The local network gene sets,generated by 'get_local_network'. |
Perturbed p-value.
#load the data
data(local_network)
data(mut_status)
data(candidate_module)
sur<-system.file("extdata","sur.csv",package = "ProgModule")
sur<-read.delim(sur,sep=",",header=TRUE,row.names = 1)
#perform the function `get_Pvalue_S`.
turbulence.example<-get_Pvalue_S(module=candidate_module,freq_matrix=mut_status,
sur=sur,perms=100,local_network)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.