Answers.Body: <p>My first guess is that there is a typo in your code, and Acutal.IGP should be Actual.IGP. I checked my tutorials and the word Acutal is in none of them, so I would assume you mistyped the variable name.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-11T14:47:55.100Z
Answers.Text: Oh my gosh! I am so sorry, I have re-read this so many times! and re-typed. I apologise I will get another pair of eyes to check as well as me before posting again. Thank you so much!
Answers.UserDisplayName: Ruth Johnson
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-11T14:34:18.900Z
Answers.LastActivityDate: 2019-11-11T14:34:18.900Z
Answers.UserDisplayName: Peter Langfelder
Body: <p>I am trying module preservation with WGCNA using my own data. I am plotting the summary statistics including Zsummary, medianRank, observed IGP and IGP permutation p-value for two comparison data sets.</p>
  <p>When plotting the scatterplots for IGP &amp; p-value vs. module size I get following error code. I have re-run code and done practice data with no problems but unsure how to correct for this error? Does anyone have any experience with this and know how to resolve? Thank you kindly</p>
  <pre class="lang-r prettyprint-override"><code> plotData[[2]][, 3] = cr[[ref]][[test]]<span class="math-container">$Acutal.IGP
    plotData[[2]],[, 4] = -log(cr[[ref]][[test]]$</span>p.value + 1e -4)
  
  errror in plotData[[2]][, 3] = cr[[ref]][[test]]$Acutal.IGP
  number of items to replace is not a multiple of replacement length
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-01-31T16:19:29.633Z
Comments.Text: Hi do you have the tutorial for plotting this?
Comments.UserDisplayName: Gail
Tags: <r><wgcna>
Title: WGCNA module preservation error code with plotting summary statistics
ThreadText: # WGCNA module preservation error code with plotting summary statistics
  
  (Asked by: username_0 on 2019-11-11)
  
  I am trying module preservation with WGCNA using my own data. I am plotting the summary statistics including Zsummary, medianRank, observed IGP and IGP permutation p-value for two comparison data sets.
  
  When plotting the scatterplots for IGP & p-value vs. module size I get following error code. I have re-run code and done practice data with no problems but unsure how to correct for this error? Does anyone have any experience with this and know how to resolve? Thank you kindly
  
  ```r
   plotData[[2]][, 3] = cr[[ref]][[test]]$Acutal.IGP
    plotData[[2]],[, 4] = -log(cr[[ref]][[test]]$p.value + 1e -4)
  
  errror in plotData[[2]][, 3] = cr[[ref]][[test]]$Acutal.IGP
  number of items to replace is not a multiple of replacement length
  
  ```
  
  **Tags:** r, wgcna
  
  > **Comments:**
  > **username_1**: Hi do you have the tutorial for plotting this?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2019-11-11. Score: 1 | Accepted answer
  
  My first guess is that there is a typo in your code, and Acutal.IGP should be Actual.IGP. I checked my tutorials and the word Acutal is in none of them, so I would assume you mistyped the variable name.
  
  > **Comments:**
  > **username_0**: Oh my gosh! I am so sorry, I have re-read this so many times! and re-typed. I apologise I will get another pair of eyes to check as well as me before posting again. Thank you so much!  
  
  ---
  
  