Entering edit mode
Im trying to run the sample WGCNA code from the site as is,and am looking at the explanation but I was wondering if someone could explain what below lines do. if already explained elsewhere please feel free to delete:
Note: I have modified the question.
# Form a data frame analogous to expression data that will hold the clinical traits.
femaleSamples = rownames(datExpr);
traitRows = match(femaleSamples, allTraits$Mice);
datTraits = allTraits[traitRows, -1];
rownames(datTraits) = allTraits[traitRows, 1];
I am not sure how to create such an analohous table with my clinical data.
What problems did you found? What/How many clinical variables do you have?