Hi Andres, I don't even know how to thank you for all the effort you put into helping me figure this out. I have a few more questions that I hope you could help me or provide insights on.
You saw the two normalized files, for WGCNA would you recommend a DEG log2 genes, or VST filtered genes? I did a heatmap between modules and samples, the log2 followed sensible patterns of development while VST was more colorful (higher positive and negative values, but not following patterns of biological development across modules).
If I have another data for say 100 genes that I want to investigate (growth genes maybe) and I want to see what other genes are regulating them, what would you suggest to do? I know I don't have traits to filter with, but what I did was filter out the 100 genes (X) I want from the edge files and see which genes are connected to them (Y). I feel like this way kinda takes out the bigger picture as some genes (Z) that might be connected to the genes (Y) connected to my 100 genes (X) are taken out, so I don't know what might be regulating the genes (Y) that regulate my 100 genes (X) and so on. Tried to label them with X Y Z so you don't get confused.
Is there a better workflow than WGCNA to achieve my 2nd point?
Why are they undirected despite me choosing "signed"?
Is there a way to choose the threshold value? any mathematical way or function that can estimate a proper threshold or is it arbitrary?
I appreciate your help Andres, and sorry if my questions are too much.
That's how a scale free topology network should look like.
However, it is a little bit strange that every module has a scale free topology because RNA-seq data are not topically scale free. Perhaps you should provide the chunck of code used to export the wgcna modules to cytoscape and how many samples did you use for the analysis
Thanks for getting back to me Andres, here is the code I used to export the network. If you think this chunk of code could be useful let me know and I will upload the rest of it.
how did you get
TOM_matrixandmodule_colors? Please, show me the code.Also, can you show me the
Scale Free Topologyplot and theMean Connectivityplot, and tell me on how many samples did you run WGCNA?Okay in order:
I picked the 22 according to the function i mentioned earlier
How many samples 24 samples, as I have 8 timepoints (growth stages) each one has 3 biological replicates.
How did I obtain TOM_matrix and module colors
For the chunk above I saved TOM matrix using saveTOM = T, and then loaded it using RData file that the function outputs, using load(etc..). That's how I obtained the TOM matrix, what was odd about it is every two similar correlations say me with myself, the usual correlation value should be 1 as it is from TOMfromExpression function gives out, but the TOM i loaded from blockmodules has these values set to 0. I think because it views them as distances? A distance between me and myself is 0? I'm not sure.
Obtaining the colors was using the $colors in flower_network (blockwisemodule output) and then I transferred the labels into colors. That's how I obtained the module_colors.
Your modules are already labeled as colors so you do not need
By the way, I don't think this is the problem. Would you mind sharing the
normalized_reads_transposedfile?Ofcourse, I have the normalized reads file is the file that i normalized the raw data using vst, and there is another one that I had pre-normalized for me on log2 scale.
I will link both in a google drive below: https://drive.google.com/drive/folders/1fde_vSnInrISZc-TUm5YsJBk2A1P0C2w?usp=sharing
DEG: normalized log2 differentially expressed genes
Normalized reads: VST normalized genes.
Both come from the same rawfile just a different normalization attempt based on suggestions I got from biostar members that VST is preferred for WGCNA.
Note: Original rawcount was 29K~
Here is what I did to obtain the genes you see in normalized reads
Thanks for the file.
I will try to replicate the analysis during weekend.
Thank you Andres.