SSAHA2 Manual. September 1, 2010 Version 0.3

Similar documents
SMALT Manual. December 9, 2010 Version 0.4.2

Welcome to MAPHiTS (Mapping Analysis Pipeline for High-Throughput Sequences) tutorial page.

INTRODUCTION AUX FORMATS DE FICHIERS

NGS Data and Sequence Alignment

Atlas-SNP2 DOCUMENTATION V1.1 April 26, 2010

High-throughput sequencing: Alignment and related topic. Simon Anders EMBL Heidelberg

Sequencing. Short Read Alignment. Sequencing. Paired-End Sequencing 6/10/2010. Tobias Rausch 7 th June 2010 WGS. ChIP-Seq. Applied Biosystems.

Lecture 12. Short read aligners

High-throughput sequencing: Alignment and related topic. Simon Anders EMBL Heidelberg

Running SNAP. The SNAP Team October 2012

Running SNAP. The SNAP Team February 2012

Sequence mapping and assembly. Alistair Ward - Boston College

BLAST & Genome assembly

Under the Hood of Alignment Algorithms for NGS Researchers

Next Generation Sequence Alignment on the BRC Cluster. Steve Newhouse 22 July 2010

BLAST & Genome assembly

ASAP - Allele-specific alignment pipeline

SAM / BAM Tutorial. EMBL Heidelberg. Course Materials. Tobias Rausch September 2012

File Formats: SAM, BAM, and CRAM. UCD Genome Center Bioinformatics Core Tuesday 15 September 2015

Package Rbowtie. January 21, 2019

Omega: an Overlap-graph de novo Assembler for Metagenomics

Read Naming Format Specification

Dindel User Guide, version 1.0

Omixon PreciseAlign CLC Genomics Workbench plug-in

Package Rsubread. July 21, 2013

Bioinformatics in next generation sequencing projects

SAM : Sequence Alignment/Map format. A TAB-delimited text format storing the alignment information. A header section is optional.

Comparison between conventional read mapping methods and compressively-accelerated read mapping framework (CORA).

Genome 373: Mapping Short Sequence Reads I. Doug Fowler

Genome Assembly Using de Bruijn Graphs. Biostatistics 666

RNA-Seq in Galaxy: Tuxedo protocol. Igor Makunin, UQ RCC, QCIF

USING BRAT-BW Table 1. Feature comparison of BRAT-bw, BRAT-large, Bismark and BS Seeker (as of on March, 2012)

24 Grundlagen der Bioinformatik, SS 10, D. Huson, April 26, This lecture is based on the following papers, which are all recommended reading:

1. Download the data from ENA and QC it:

Galaxy Platform For NGS Data Analyses

Pre-processing and quality control of sequence data. Barbera van Schaik KEBB - Bioinformatics Laboratory

GSNAP: Fast and SNP-tolerant detection of complex variants and splicing in short reads by Thomas D. Wu and Serban Nacu

MIRING: Minimum Information for Reporting Immunogenomic NGS Genotyping. Data Standards Hackathon for NGS HACKATHON 1.0 Bethesda, MD September

Short Read Alignment. Mapping Reads to a Reference

MOSAIK Documentation. 1. Introduction What makes MOSAIK different? Overview Contact Information 2

Bismark Bisulfite Mapper User Guide - v0.7.3

Performance analysis of parallel de novo genome assembly in shared memory system

Database Searching Using BLAST

Genomic Files. University of Massachusetts Medical School. October, 2014

SlopMap: a software application tool for quick and flexible identification of similar sequences using exact k-mer matching

Alignment of Long Sequences

Using Galaxy for NGS Analyses Luce Skrabanek

NGS Data Analysis. Roberto Preste

NextGenMap and the impact of hhighly polymorphic regions. Arndt von Haeseler

MinHash Alignment Process (MHAP) Documentation

de novo assembly Simon Rasmussen 36626: Next Generation Sequencing analysis DTU Bioinformatics Next Generation Sequencing Analysis

As of August 15, 2008, GenBank contained bases from reported sequences. The search procedure should be

BCRANK: predicting binding site consensus from ranked DNA sequences

