networkScreening in package WCGNA
1
0
Entering edit mode
3.6 years ago

I need to identify genes related to a particular trait. The networkScreening function WGCNA package seemed to be suitable for this purpose. I have provided the expression data where genes correspond to columns and samples correspond to rows, and a trait vector whose length is equal to number of samples. In my data, multiple samples can belong to the same clinical trait. Though the output gives all the values for every gene, I am not being able to understand which trait the gene is associated to, as it has expression values for all samples.

gene • 504 views
ADD COMMENT
1
Entering edit mode
3.6 years ago

Don't use WGCNA for this (unless you actually want to incorporate the module information somehow?) - just perform an independent regression for each gene against the trait in question. This could be of the form:

glm(trait ~ gene, data = data) # continuous trait

glm(trait ~ gene, data = data, family = binomial(link = 'logit')) # categorical trait

Kevin

ADD COMMENT

Login before adding your answer.

Traffic: 2136 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