600 likes | 613 Views
Canadian Bioinformatics Workshops. www.bioinformatics.ca. Module #: Title of Module. 2. Module 3 Mapping and Genome Rearrangement. Jared Simpson, Ph.D. Bioinformatics for Cancer Genomics May 25-29, 2015. Paired-end Reads. DNA fragment. ATCAA. CTAAG. Learning Objectives of Module.
E N D
Canadian Bioinformatics Workshops www.bioinformatics.ca
Module 3 Mapping and Genome Rearrangement Jared Simpson, Ph.D. Bioinformatics for Cancer Genomics May 25-29, 2015 Paired-end Reads DNA fragment ATCAA CTAAG
Learning Objectives of Module • Understand mapping reads to a reference genome • Understand FASTQ and SAM/BAM file formats • Learn common terminology used to describe alignments • Learn how to find genome rearrangements using read pairs • Run a mapper and rearrangement caller
Sequencing platforms 14TB/run $ 600Gb/10d 100Gb/15d 120Gb/1d 90Gb/10d Increasing Data Per Run 150Mb/3h 2Gb/27h 700Mb/23h $ 100Mb/1h Increasing Run Time
Basecalling • Translation of image data to base calls
What is a base quality score? • Phred quality scores: • Estimate of probability the base call is incorrect
Error Profiles • Illumina • Low error rate (~0.5%), mainly substitutions • 454/Ion Torrent • Mainly insertions/deletions in homopolymer runs • Pacbio • Higher error rate, mixture of insertions, deletions, substitutions
FASTQ files reads.fastq Read ID
FASTQ files reads.fastq Sequence
FASTQ files reads.fastq Quality ID
FASTQ files reads.fastq Quality
Reference Mapping Goal: find out where in the genome the read came from Issues: the human genome is large and repetitive NGS instruments produce huge amounts of data the sequenced genome will differ from the reference due to SNPs, indels and structural variation
Choosing a Mapper Needs to be accurate Misaligned reads are a source of false positive variant calls Needs to be sensitive Must allow for differences between the individual and reference Needs to be fast Informatics cost of NGS analysis is significant
Reference Mapping Reference genome Sequence read ?
Reference Mapping Reference genome x x x Sequence read
Mapping Quality • Phred-scaled estimate of the probability that the chosen mapping is wrong • 1 in 1000 reads with “Q30” alignment will be placed incorrectly • What makes accurate mapping difficult? • Short reads • High error rate • Repetitive sequence
What are Paired Reads? Paired-end Reads DNA fragment ATCAAGA CTACATG Insert size (IS) Slides by M. Brudno
Paired Reads Reference genome ? Sequence read pair
Paired Mapping Reference genome x x Sequence read pair
Paired Mapping Reference genome x x x x x x x x Sequence read pair
Sequence Alignment/Map Format • SAM/BAM is the standardized format for working with alignments • SAM is tab-delimited text representation • BAM is a compressed binary representation SRR013667.1 99 19 8882171 60 76M = 8882214 119 NCCAGCAGCCATAACTGGAATGGGAAATAAACACTATGTTCAAAGCAGAGAAAATAGGAGTGTGCAATAGACTTAT #>A@BABAAAAADDEGCEFDHDEDBCFDBCDBCBDCEACB>AC@CDB@>>CB?>BA:D?9>8AB685C26091:77
SAM Format SRR013667.1 99 19 8882171 60 76M = 8882214 119 NCCAGCAGCCATAACTGGAATGGGAAATAAACACTATGTTCAAAGCAGAGAAAATAGGAGTGTGCAATAGACTTAT #>A@BABAAAAADDEGCEFDHDEDBCFDBCDBCBDCEACB>AC@CDB@>>CB?>BA:D?9>8AB685C26091:77 Flag Read ID • Flag indicates the reference strand, pairing information
SAM Description SRR013667.1 99 19 8882171 60 76M = 8882214 119 NCCAGCAGCCATAACTGGAATGGGAAATAAACACTATGTTCAAAGCAGAGAAAATAGGAGTGTGCAATAGACTTAT #>A@BABAAAAADDEGCEFDHDEDBCFDBCDBCBDCEACB>AC@CDB@>>CB?>BA:D?9>8AB685C26091:77 Chromosome Position
SAM Description SRR013667.1 99 19 8882171 60 76M = 8882214 119 NCCAGCAGCCATAACTGGAATGGGAAATAAACACTATGTTCAAAGCAGAGAAAATAGGAGTGTGCAATAGACTTAT #>A@BABAAAAADDEGCEFDHDEDBCFDBCDBCBDCEACB>AC@CDB@>>CB?>BA:D?9>8AB685C26091:77 Mapping Quality
SAM Description SRR013667.1 99 19 8882171 60 76M = 8882214 119 NCCAGCAGCCATAACTGGAATGGGAAATAAACACTATGTTCAAAGCAGAGAAAATAGGAGTGTGCAATAGACTTAT #>A@BABAAAAADDEGCEFDHDEDBCFDBCDBCBDCEACB>AC@CDB@>>CB?>BA:D?9>8AB685C26091:77 CIGAR Ref ACGATACATAC Ref GACA-AACC Read ACGA-ACATAC Read GTCATAACC CIGAR: 4M1D6M CIGAR: 4M1I4M
SAM Description Mate chromosome, position Insert size SRR013667.1 99 19 8882171 60 76M = 8882214 119 NCCAGCAGCCATAACTGGAATGGGAAATAAACACTATGTTCAAAGCAGAGAAAATAGGAGTGTGCAATAGACTTAT #>A@BABAAAAADDEGCEFDHDEDBCFDBCDBCBDCEACB>AC@CDB@>>CB?>BA:D?9>8AB685C26091:77 ATCAA CTAAG Insert size (IS)
Resources samtools: toolkit for working with SAM/BAM files Convert between SAM/BAM Sort alignments Extract alignments for a given genomic location SAM/BAM specification: http://samtools.sourceforge.net/SAM1.pdf Questions/Help https://lists.sourceforge.net/lists/listinfo/samtools-help http://www.biostars.org/ http://seqanswers.com/
Canadian Bioinformatics Workshops www.bioinformatics.ca
Module 3 Mapping and Genome Rearrangement Jared Simpson, Ph.D. Bioinformatics for Cancer Genomics May 25-29, 2015 Paired-end Reads DNA fragment ATCAA CTAAG
What kinds of variation is there? Single Nucleotide Variants (SNVs) Short indels (<read length) Structural variations Large insertions and deletions Inversions Translocations Copy number variation
Structural variants Mate-pair and paired-end reads can be used to detect structural variants Genomic DNA Paired-Ends 200 – 500bp Fragmentation Add amplification and sequencing adaptors Sequence
Structural variants Mate-pair and paired-end reads can be used to detect structural variants Genomic DNA Mate-Pairs Fragmentation & circularization to an internal adaptor 1 - 20kb Shear Isolate internal adaptors and fragment ends Add amplification and sequencing adaptors Sequence
Read pair orientation Reference genome Sequence read pair • The expected orientation is one read on the forward strand and one read on the reverse strand for paired-end reads
Read pair alignment Fragment number • Fragment/insert size is determined by library preparation • Pairs that match the expected orientation and distance are called concordant • Discordant read pairs give evidence of structural variation Fragment size
SV Signatures: Deletion don ref Slides by M. Brudno
SV Signatures: Deletion don ref Deletion signature: mapped insert size larger than expected Slides by M. Brudno
SV Signatures: Insertion don ref Insertion signature: mapped insert size smaller than expected Slides by M. Brudno
SV Signatures: Tandem Duplication don ref Tandem duplication signature: wrong orientation