Entering edit mode
6.5 years ago
modarzi
▴
170
Hi, for using Co-expression network, I use WGCNA algorithm. based on WGCNA tutorial, I use blockwiseModules() and detect my module.So, I would like to know how many module do I have? in other words, by which query or function I can find my answer?
I appreciate if anybody share his/her with me.
Best Regards,
Mohammad
Dear Dr. Warner
Thanks for your comment. I have another problem. As you know for preparing output file for gene ontology analysis in WGCNA, I need GeneAnnotation.csv file for my Gene Expression profile. My Gene Expression data set is RNA-seq data from The Genome Cancer Atlas (TCGA). For that purpose I downloaded "gencode.v22.genes.csv" but the attributes name of "gencode.v22.genes" is not similar to GeneAnnotaion.csv file in Tutorials for the WGCNA package.
I don't know how should I handle Annotation file for my dataset?
And my second problem is that below code is based on MicroArray and my data set is RNA-seq.
How can I customize that code for RNA-seq?
I appreciate if you share your comment with me.
Hi Modzari,
This is more of an R problem and less of a WGCNA or RNAseq/array problem. What the code you pasted does, is import an annotation file which is a series of columns with gene name, probe name, genomic coordinates etc, and associate those annotations with the results of the correlation test performed as
cor(datExprFemale,datTraits,use="p")
. To adapt this you would 1. Run the correlation test on your own trait data and 2. associate the results with your own annotation file. To associate the results you just need to use a key value (gene ID, probe ID, transcript ID) that exists in both yourdatExpr
dataframe and your annotation file. Then you use any number of functions to put them together includingmerge()
from base, orjoin()
, from dplyer to combine the tables. The tutorial usesmatch()
followed by a square bracket subset but I find that clunky. I prefer to use thejoin
family of functions from dplyr.I'm shooting in the dark without running the whole tutorial myself but a simplified version of the above would look like this:
Dear Dr Warner
Thanks for comment and code. As you know, I use RNA-seq data set as an input in WGCNA . Now, I want to import my network in Cytoscape for visualization. based on WGCNA tutorial, for that purpose I have to run below code that is based on MicroArray data set:
How can I customize that code for RNA-seq?
I appericite if you share your comment with me.
Best Regards,
Mohammad