Build index files
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
Genome (FASTA) and annotation (GTF/GFF) files are needed to build index files for read alignment during SAW count run. Development teams from the STOmics and Intel made great efforts to reconstruct the structure of the index files, in order to enhance the efficiency of read searches and alignments.
Build transcriptome reference indexes for STAR alignment.
cd /saw/datasets/reference
saw makeRef \
--mode=STAR \
--fasta=/path/to/FASTA \
--gtf=/path/to/GTF/or/GFF \
--genome=./transcriptomeAfter 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,a checked annotation file in
./transcriptome/genes,STAR index files optimized by STOmics Tech in
./transcriptome/STAR.
From SAW 8.2, checkGTF will be automatically performed when using makeRef to build STAR index files. To ensure that the output GTF/GFF under ./transcriptome/genes has been format-checked and meets the requirements for read annotation of SAW count. If there is an issue with the input GTF/GFF file, please modify it according to the processing log of checkGTF.
What warrants special attention is that several parameters have been enhanced with richer function by the STOmics R&D team for usability and analysis.
--fastaaccepts one or more FASTA genome files and merge all input files.--rRNA-fastaaccepts rRNA information and add it to the basic genome of--fasta.--gtfaccepts GTF/GFF annotation file and call checkGTF module to check the file format.--genomeis required to construct a SAW-compatible reference folder. Please give a non-existent folder name to the parameter.
Please note that these four parameters should only be input in SAW format, not through --params-config.
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 after redundancy removal.
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.
Special settings
If you are working with specific genome datasets, such as exceptionally large genomes, the default settings may lead to task failures. Or the default parameter settings of makeRef may be insufficient for further analysis when processing small genomic fragments or long intronic regions.
--params-config will help a lot for more detailed parameter adjustments. Simply enter the original arguments from STAR as a plain string.
For instance, when it comes to a genome containing an excessive number of chromosomes/scaffolds (e.g., exceeding 5,000), computing memory may be insufficient during the construction of the reference genome. To reduce RAM consumption, you can set
--genomeChrBinNbits= min(18,log2[max(GenomeLength/number of references, ReadLength)]).
If the reference genome has a size of 14 GB and contains 90,000 chromosomes or scaffolds, calculate the value of --genomeChrBinNbitsusing the formula mentioned above. In this scenario, it is advisable to set the parameter value to 17.
For more information on index building parameters for specific genomes, please refer to the STAR User Manual.
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.
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:
SAW makeRef provides simple and essential parameters from the bowtie2-build indexer, for basic microorganism analysis in SAW count.
Three ways to realize the full functionality of Bowtie2.
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:
SAW makeRef provides simple and essential parameters, for basic microorganism analysis in SAW count.
Two ways to realize the full functionality of Kraken2.
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.
Last updated