NGS Data Visualization and Exploration Using IGV

Meraculous De Novo Assembly of the Ariolimax dolichophallus Genome. Charles Cole, Jake Houser, Kyle McGovern, and Jennie Richardson

RASER: Reads Aligner for SNPs and Editing sites of RNA (version 0.51) Manual

The software comes with 2 installers: (1) SureCall installer (2) GenAligners (contains BWA, BWA- MEM).

Mapping NGS reads for genomics studies

NGS Analyses with Galaxy

Introduction and tutorial for SOAPdenovo. Xiaodong Fang Department of Science and BGI May, 2012

The SAM Format Specification (v1.3-r837)

BFAST: An Alignment Tool for Large Scale Genome Resequencing

The SAM Format Specification (v1.3 draft)

Peter Schweitzer, Director, DNA Sequencing and Genotyping Lab

Description of a genome assembler: CABOG

RAD Population Genomics Programs Paul Hohenlohe 6/2014

Resequencing and Mapping. Andreas Gisel Inernational Institute of Tropical Agriculture (IITA) Ibadan, Nigeria

SOLiD GFF File Format

GenomeStudio Software Release Notes

Introduction to Read Alignment. UCD Genome Center Bioinformatics Core Tuesday 15 September 2015

An Introduction to Linux and Bowtie

Helpful Galaxy screencasts are available at:

Mapping Reads to Reference Genome

Genetics 211 Genomics Winter 2014 Problem Set 4

Minimum Information for Reporting Immunogenomic NGS Genotyping (MIRING)

Genomic Files. University of Massachusetts Medical School. October, 2015

NA12878 Platinum Genome GENALICE MAP Analysis Report

Bioinformatics for High-throughput Sequencing

REPORT. NA12878 Platinum Genome. GENALICE MAP Analysis Report. Bas Tolhuis, PhD GENALICE B.V.

Long Read RNA-seq Mapper

Masher: Mapping Long(er) Reads with Hash-based Genome Indexing on GPUs

Tablet Documentation. Release Information Computational Sciences, The James Hutton Institute

Using Pipeline Output Data for Whole Genome Alignment

MiSeq Reporter TruSight Tumor 15 Workflow Guide

1 Abstract. 2 Introduction. 3 Requirements

Mapping reads to a reference genome

Biology 644: Bioinformatics

Next generation sequencing: assembly by mapping reads. Laurent Falquet, Vital-IT Helsinki, June 3, 2010

Bioinformatics. Anatomy of a Hash-based Long Read Sequence Mapping Algorithm for Next Generation DNA Sequencing

Rsubread package: high-performance read alignment, quantification and mutation discovery

Sequence comparison: Local alignment

An Analysis of Pairwise Sequence Alignment Algorithm Complexities: Needleman-Wunsch, Smith-Waterman, FASTA, BLAST and Gapped BLAST

Understanding and Pre-processing Raw Illumina Data

NGSEP plugin manual. Daniel Felipe Cruz Juan Fernando De la Hoz Claudia Samantha Perea

Overview and Implementation of the GBS Pipeline. Qi Sun Computational Biology Service Unit Cornell University

Illumina Next Generation Sequencing Data analysis

1. mirmod (Version: 0.3)

freebayes in depth: model, filtering, and walkthrough Erik Garrison Wellcome Trust Sanger of Iowa May 19, 2015

Sep. Guide. Edico Genome Corp North Torrey Pines Court, Plaza Level, La Jolla, CA 92037

BIOINFORMATICS APPLICATIONS NOTE

Transcription:

