https://mp.weixin.qq.com/s/2VXprzgJSYJ39AhZ_FprCQ
https://www.jianshu.com/p/b24e5f52a7a7
https://support.bioconductor.org/tag/WGCNA/
offical tutorial
offical FAQ

1. prepare input expression matrix & trait

  • a matrix of genes at rows & samples at column
  • over 20 samples
  • log2(TPM+1) to normalise
  • combator sva to remove batch effect
  • filter low express genes

2
ALLOW_WGCNA_THREADS=8
allowWGCNAThreads()
recommend setting

  1. networkType = "signed" # or "signed hybrid"
  2. corType = "bicor"
  3. TOMType = "signed"
  4. maxPOutliers = 0.05 #or 0.10
  5. robustY = FALSE