MI {ProgModule} | R Documentation |
Calculate mutual information.
Description
The function ‘MI' is used to calculate the mutual information score between samples’ survival status and mutation status.
Usage
MI(mylist1, mylist2)
Arguments
mylist1 |
Is input a list of samples' survival status. |
mylist2 |
Is input a list of samples' mutation status. |
Value
The mutual information score
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)
#perform the function 'MI'
mut_matrix<-MI(mylist1 = as.numeric(mut_status[1,]),mylist2 = sur[,1])
[Package ProgModule version 0.1.0 Index]