Skip to content

digitalcytometry/spatialecotyper

Repository files navigation

Deciphering spatial ecotypes from spatial, single-cell, and bulk transcriptomic data

Spatial EcoTyper is a versatile framework for identifying spatially distinct multicellular communities, termed spatial ecotypes, from single-cell spatial transcriptomics data. In addition, it provides unified methods for the recovery of spatial ecotypes across multiple data modalities, including spatial transcriptomics, single-cell RNA-seq, and bulk transcriptomic datasets.

Overview of Spatial EcoTyper

Spatial EcoTyper is available as an R package, with comprehensive documentation accessible at https://digitalcytometry.github.io/spatialecotyper.

We provide eight comprehensive tutorials illustrating the key functionalities of Spatial EcoTyper framework:

Note: Spatial EcoTyper depends extensively on Seurat for key processes like dimensionality reduction, UMAP embedding, clustering, and visualization. Initially developed using Seurat v4.3, the tool has been thoroughly tested and validated with Seurat v5. Although UMAP embeddings and clustering results show slight differences between Seurat v4 and v5, the overall consistency remains strong, ensuring that core biological insights are preserved across both versions.

System requirements

  • R: Version 4.0 or higher is required.
  • Operating Systems: This package is compatible with all operating systems and has been tested on the following platforms:
    • macOS: Big Sur, Monterey, Ventura, Sonoma, Sequoia (15.2)
    • Linux: CentOS 7.2 and High-Performance Computing (HPC) clusters

Installation

Spatial EcoTyper is available as an R package and can be installed via the BiocManager package directly from the R console.

if(!"BiocManager" %in% installed.packages()){
  install.packages("BiocManager")
}

## Install dependencies
BiocManager::install(c("remotes", "Seurat", "NMF", "dplyr", "tidyr", "pals",
                       "parallel", "data.table", "ComplexHeatmap", 
                       "glmGamPoi", "immunogenomics/presto"))

## Install SpatialEcoTyper
BiocManager::install("digitalcytometry/spatialecotyper")
Troubleshooting dependency installation
  • ERROR: dependency ‘GetoptLong’ is not available for package ‘ComplexHeatmap’

    If the installation within R console fails, you can try installing the necessary packages via conda install or mamba install.

    conda install bioconda::bioconductor-complexheatmap
  • Failed to install 'presto' from GitHub: HTTP error 401. Bad credentials

    To resolve this issue, you’ll need to authenticate using a personal access token (PAT). You can generate a GitHub personal access token following the GitHub's documentation. After generating the token, set it as an environment variable in R using the following code. Replace "YOUR_TOKEN" with your actual token:

    ## Set the token in your R environment:
    Sys.setenv(GITHUB_PAT="YOUR_TOKEN")
    
    ## Install the package from GitHub:
    BiocManager::install("immunogenomics/presto")
Install SpatialEcoTyper from source code The source code of **Spatial EcoTyper** is available at https://github.com/digitalcytometry/spatialecotyper. After downloading the package, you can install it from the source code using the command:
install.packages("SpatialEcoTyper.tar.gz", repos = NULL)

Contribution

If you encounter any bugs or have suggestions for improvements, please feel free to open an issue or submit a pull request. Your feedback and contributions help us make the tool better for everyone.

License

Please see the LICENSE file.

Citation

If you use Spatial EcoTyper, please cite:

Wubing Zhang*, Erin L. Brown*, Abul Usmani*, Noah Earland, Minji Kang, Chibuzor Olelewe, Anushka Viswanathan, Pradeep S. Chauhan, Chloé B. Steen, Hyun Soo Jeon, Susanna Avagyan, Irfan Alahi, Nicholas P. Semenkovich, Janella C. Schwab, Chloe M. Sachs, Faridi Qaium, Peter K. Harris, Qingyuan Cai, Andrew J. Gentles, James Knight, Rondell P. Graham, Antonietta Bacchiocchi, Peter C. Lucas, Ryan C. Fields, Mario Sznol, Ruth Halaban, David Y. Chen, Aadel A. Chaudhuri and Aaron M. Newman. Non-invasive profiling of the tumour microenvironment with spatial ecotypes. Nature, 2026. doi.org/10.1038/s41586-026-10452-4.

About

Deciphering spatial ecotypes from spatial, single-cell, and bulk transcriptomic data

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

No contributors

Languages