# NOT RUN {
# Load the library
library(XGR)
RData.location <- "http://galahad.well.ox.ac.uk/bigdata/"
# a) provide the input Genes of interest (eg 1000 randomly chosen human genes)
## load human genes
org.Hs.eg <- xRDataLoader(RData='org.Hs.eg',
RData.location=RData.location)
set.seed(825)
data <- as.character(sample(org.Hs.eg$gene_info$Symbol, 1000))
# b) obtain repurposing matrix
DR <- xRepurpose(data, RData.location=RData.location, reorder="none",
colormap="ggplot2.top", zlim=c(1,4), na.color='transparent',
label.size=1.5, label.color="white")
DR$gp
write.table(DR$df, file="xRepurpose.txt", sep="\t", row.names=F,
quote=F)
write.table(DR$index, file="xRepurpose_index.txt", sep="\t",
row.names=F, quote=F)
# }
Run the code above in your browser using DataLab