Preparation of reference
SAW provides two complementary pipelines, SAW makeRef and SAW checkGTF, for genome reference and annotation files.
Before running SAW count, one or more reference index files should be built in advance.
SAW makeRef
A complementary tool for genome reference builds index files needed by SAW count pipeline.
Because of the multiple uses of makeRef for three bioinformatical tools, --mode decides which one works.
STOmics R&D has pre-built reference genome index files that can be used directly. Download the references you need from Download Center.
Transcriptome
For STAR
Annotation (GTF/GFF) and genome (FASTA) files are needed to build index files for read alignment during SAW count run.
cd /saw/datasets/reference
saw makeRef \
--mode=STAR \
--fasta=/path/to/FASTA1 \
--gtf=/path/to/GTF/or/GFF \
--genome=./transcriptomeGive a non-existent folder name to --genome parameter.
After running the command lines, a standard, SAW-compatible directory structure is automatically generated. The output folder, named according to --genome, includes all input FASTAs in ./transcriptome/fasta, an annotation file in ./transcriptome/genes, and STAR index files optimized by STOmics Tech in ./transcriptome/STAR.
With rRNA
If you plan to remove rRNA fragments during SAW analysis, use --rRNA-FASTA to mark the input rRNA information specifically, which will be added to --fasta.
Key steps of the processing:
Step 1: given the rRNA fragments of --rRNA-fasta are short and highly repetitive so that the pipeline will remove their redundancy first.
Step 2: add rRNA information to --fasta file(s), with the suffix '_rRNA' on the chromosome, like '1_rRNA', to distinguish rRNA ones from the basic genome.
Step 3: build index files using the genome integrated with de-duplicated rRNA information.
Also, the output is similar to the last one.
Simple use
Because of the organized output directory, set the --reference for SAW count like this:
Microorganism
Microorganism analysis is now supported during SAW count of FFPE tissue samples! If you focus on the microbes of your FFPE analysis, --microorganism-detect and --ref-libraries should be used together when running SAW count.
But before starting the pipeline, related index files should be built respectively, STAR for host transcriptome alignment, Bowtie2 for de-host alignment, and Kraken2 for a taxonomic classification of microbes.
For Bowtie2
In SAW count, microorganism analysis requires removing the host information from the unmapped reads. Bowtie2 plays an important role in the removal.
The unmapped reads, from the --unmapped-reads of SAW countare input for de-host alignment.
After running the command lines, the output directory includes such files:
More about parameter setting CSV.
For Kraken2
Kraken2 is specifically designed for the taxonomic classification of metagenomic sequences. In SAW count, microorganism analysis uses Kraken2 to quickly and accurately identify the microorganisms present in environmental samples or from complex microbial communities. Download the databases from Kraken2 database website.
There is no need to input --genomefor Kraken2 index files, modifications and additions happen under the database folder.
Before building a customed database (Step 2), you should install a ./taxonomy/ under the database folder, which can be obtained from NCBI/Taxonomy.
After running the command lines, the output directory includes such files:
More about parameter setting CSV.
Reference libraries
After the construction of index files for STAR, Bowtie2 and Kraken2, a CSV of --ref-libraries can be built to combine all needed references for microorganism analysis.
--ref-libraries is not compatible with --reference.
SAW checkGTF
Annotation files in the standard format can be accepted by SAW count. The verification will be performed automatically before read alignment in SAW count. In addition to the usual format check, the extraction of specific annotations is also implemented.
SAW accepts the annotation files suffix withgtf/gtf.gz, gff/gff.gz, gff3/gff3.gz.
If the file has the following formatting issues, which are common errors in annotation files, SAW checkGTF will fulfill the correction, to ensure the file can be used properly.
In the seventh column indicating the sense and antisense strands, "-" and "_" symbols are mistakenly mixed.
Check each row of the annotation file and correct the error symbol "_" to "-".
Any of "transcript_id", "transcription_name", "gene_id", "gene_name" is missed in GTF.
For each row, use the existing information of ID and name to fill in the missing items.
Part of gene or transcript rows are absent in GTF.
According to the attributes of exon rows, including gene, transcript, id and name, add the missing gene and transcript rows to the file.
Part of mRNA rows lack parent information in GFF.
Use the parent information of the previous neighboring record to fill in the missing one.
A simple check runs as:
If you want to extract specific annotations, like gene_biotype:protein_coding or gene_biotype:lincRNA, run as:
If --attribute works, SAW checkGTF will extract specific annotation records but not perform a format check.
Protein panels
Choose one appropriate panel depending on the organism. The protein panel is required in PID mapping.
mouse
8745033762db89d5a4096232e54e6521
TotalSeq-A™ Mouse Universal Cocktail, V1.0 (Cat. No. 199901)
human
64a20baa464ba38aa1f7f93286b18bed
TotalSeq-A™ Human Universal Cocktail, V1.0 (Cat. No. 399907)
*Know more details according to Cocktail information.
The panel specifies antibodies used in the Stereo-seq proteo-transcriptome co-detection experiment. Each column is separated by Tab. The table displays column description in the panel:
PIDIndex
Required. Protein index. Only accepts integer numbers and ensures each is unique.
PIDSequence
Required. Protein reference sequence in 15bp.
PIDName
Required. Only accepts letters [a-zA-Z], digits [0-9], and 4 symbols ["(", ")", "-", "_"].
GeneName
Required. Coding gene(s) of the corresponding protein. Multiple coding genes are separated by "/". If you don't know, please fill in None.
GeneID
Required. Coding gene(s) Ensembl ID. Multiple IDs are separated by "/". If you don't know, please fill in None.
Reference libraries
a CSV of --ref-libraries can be built to combine the protein panel and Transcriptome STAR reference.
This CSV of--ref-libraries is required in SAW count analysis for Stereo-CITE solution.
Last updated