SSAHA2 Manual September 1, 2010 Version 0.3 Abstract SSAHA2 maps DNA sequencing reads onto a genomic reference sequence using a combination of word hashing and dynamic programming. Reads from most types of sequencing platforms are supported including paired-end sequencing reads. The package consists of two separate executables for building the hash index and read mapping. A third executable is included for SNP (Single Nucleotide Polymorphism) calling from Sanger capillary reads. A genotype call of the consensus sequence can be produced using the ssaha pileup package which is distributed separately. 1 Synopsis ssaha2build [-rtype platform] [-kmer wordlen] [-skip stepsiz] -save HASH- NAME SUBJECT-FILE ssaha2 [-rtype platform] [-kmer wordlen] [-skip stepsiz] [MAPPING- OPTIONS] -save HASH-NAME QUERY-FILE [MATE-FILE] ssaha2 [-rtype platform] [-kmer wordlen] [-skip stepsiz] [MAPPING- OPTIONS] SUBJECT-FILE QUERY-FILE [MATE-FILE] ssahasnp [-rtype platform] [-kmer wordlen] [-skip stepsiz] [MAPPING- OPTIONS] [SNP-OPTIONS] -save HASH-NAME QUERY-FILE ssahasnp [-rtype platform] [-kmer wordlen] [-skip stepsiz] [MAPPING- OPTIONS] [SNP-OPTIONS] SUBJECT-FILE QUERY-FILE 2 Description ssaha2 uses a hash table of words of fixed length wordlen sampled along the genomic reference sequence at equidistant steps of stepsiz nucleotide letters. The input file SUBJECT-FILE contains the genomic reference sequences in FASTA format. The sequencing reads in the FASTQ file QUERY-FILE are SSAHA2 (1) 1 Version: 0.3, September 1, 2010

3 OPTIONS then mapped against the genomic reference sequences one-by-one. First, exactly matching seeds are identified in the reference sequences by looking up the k-mer words of the read in the hash table. Based on the number of k-mer word seeds, segment pairs are selected that potentially match. These candidate pairs are then aligned using a banded Smith-Waterman algorithm. ssaha2build builds a hash table for genomic sequences stored in the file SUBJECT- FILE in FASTA format and saves the table to the disk. Five files are created all beginning with HASH-NAME followed by the extensions *.base, *.body, *.head, *.name and *.size. ssaha2 maps the reads in the FASTQ file QUERY-FILE against the reference sequences. A pre-computed hash table can be read from disk with the - save HASH-NAME option. Without this option the hash table is created on-the-fly. ssaha2snp is a polymorphism detection tool. It detects homozygous SNPs and indels by aligning shotgun reads to the finished genome sequence. From the best alignment, SNP candidates are screened, taking into account the quality value of the bases with variation as well as the quality values in the neighbouring bases, using neighbourhood quality standard (NQS). 3 Options 3.1 GENERAL OPTIONS -h, -help Print on-line help. -v, -version Print version information. -c, -cookbook Print command line examples for common tasks. -rtype readtyp Tune command line parameters for reads from particular sequencing platforms (see SEQUENCING PLATFORMS below). Those settings are overwritten by options explicitly specified on the command line. readtyp an be one of 3 strings solexa, 454 and abi. Example: -rtype 454 implies -skip 3 which can be overwritten with the options -rtype 454 -skip 4. -kmer wordlen Sets the length of the hashed words wordlen <= 15. -skip stepsiz Sets the number of nucleotide letters between the starting letter of successive words. I.e. With the option -skip 1 every word is hashed, with -skip 2 every second word, with -skip 3 very third etc. -save HASH-NAME Specifies the root name of the hash table files (see FILES below). SSAHA2 (1) 2 Version: 0.3, September 1, 2010

