## Not run:
# data(rsgcc) #load the sample data in rsgcc package
# x <- rnaseq[1:4,] #construct a GEMatrix with the RNA-Seq data of the first four genes
#
# #run on one CPU for all the possible gene pairs in the GEMatrix "x".
# #do not cacluate the p-value of computated correlations.
# cor.matrix(x, cpus = 1,
# cormethod = "GCC", style = "all.pairs",
# pernum = 0, sigmethod = "two.sided",
# output = "matrix")
#
# #run on two CPUs, snowfall package should be properly installed.
# #cacluate the p-value of correlations with the 2000 permutation tests.
# #output the results in "paired" format.
# cor.matrix(x, cpus = 2,
# cormethod = "GCC", style = "all.pairs",
# pernum = 2000, sigmethod = "two.sided",
# output = "paired")
#
# #calcuate correlation on the pairs between the 1st, 2nd and 3rd genes in the GEMatrix "x".
# cor.matrix(x, cpus = 1,
# cormethod = "GCC", style = "pairs.between",
# var1.id = c(1:3), var2.id = c(1:3),
# pernum = 2000, sigmethod = "two.sided",
# output = "matrix")
#
# #calcuate correlation on the adjacent genes ((G1,G2), (G2,G3), (G3,G4),...) in the GEMatrix "x".
# cor.matrix(x, cpus = 1,
# cormethod = "GCC", style = "adjacent.pairs",
# pernum = 2000, sigmethod = "two.sided",
# output = "matrix")
#
# ## End(Not run)
Run the code above in your browser using DataLab