Stereo-seq FFPE
This tutorial will show you how to run SAW count on the Stereo-seq chip derived from a formalin-fixed paraffin-embedded (FFPE) mouse brain.
Prerequisites
To run SAW count pipeline smoothly, you should:
Be acquainted with the Linux system.
Be familiar with running command line tools.
Ensure access to a system that meets the minimum system requirements.
Adequate storage and sufficient permissions should be paid more attention to, before running pipelines.
Overview of SAW count pipeline
Stereo-seq sequencing data from FFPE tissues is analyzed with SAW count.
The pipeline typically commences with:
a chip mask file (recording CIDs on the Stereo-seq chip),
FASTQ files (from Stereo-seq sequencing),
a reference (chosen by the organism),
one or more microscope images (TIFF or image
.tar.gzfrom StereoMap).
The compressed image .tar.gz file, from StereoMap, saves the original microscope images and the QC information.

Output results mainly include:
BAMs of alignment and annotation,
processed images,
gene expression matrices at different dimensions,
clustering and differential expression analysis,
an integrated
visualization.tar.gzfor StereoMap.
Demo data
Demo data of the mouse brain from Stereo-seq Chip N is provided in this tutorial.
Key features of demo - C04144D5:
Chip size: 1cm * 1cm (S1)
Bin1: 500nm * 500nm
Tissue section of 5µm thickness
ssDNA image acquired using Motic
The dataset page allows you to download the chip mask file, the raw sequencing files in FASTQ format, a TIFF image or an image tar.gz, a reference. For better organization, creating new folders for corresponding data is a wise choice.
Command lines
Set up SAW count analysis command in your working directory.
Microorganism analysis is supported during SAW count on FFPE tissue samples. --microorganism-detect and --ref-libraries are both needed to detect microbes during analysis.
--ref-librariesaccepts a CSV file which includes the index files for several bioinformatical software, STAR, Bowtie2 and Kraken2. More details about building references in the tutorial ofSAW makeRef.--ref-librariesis not compatible with--reference.
You need to estimate whether your tissue samples are suitable for detecting microorganisms, which may be relevant to the biochemical experiments conducted in the previous steps.
Brief descriptions of the mentioned parameters in command lines:
--id
(Optional, default to None) A unique task id ([a-zA-Z0-9_-]+) which will be displayed as the output folder name and the title of HTML report. If the parameter is absent, --sn will play the same role.
--sn <SN>
(Required, default to None) SN (serial number) of the Stereo-seq chip.
--omics <OMICS>
(Required, default to "transcriptomics") Omics information.
--kit-version <TEXT>
(Required, default to None) The version of the product kit. More in count pipeline introduction.
--sequencing-type <TEXT>
(Required, default to None) Sequencing type of FASTQs which is recorded in the sequencing report.
--chip-mask <MASK>
(Required, default to None) Stereo-seq chip mask file.
--organism <TEXT>
(Optional, default to None) Organism type of sample, usually referring to species.
--tissue <TEXT>
(Optional, default to None) Physiological tissue of sample.
--reference <PATH>
(Optional, default to None) Path to the reference folder, containing SAW-compatible index files and GTF/GFF, built by SAW makeRef.
--ref-libraries <CSV>
(Optional, default to None) Path to a ref_libraries.csv which declares reference indexes, built by SAW makeRef. Not compatible with --reference.
--fastqs <PATH>
(Required, default to None) Path(s) to folder(s), containing all needed FASTQs. If FASTQs are stored in multiple directories, use it as: --fastqs=/path/to/directory1,/path/to/directory2,.... Notice that all FASTQ files under these directories will be loaded for analysis.
--image <TIFF>
(Optional, default to None) TIFF image for QC (quality control), combined with expression matrix for analysis.
Name rule for input TIFF :
a. <SN>_<stain_type>.tif
b. <SN>_<stain_type>.tiff
c. <SN>_<stain_type>.TIF
d. <SN>_<stain_type>.TIFF
<stainType> includes:
a. ssDNA
b. DAPI
c. HE (referring to H&E)
d. <_IF_name1>_IF, <IF_name2>_IF, ...
--image-tar <TAR>
(Optional, default to None) The compressed image .tar.gz file from StereoMap has been through prepositive QC (quality control).
--microorganism-detect
(Optional, default to None) Whether to perform analysis related to microorganisms. Notice that the detection only works for FFPE assay currently.
Run SAW count
Set up SAW count analysis command in your working directory.
If you input a or certain images in TIFF, the prefixes of the file names should be:
<SN>_<stainType>_*.tif
e.g.:
C04144D5_ssDNA.tif
SS200000135TL_D1_DAPI.tif
C02533C1_HE.tif (HE refers to H&E-stained)
Explore the output structure
After pipeline analysis is completed, a new folder named Demo_Mouse_Brain (which is provided by --id, or by --sn in the absence of --id) will appear in your working directory.
All the metadata and outputs generated from SAW count are listed below:

If you want to dig deeper into the results,
Jump to the
report.htmlinside<SN>.report.tar.gz.Explore the
visualization.tar.gzin StereoMap.Learn more about the individual files on the Outputs page.
Last updated