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.
Transcriptome
For STAR
Annotation (GTF/GFF) and genome (FASTA) files are needed to build index files for read alignment during SAW count
run.
Give 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
.
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.
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 --genome
for 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.
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.
Last updated