How to build a graph from the microarray gene expression values using correlation functions? I need a tutorial in R language and Python/Ruby/Java. I tried to use ReactomeFI and a recipe from R bioinformatics cookbook.
Thank you
How to build a graph from the microarray gene expression values using correlation functions? I need a tutorial in R language and Python/Ruby/Java. I tried to use ReactomeFI and a recipe from R bioinformatics cookbook.
Thank you
I imagine you want a weighted graph based on correlation coefficients.
If your rows are gene names, you can simply do :
my_microarray_mat = as.matrix(whatever_data_frame_I_loaded_my_file_into)
my_cor_mat = cor(t(my_microarray_mat),method = "pearson")
method
is by default "pearson"
and you can change it to anything. Type ?cor
.
See igraph documentation if you want to convert it to R graph object: http://igraph.org/r/
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
"How to build a graph" and you mention 4 different languages? Try to pick a single language and specify what kind of graph.