text: user14034: I am trying to find hub genes for modules made using WGCNA:
  hub = chooseTopHubInEachModule(datExpr, moduleColors)
  
  But I am getting error:
  Error in hubs[m] <- colnames(adj)[hub] : replacement has length zero
  
  Thank you for the help1
  
  user851: The most likely culprit here is that your expression data (the datExpr input to chooseTopHubInEachModule) has no colnames. Check that your data do have appropriate column names. Also check that the module color vector you supply has at least actual module (type table(moduleColors) and check that you have at least one module apart from "grey" or 0).
  
original_text: 14034: <p>I am trying to find hub genes for modules made using WGCNA:</p>
  <pre><code>hub = chooseTopHubInEachModule(datExpr, moduleColors)
  </code></pre>
  <p>But I am getting error:</p>
  <pre><code>Error in hubs[m] &lt;- colnames(adj)[hub] : replacement has length zero
  </code></pre>
  <p>Thank you for the help1</p>
   851: <p>The most likely culprit here is that your expression data (the datExpr input to chooseTopHubInEachModule) has no colnames. Check that your data do have appropriate column names. Also check that the module color vector you supply has at least actual module (type table(moduleColors) and check that you have at least one module apart from &quot;grey&quot; or 0).</p>
  