3.2 MAPPING OPTIONS 3 OPTIONS 3.2 MAPPING OPTIONS 3.2.1 Paired-end reads -pair lo,hi This option indicates that paired-end reads are to be mapped. The interval [lo,hi] specifies the expected range of the insert sizes. Mate pairs are classified as proper or abnormal depending on whether or not the mates are mapped at distances within the specified interval. I.e. a proper pair would have its mates mapped within hi bases from each other but at least lo bases apart (lo<=hi). This option expects first and second mates of the mate pairs in FASTA or FASTQ format in two separate input files QUERY-FILE and MATE- FILE. -mthresh mapscor Threshold in the mapping score for mate pairs to be reported if they map outside the distance range (see option -outfile). mapscor is an integer between 0 and 50 (default: 30). This option requires the -pair option to be set. -multi randseed Flag modifying the way paired-end reads with multiple (repetitive) mappings are reported. If randseed == 0: skip such pairs entirely. If randseed > 0: select one pair at random. The integer randseed seeds the random number generator. This option requires the -pair option to be set. 3.2.2 Memory The following option influence the memory footprint. -array nint Memory to be allocated for k-mer word hits as the number of 32-bit integers. The default is nint = 4,000,000. -disk dswitch This switch determines how much of the hash table is kept in memory. 0: Map all files into memory including the set of query sequences in file QUERY-FILE (and, with the option -pair, also MATE-FILE). 1: Only the head of the hash table (hash index) is kept in memory. The hash table body, the genomic reference sequences and query sequences are left on disk. 2: Like 1 but subject sequences are kept in memory along with the hash index. -memory memsiz Memory to be allocated for the alignment matrix in Megabytes. Default is memsiz = 200. 3.2.3 Segment filtering Options concerning the selection of segment pairs to be passed on to the dynamic programming step. SSAHA2 (1) 3 Version: 0.3, September 1, 2010

