How to build a graph from the microarray gene expression values using correlation functions?
2
0
Entering edit mode
9.2 years ago

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

gene R • 3.5k views
ADD COMMENT
2
Entering edit mode

"How to build a graph" and you mention 4 different languages? Try to pick a single language and specify what kind of graph.

ADD REPLY
0
Entering edit mode
9.2 years ago

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/

ADD COMMENT
0
Entering edit mode
9.2 years ago
Irsan ★ 7.8k

Source this file and use

myDendrogram <- dendrogramSamples(yourData)
plot(myDendrogram)
ADD COMMENT
0
Entering edit mode

I need a graph with nodes as gene names and edges as significant correlations, not dendrogram, but THANKS, FOLKS

ADD REPLY

Login before adding your answer.

Traffic: 2987 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6