Giter Site home page Giter Site logo

yiqisu / spatialbenchmarking Goto Github PK

View Code? Open in Web Editor NEW

This project forked from qukunlab/spatialbenchmarking

0.0 0.0 0.0 1.74 GB

License: BSD 2-Clause "Simplified" License

Shell 0.02% Python 8.76% R 0.59% Makefile 0.02% Batchfile 0.03% Jupyter Notebook 90.59%

spatialbenchmarking's Introduction

Benchmarking spatial and single-cell transcriptomics integration methods for transcript distribution prediction and cell type deconvolution

WorkFolw

Implementation description

We collected 45 paired datasets and 32 simulated datasets and designed a pipeline to 1) systematically evaluate the accuracy of eight integration methods for predicting the RNA spatial distribution. 2) test four schemes of input expression matrices for predicting the RNA spatial distribution. 3) Then we down-sampled the spatial transcriptomics data of five datasets to test the performance of the integration methods for datasets with sparse expression matrices. 4) Beyond assessment of the spatial distribution of RNA transcripts, we also tested the performance of ten integration methods for celltypes deconvolution.

We provide example guidance to help researchers select optimal integration methods for working with their datasets: the doc/Tutorial.pdf is an example showing how to use them to predict new spatial gene patterns and cell locations.

Dependencies and requirements for Predicting undetected transcripts

Before you run the pipeline, please make sure that you have installed and python3, R(3.6.1) and all the eight packages(gimVI, SpaGE, Tangram, Seurat, SpaOTsc, LIGER, novoSpaRc, stPlus) :

  1. Before the installation of these packages, please install Miniconda to manage all needed software and dependencies. You can download Miniconda from https://conda.io/miniconda.html.
  2. Download SpatialBenchmarking.zip from https://github.com/QuKunLab/SpatialBenchmarking. Unzipping this package and you will see Benchmarkingenvironment.yml and Config.env.sh located in its folder.
  3. Build isolated environment for SpatialBenchmarking: conda env create -f Benchmarkingenvironment.yml
  4. Activate Benchmarking environment: conda activate Benchmarking
  5. sh Config.env.sh
  6. Enter R and install required packages by command : install.packages(c('vctrs','rlang','htmlwidgets'))

Installation of Benchmarking may take about 7-15 minutes to install the dependencies.

Dependencies and requirements for Predicting celltypes deconvolution

Before you run the pipeline, please make sure that you have installed and python3, R and all the ten packages: Cell2location(Version 0.6a0), RCTD(Version 1.2.0), SpatialDWLS(by Giotto of Version 1.0.4), Stereoscope(within the scvi-tools Version 0.11.0), SPOTlight(Version 0.1.7), Tangram(Version 1.0.0), Seurat(Version 4.0.5), STRIDE(Version 0.0.1b), DestVI(scvi-tools Version 0.11.0), DSTG(Version 0.0.1)

The package has been tested on Linux system (CentOS) and should work in any valid python environment.

Tutorial

If you want to analysis your own data, the doc/Tutorial.ipynb is an example showing how to use them to predict new spatial gene patterns and cell locations.

You also can run the jupyter notebook of BLAST_GenePrediction.ipynb and BLAST_CelltypeDeconvolution.ipynb to reproduce the results of figure2&4 in our paper.

For more details, please see the SpatialGenes.py & Deconvolution.py in Benchmarking directory.

Datasets

All datasets used are publicly available data, for convenience datasets can be downloaded from: https://drive.google.com/drive/folders/1pHmE9cg_tMcouV1LFJFtbyBJNp7oQo9J?usp=sharing.

For citation and further information please refer to: Li, B., Zhang, W., Guo, C. et al. Benchmarking spatial and single-cell transcriptomics integration methods for transcript distribution prediction and cell type deconvolution. Nat Methods (2022). https://doi.org/10.1038/s41592-022-01480-9.

spatialbenchmarking's People

Contributors

wenruyustc avatar jefferyustc avatar qukunlab avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.