3.2 MAPPING OPTIONS 3 OPTIONS -cut num Seeds with more than num hits in the hash table are ignored. -depth nseg At most the nseg segment pairs with the highest number of seeds are passed on to the dynamic programming step. -seeds seednum Segment pairs with a number of seeds below seednum are filtered out and not passed on to the dynamic programming step. -weight w w is an integer representing a weighting factor for rare k-mer words. The default is w = 0 (no weighting). 3.2.4 Smith-Waterman alignment The following options influence the dynamic programming step. Segment pairs are seeded before alignment in order to determine the alignment band. -ckmer idxlen Specifies the size of the hash index as the length of the indexed part of the seed. -cmatch matchlen Sets the seed length (matchlen >= idxlen, see (see option -ckmer idxlen). 3.2.5 Output filtering The following options influence how many of the alignments are reported. -best bval If bval == 1 report only the best (by Smith-Waterman score) mapping for each read. If there are multiple best mappings with the same Smith-Waterman score, report them all. If set to a negative value bval = -b, report alignments only if there are at most b best mappings. This option has no effect if paired-end reads are mapped (with the option -pair ). -diff swscor Only report mappings with Smith-Waterman scores within swscor of the best mapping. -udiff uswscor Do not report the best (by Smith-Waterman score) alignment if the second best alignment is within uswscor of the best. -identity seqid Report only mappings with a pairwise sequence identity of at least seqid. Other mappings are skipped. seqid specified the pairwise sequence identity as a percentage of the alignment length. -score swatscor Report only mappings with a Smith-Waterman score of at least swatscor. Mappings with lower scores are not reported. 3.2.6 Output formats -output format Sets the format in which the mappings are reported. ssaha2 writes the mappings to standard output except when the -outfile filename option is specified. Supported output formats are all ASCII text based. For a detailed description of output formats see SSAHA2 (1) 4 Version: 0.3, September 1, 2010

3.3 SNP OPTIONS 3 OPTIONS http://www.sanger.ac.uk/software/analysis/ssaha2/formats.shtml. format can be one of the following strings: aln Tony Cox alignment output format. cigar Compact Idiosyncratic Gapped Alignment Report. gff http://www.sanger.ac.uk/software/formats/gff/ psl Tab delimited format similar to BLT http://genome.ucsc.edu/goldenpath/help/customtrack.html pslx psl format complemented with sequence output. sam SAM format http://samtools.sourceforge.net. With the -outfile filename option SAM output is written to the file filename. Only the aligned segment of the reads sequence is reported (hard clipping). sam soft SAM format using soft clipping. The sequence of the entire read is output. ssaha2 ssaha2 native output format (default). sugar Simple UnGapped Alignment Report. vulgar Verbose Useful Labelled Gapped Alignment Report -output ssaha2 cigar Alternates between ssaha2 and cigar format lines. -outfile filename This option is used in connection with the SAM output format (options -output sam and -output sam soft) or when paired-end reads are mapped (option -pair lo,hi). For all output formats except the SAM format mate-pairs mapped at distances in the interval [lo,hi] (i.e. proper pairs) are reported to standard output. Mate pairs mapped outside the interval are written to the file filename or, if the option -outfile filename is not given, are suppressed. For SAM format all mappings are either written to the file filename or to standard output (if the option -outfile filename is not specified). -tags 0 1 If this flag is set (1) output lines reporting a mapping are preceded by a keyword or tag to aid parsing. The tag depends on the output format used. (Default is 1). -align 0 1 If this flag is set (1), a graphic representation of the sequence alignment is output. (default is 0). -name 0 1 Flag that modifies option -output cigar such that read name and length are also reported when there was no hit found. Default is 0. 3.3 SNP OPTIONS The following options are specific to ssahasnp SSAHA2 (1) 5 Version: 0.3, September 1, 2010

6 MEMORY REQUIREMENTS -fix 0 1 If this flag is set (1) fix -edge, -seeds, -score so that they are not updated according to read length in ssahasnp. The default is 0. -NQS 0 1 Flag indicating the use Neighborhood Quality Standard (NQS) to filter SNPs (1), otherwise output all candidates (0). The default is 1. -quality qval Sets the quality value to use for the variation base when NQS is used. The default is qval = 23. 4 Sequencing Platforms The following options tune parameters for particular sequencing platforms. -rtype platform platform can be one of the following strings: -solexa solexa Tunes for Illumina-Solexa reads. This implies the following options -kmer 13 -skip 2 -seeds 2 -score 12 -cmatch 9 -ckmer 6. If any of these implied options occur together with the option -rtype solexa on the ssaha2 command line they overwrite the implied value. I.e. -rtype solexa -kmer 11 would use 11-mer words in the hash. 454 Tunes for Roche 454 FLX reads. This implies the following options -kmer 13 -skip 3 -seeds 2 -score 30 -cmatch 10 -ckmer 6. abi Tunes for Sanger capillary reads. This is the default. tunes for Illumina-Solexa reads like -rtype solexa. -454 tunes for Roche 454 FLX like -rtype 454. 5 Files HASH-NAME.base Compressed set of reference sequences for which the hash table of k-mer words was generated. HASH-NAME.body Body of the hash table with k-mer word positions. HASH-NAME.head Head of the hash table (hash index). HASH-NAME.name Names of the reference sequences. HASH-NAME.size Lengths of the reference sequences. 6 Memory Requirements How much memory SSAHA2 occupies is determined largely by the size of the head (the actual index) and the body(the word locations) of the hash table. The size of the head depends on the length k of the hashed k-mer words and is approx. 4 (k+1) bytes. The word length is specified with the -kmer k option. SSAHA2 (1) 6 Version: 0.3, September 1, 2010

6.1 Reducing the memory requirements 7 EXAMPLES The size of the body depends on the total length N of the hashed reference sequences and the skip step s specified with the option -skip s. The body size is approx. 4*N/s bytes. For example, a hash table built for the human genome (N = 3x10 9 bases) with the options -kmer 12 -skip 2 would have a header of 67 MB and a body of 6 GB. With parameters -kmer 13 -skip 3 the header would occupy 268 MB, the body 4 GB. 6.1 Reducing the memory requirements The option -disk 1 leaves the body of the table on disk, but the program will then be slower because it has to access the disk frequently. The header is always kept in memory. 7 Examples 7.1 454 reads Map Roche-454 reads against the human genome. Assume you have a FASTA file NCBI36.fa with the chromosome sequences. Generate the hash index and store it on the disk: ssaha2build -454 -save htab NCBI36.fa This comman will requires 7.6 GB to run. It generates the hash table files hs36htab.base, hs36htab.body, hs36htab.head, hs36htab.name, hs36htab.size. 7.1.1 SAM output single reads Assuming the reads are in the FASTQ file hs454.fq run the mapper with ssaha2-454 -output sam -outfile mapped.sam -save htab hs454.fq This will write mappings to the files mapped.sam in SAM format. paired-end reads Assuming the mates of the read pairs are in the FASTQ files hs454 1.fq and hs454 2.fq. Run the mapper with the options ssaha2-454 -pair 200,3000 -output sam -outfile mapped.sam -save htab hs454_1.fq hs454_2.fq This will write mapped and unmapped reads to the files mapped.sam in SAM format. SSAHA2 (1) 7 Version: 0.3, September 1, 2010

7.2 Illumina-Solexa reads 7 EXAMPLES 7.1.2 CIGAR output For output formats other than SAM, the behaviour for the -outfile filnam flag differs. single reads The command ssaha2-454 -output cigar -save htab hs454.fq writes mappings to standard output in CIGAR format. CIGAR lines are preceded by the cigar keyword. If the -outfile option is present it is ignored. paired-end reads The command ssaha2-454 -pair 200,3000 -output cigar -save htab hs454_1.fq hs454_2.fq writes mappings for proper pairs to standard output in CIGAR format, i.e. pairs that are mapped at most 3000 but no fewer than 200 bases apart. Abnormal mappings outside that interval can be retrieved in a separate output file abnorm.cig with the command line: ssaha2-454 -pair 200,3000 -outfile abnorm.cig -output cigar -save htab hs454_1.fq hs454_2.fq 7.1.3 Reduced memory footprint Running ssaha2 with the above commands will require 5-6 GB. The memory footprint will also depend on the size of the query read file(s). To run the mapper on machines with less memory one can use the -disk 1 flag: ssaha2-454 -pair 200,3000 -output sam -outfile mapped.sam -disk 1 -save htab hs454_1.fq hs454_2.fq This will require less than 1 GB regardless of the size of the query read files hs454 1.fq,hs454 2.fq. However, the run time will be considerably slower. 7.2 Illumina-Solexa reads 7.2.1 Paired-end reads against human genome Map paired-end Illumina-Solexa reads against the human genome (in FASTA file NCBI36.fa) producing SAM output. Short reads For example, for read pairs of 2x36 bp length and mean insert size 200bp in FASTQ files hs36l200i 1.fq,hs36l200i 2.fq you might use: ssaha2build -solexa -save hs36k13s2 NCBI36.fa SSAHA2 (1) 8 Version: 0.3, September 1, 2010

7.3 Sanger capillary reads 9 LICENSE AND COPYRIGHT ssaha2 -solexa -pair 20,400 -outfile mapped.sam -output sam -save hsk13s2 hs36l_1.fq hs36l_2.fq This will write all SAM output to the file mapped.sam. Longer reads For read pairs of, say, 2x75 bp length one might be able (depending on the sensitivity required) to increase the step size and therefore speed with reduced memory demands: ssaha2build -solexa -skip 6 -save hs36k13s6 NCBI36.fa ssaha2 -solexa -skip 6 -pair 20,400 -outfile mapped.sam -output sam -save hs36k13s6 hs75l_1.fq hs75l_2.fq 7.2.2 Paired-end reads against contigs Map paired-end reads against contigs of a partial assembly in file contigs.fa with the hash index calculated on-the-fly: ssaha2 -solexa -pair 20,400 contigs.fa reads_1.fq reads_2.fq This will output mappings in the default output format, each line preceded by the keyword ALIGNMENT. 7.3 Sanger capillary reads Map single capillary reads against contigs of a partial assembly in file contigs.fa with the hash index calculated on-the-fly and PSL output format : ssaha2 -output psl contigs.fa reads.fq 8 Version Version: 0.3 of September 1, 2010. 9 License and Copyright Copyright c 1999-2009 by Genome Research Limited. All rights reserved. License Binaries compiled for a range of platforms are available free of charge from http://www.sanger.ac.uk/software/analysis/ssaha2/. If you are working in academia and require the SSAHA2 source code you first must obtain a license for phrap/cross match from Phil Green at the University of Washington http://www.phrap.org. SSAHA2 (1) 9 Version: 0.3, September 1, 2010

10 AUTHORS 10 Authors SSAHA2 was written at the Wellcome Trust Sanger Institute, Cambridge, UK, originally by Adam Spargo and Zemin Ning with contributions by James Mullikin, Tony Cox and Nikolai Ivanov. It is currently being developed by Hannes Ponstingl [hp3@sanger.ac.uk]. SSAHA2 (1) 10 Version: 0.3, September 1, 2010