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
#compute correlation between the 1st and 4th genes
corpair <- cor.pair(c(1,4), GEMatrix = x, rowORcol = "row",
cormethod = "GCC", pernum = 0,
sigmethod = "two.sided")
## Not run:
# #compute correlation between the 1st and 4th genes,
# #the p-value of correlation will be estimated with 2,000 permuation test.
# corpair <- cor.pair(c(1,4), GEMatrix = x, rowORcol = "row",
# cormethod = "GCC", pernum = 2000,
# sigmethod = "two.sided")
#
# #compute correlation between the 1st and 4th samples
# corpair <- cor.pair(c(1,4), GEMatrix = x, rowORcol = "col",
# cormethod = "GCC", pernum = 0,
# sigmethod = "two.sided")
# ## End(Not run)
Run the code above in your browser using DataLab