## Not run:
#
# ###calculate the global influence factor (GIF) by using the random walk with restart (RWR) algorithm###
# #example 1
# #get example data
# dataset<-getdataset()
# class.labels<-getclass.labels()
#
# #calculate the global influence factor (GIF)
# GIFscore<-CalGIF(dataset,class.labels)
# #print the top ten results to screen
# GIFscore[rev(order(GIFscore))][1:10]
#
# #Each element is the GIF score and whose name correspond to gene symbol in the gene expression data.
# #If the genes in gene expression data are not included in the global gene-gene network, their GIF
# #scores will be zero.
#
# #example 2
# #get example data
# dataset<-read.table(paste(system.file(package="PAGI"),"/localdata/dataset.txt",sep=""),
# header=T,sep="\t","\"")
# class.labels<-as.character(read.table(paste(system.file(package="PAGI"),
# "/localdata/class.labels.txt",sep=""),quote="\"", stringsAsFactors=FALSE)[1,])
#
# #calculate the global influence factor (GIF)
# GIFscore<-CalGIF(dataset,class.labels)
# #print the top ten results to screen
# GIFscore[rev(order(GIFscore))][1:10]
#
# #Each element is the GIF score and whose name correspond to gene symbol in the gene expression data.
# #If the genes in gene expression data are not included in the global gene-gene network, their
# # GIF scores will be zero.
#
# ## End(Not run)
Run the code above in your browser using DataLab