# hdWGCNA **Repository Path**: fan_chuiqin/hdWGCNA ## Basic Information - **Project Name**: hdWGCNA - **Description**: 单细胞WGCNA - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: dev - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-05-22 - **Last Updated**: 2024-06-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # high dimensional WGCNA [![R](https://img.shields.io/github/r-package/v/smorabit/hdWGCNA)](https://github.com/smorabit/hdWGCNA/tree/dev) [![ISSUES](https://img.shields.io/github/issues/smorabit/hdWGCNA)](https://github.com/smorabit/hdWGCNA/issues) [![Publication](https://img.shields.io/badge/publication-Cell%20Rep%20Meth-%2300A1D7)](https://www.cell.com/cell-reports-methods/fulltext/S2667-2375(23)00127-3) [![Lifecycle:Maturing](https://img.shields.io/badge/Lifecycle-Maturing-007EC6)](https://github.com/smorabit/hdWGCNA) [![Stars](https://img.shields.io/github/stars/smorabit/hdWGCNA?style=social)](https://github.com/smorabit/hdWGCNA/) hdWGCNA is an R package for performing weighted gene co-expression network analysis [(WGCNA)](https://horvath.genetics.ucla.edu/html/CoexpressionNetwork/Rpackages/WGCNA/) in high dimensional transcriptomics data such as single-cell RNA-seq or spatial transcriptomics. hdWGCNA is highly modular and can construct co-expression networks across multi-scale cellular and spatial hierarchies. hdWGNCA identifies robust modules of inerconnected genes, and provides context for these modules through various biological knowledge sources. hdWGCNA requires data formatted as [Seurat](https://satijalab.org/seurat/index.html) objects, one of the most ubiquitous formats for single-cell data. Check out the [hdWGCNA in single-cell data tutorial](https://smorabit.github.io/hdWGCNA/articles/basic_tutorial.html) or the [hdWGCNA in spatial transcriptomics data tutorial](https://smorabit.github.io/hdWGCNA/articles/ST_basics.html) to get started. **Note about package development:** hdWGCNA is under active development, so you may run into errors and small typos. We welcome users to write [GitHub issues](https://docs.github.com/en/issues/tracking-your-work-with-issues/creating-an-issue) to report bugs, ask for help, and to request potential enhancements. **Note about Seurat v5:** We plan to test the compatibility of hdWGCNA with [Seurat version 5](https://satijalab.org/seurat/articles/get_started_v5.html), but we have currently not updated hdWGCNA to work with Seurat v5. We strongly suggest using Seurat v4 at this time, or use v5 at your own risk. If you use hdWGCNA in your research, please cite the following papers in addition to the original WGCNA publication: * [Morabito et al., Cell Reports Methods (2023)](https://www.cell.com/cell-reports-methods/fulltext/S2667-2375(23)00127-3) * [Morabito & Miyoshi et al., Nature Genetics (2021)](https://doi.org/10.1038/s41588-021-00894-z) ## Installation We recommend creating an R [conda environment](https://docs.conda.io/en/latest/) environment for hdWGCNA. ```bash # create new conda environment for R conda create -n hdWGCNA -c conda-forge r-base r-essentials # activate conda environment conda activate hdWGCNA ``` Next, open up R and install the required dependencies: * [Bioconductor](https://www.bioconductor.org/), an R-based software ecosystem for bioinformatics and biostatistics. * [Seurat](https://satijalab.org/seurat/index.html), a general-purpose toolkit for single-cell data science. We do not recommend using hdWGCNA with Seurat v5 at this time. * [WGCNA](https://horvath.genetics.ucla.edu/html/CoexpressionNetwork/Rpackages/WGCNA/), a package for co-expression network analysis. * [igraph](https://igraph.org/r/), a package for general network analysis and visualization. * [devtools](https://devtools.r-lib.org/), a package for package development in R. ```r # install BiocManager install.packages("BiocManager") # install Bioconductor core packages BiocManager::install() # install additional packages: install.packages(c("Seurat", "WGCNA", "igraph", "devtools", "GeneOverlap)) ``` Now you can install the hdWGCNA package using `devtools`. ```r devtools::install_github('smorabit/hdWGCNA', ref='dev') ``` ## Suggested Reading Check out the paper describing hdWGCNA, and our original description of applying WGCNA to single-nucleus RNA-seq data: * [hdWGCNA identifies co-expression networks in high-dimensional transcriptomics data](https://www.cell.com/cell-reports-methods/fulltext/S2667-2375(23)00127-3) * [Single-nucleus chromatin accessibility and transcriptomic characterization of Alzheimer’s disease](https://doi.org/10.1038/s41588-021-00894-z) For additional reading, we suggest the original WGCNA publication and papers describing relevant algorithms for co-expression network analysis: * [WGCNA: an R package for weighted correlation network analysis](https://doi.org/10.1186/1471-2105-9-559) * [Defining clusters from a hierarchical cluster tree: the Dynamic Tree Cut package for R](https://doi.org/10.1093/bioinformatics/btm563) * [Eigengene networks for studying the relationships between co-expression modules](https://doi.org/10.1186/1752-0509-1-54) * [Geometric Interpretation of Gene Coexpression Network Analysis](https://doi.org/10.1371/journal.pcbi.1000117) * [Is My Network Module Preserved and Reproducible?](https://doi.org/10.1371/journal.pcbi.1001057)