Git Product home page Git Product logo

isb24-spatial-omics's Introduction

2024_ISB_workshop_Practical_Methods_in_Spatial-Omics

02/12/2024
For the code and demo data, please find the detials https://drive.google.com/drive/folders/1x8Ym5IOerBxhVefHORomx3pDuZUzNrf4?usp=sharing.
Copy the files to your own directory should work more smoothly because it might not involve the write permission to my Google Drive folder.

Spatial folder generation

Software

AtlasXomics Browser https://docs.atlasxomics.com/projects/AtlasXbrowser/en/latest/Overview.html

Manual selection using Adobe Illustrator and python

Credit to Dr. Yanxiang Deng: Jupyter notebook code https://github.com/dyxmvp/Spatial_ATAC-seq
Step-by-step instructions and demo files under 'Spatial_folder_generation' folder

  1. Overlay chip A and chip B scan in Adobe Illustrator and find the ROI;
  2. Draw any shape on each pixel and make sure not changing any property when dupicate it;
  3. Select the spots on tissue and change only one property of the object;
  4. Save the file at .svg file and make sure only spots info is kept.
  5. Save the ROI crop as tissue_lowres_image.png
  6. Run the jupyter notebook code to generate the spatial folder compatible with seurat and scanpy, etc

Spatial RNA-Seq

Credit to Dr. Mingyu Yang, https://github.com/MingyuYang-Yale/BENG469/tree/main/FA23/Lab7-Spatial%20transcriptomics/2023-11-02

Install Stpipeline and pre-process the data

module load miniconda
conda create -y -n st-pipeline python=3.7 Numpy Cython
conda activate st-pipeline
conda install -y -c bioconda star samtools
pip install 'pysam==0.15.4' taggd stpipeline

Test whether ST pipeline is installed successfully

st_pipeline_run.py -h

foo bar

STAR reference build and reformat the rawdata

Please refer to https://github.com/Shuozhen/DBiT-Notes/blob/main/README.md for details.

Run the ST pipeline

sbatch stpipeline.sh

Downstream

We can use Seurat, Scanpy, Squidpy, spatialDE, SpatialGLUE, NICHES, etc. to run the downstream analysis.

Spatial ATAC-Seq

Using Cellranger to preprocess the raw data.
Credit to Dr. Di Zhang, Xing Lou

foo bar

Dependiencies

Run the pipeline

  1. Replace the cellranger-atac-cs/1.2.0/lib/python/barcodes/737K-cratac-v1.txt with the new barcodes file in this fold.
  2. Configure Snakefile
  3. Configure cluster.json
  4. Configure Snakemake.sh
  5. Reformat raw Fastq file to Cell Ranger ATAC format (10x Genomics) Raw read 1 -> New Read 1 + New Read 2
  • New Read 1: contains the genome sequences
  • New Read 2: contains the spatial Barcode A and Barcode B Raw read 2 -> New Read 3
  1. Reformatting raw data was implemented by BC_process.py in the Data_preprocessing folder.
    Sequence alignment and generation of fragments file
    The reformated data was processed using Cell Ranger ATAC v1.2 with following references:
    Mouse reference (mm10):
    curl -O https://cf.10xgenomics.com/supp/cell-atac/refdata-cellranger-atac-mm10-1.2.0.tar.gz

Human reference (GRCh38):

    curl -O https://cf.10xgenomics.com/supp/cell-atac/refdata-cellranger-atac-GRCh38-1.2.0.tar.gz

A preprocessing pipeline we developed using Snakemake workflow management system is in the Data_preprocessing folder. To run the pipeline, use the command:

    sbatch Snakemake.sh

Downstream

We can use ArchR, Signac, Scanpy, Squidpy, SpatialGLUE, etc. to run the downstream analysis.

Spatial RNA-ATAC-Seq

Credit to Yao Lu

  1. From the fragments file of ATAC-seq, generate the peak matrix using SnapATAC2
  2. From the expression matrix of RNA-seq, generate the gene expression matrix using spatialGLUE or scanpy.
  3. Use spatialGLUE to analyze both modalities together following the script.

isb24-spatial-omics's People

Contributors

shuozhen 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.