hdWGCNA icon indicating copy to clipboard operation
hdWGCNA copied to clipboard

Removing anti-correlated genes from module

Open mitchTwoTimes opened this issue 11 months ago • 5 comments

Hi,

I created a signed network and found that some of the genes in my modules aren't moving in the direction I'd like them to. I'm trying to create a "score" using module eigengenes and am worried these anti-correlated genes will skew my results.

  1. Is there a way to exclude these anti-correlated genes from downstream analyses?
  2. Is trimming a module like this even okay from a methods standpoint?

Thank you!

mitchTwoTimes avatar Mar 15 '24 01:03 mitchTwoTimes

some of the genes in my modules aren't moving in the direction I'd like them to

I am not really sure what you mean by this statement, can you please explain?

smorabit avatar Mar 18 '24 17:03 smorabit

I'd like my co-expression network only include genes that increase with time. In the heatmap below, some ideal genes would be in the middle. Would it be appropriate to trim the module to those that meet this criteria?

image

mitchTwoTimes avatar Mar 19 '24 15:03 mitchTwoTimes

If you only want to use genes that increase with time, then you should use that list of genes as the input to hdWGCNA. For example:

seurat_obj <- SetupForWGCNA(
     seurat_obj,
     features = gene_list,
     wgcna_name = 'test'
)

However I will caution you that if your list of genes is really small it could be difficult to get meaningful results out of this.

smorabit avatar Mar 20 '24 17:03 smorabit

Sorry, those were genes from one of my modules, I was just mapping them to a reference dataset and saw they weren't trending in the direction I wanted. My question basically, "Can I trim my modules to specific genes of interest?"

mitchTwoTimes avatar Mar 20 '24 19:03 mitchTwoTimes

"Can I trim my modules to specific genes of interest?"

Ultimately you can do whatever you want because it is your data, but personally I would not do this if it were my project. Instead I would do as I previously suggested and run hdWGCNA only on those genes that you are interested in.

smorabit avatar Mar 21 '24 17:03 smorabit