Docsity

Sequence Alignments and Database Searches in Bioinformatics, Study notes of Computer Science

Toggle sidebar
bg1
1
Sequence Alignments
Sequence Alignments
and
and
Database Searches
Database Searches
Introduction to Bioinformatics
Introduction to Bioinformatics
Intro to Bioinformatics – Sequence Alignment 2
Proteins are amino acid
Proteins are amino acid polymers
polymers
Intro to Bioinformatics – Sequence Alignment 3
Messenger RNA
Messenger RNA
•Carries
instructions
for a protein
outside of the
nucleus to the
ribosome
•The ribosome
is a protein
complex that
synthesizes
new proteins
Transcription
Transcription
The Central
Dogma
DNA
transcriptiontranscription
RNA
translationtranslation
Proteins
Intro to Bioinformatics – Sequence Alignment 5
DNA Replication
DNA Replication
•Prior to cell division, all the
genetic instructions must be
“copied” so that each new cell
will have a complete set
•DNA polymerase is the enzyme
that copies DNA
• Reads the old strand in the 3´ to 5´
direction
Intro to Bioinformatics – Sequence Alignment 6
Over time, genes accumulate
Over time, genes accumulate mutations
mutations
•Environmental factors
•Radiation
•Oxidation
•Mistakes in replication or
repair
•Deletions, Duplications
•Insertions
•Inversions
•Point mutations
pf3
pf4
pf5

Partial preview of the text

Download Sequence Alignments and Database Searches in Bioinformatics and more Study notes Computer Science in PDF only on Docsity!

Sequence AlignmentsSequence Alignments

andand

Database SearchesDatabase Searches

Introduction to BioinformaticsIntroduction to Bioinformatics

Intro to Bioinformatics – Sequence Alignment 2

Proteins are amino acidProteins are amino acid polymerspolymers

Intro to Bioinformatics – Sequence Alignment 3

Messenger RNAMessenger RNA

  • Carries instructions for a protein outside of the nucleus to the ribosome
  • The ribosome is a protein complex that synthesizes new proteins

TranscriptionTranscription

The Central Dogma DNA transcriptiontranscription  RNA translationtranslation  Proteins Intro to Bioinformatics – Sequence Alignment 5

DNA ReplicationDNA Replication

  • Prior to cell division, all the genetic instructions must be “copied” so that each new cell will have a complete set
  • DNA polymerase is the enzyme that copies DNA - Reads the old strand in the 3´ to 5´ direction Intro to Bioinformatics – Sequence Alignment 6

Over time, genes accumulateOver time, genes accumulate mutationsmutations

  • Environmental factors
    • Radiation
    • Oxidation
  • Mistakes in replication or repair - Deletions, Duplications - Insertions - Inversions - Point mutations

Intro to Bioinformatics – Sequence Alignment 7

  • Codon deletion: ACG ATA GCG TAT GTA TAG CCG… - Effect depends on the protein, position, etc. - Almost always deleterious - Sometimes lethal
  • Frame shift mutation: ACG ATA GCG TAT GTA TAG CCG… ACG ATA GCG ATG TAT AGC CG?…
    • Almost always lethal

DeletionsDeletions

Intro to Bioinformatics – Sequence Alignment 8

IndelsIndels

  • Comparing two genes it is generally impossible to tell if an indel is an insertion in one gene, or a deletion in another, unless ancestry is known: ACGTCTGAT ACG CCGTATCGTCTATCT ACGTCTGAT---CCGTATCGTCTATCT Intro to Bioinformatics – Sequence Alignment 9

The Genetic CodeThe Genetic Code

SubstitutionsSubstitutions are mutations accepted by natural selection. Synonymous: CGC  CGA Non-synonymous: GAU  GAA Intro to Bioinformatics – Sequence Alignment 10

Comparing two sequencesComparing two sequences

  • Point mutations, easy: ACGTCTGAT A CGCC G TAT A GTCTATCT ACGTCTGAT T CGCC C TAT C GTCTATCT
  • Indels are difficult, must align sequences: AC G TC T GAT A CGCCG TAT AGTCTATCT CT G AT T CGC A TCGTC TAT CT ACGTCTGAT A CGCCGTAT A GTCTATCT ----CTGAT T CGC---AT C GTCTATCT Intro to Bioinformatics – Sequence Alignment 11

Why align sequences?Why align sequences?

  • The human genome, and others, are available
  • Automated gene finding is possible
  • Gene: AGTACGTATCGTATAGCGTAA
    • • (^) What does it do?What does it do?
  • One approach: Is there a similar gene in another species? - Align sequences with known genes - Find the gene with the “best” match Intro to Bioinformatics – Sequence Alignment 12

Scoring a sequence alignmentScoring a sequence alignment

  • Match score: +
  • Mismatch score: +
  • Gap penalty: – 1 ACGTCTGAT A CGCCGTAT A GTCTATCT ||||| ||| || |||||||| ----CTGAT T CGC---AT C GTCTATCT
  • Matches: 18 × (+1)
  • Mismatches: 2 × 0
  • Gaps: 7 × (– 1)

Score = +11 Score = +

Intro to Bioinformatics – Sequence Alignment 19

Needleman-Wunsch: Step 2 (contNeedleman-Wunsch: Step 2 (cont’’d)d)

  • Fill out the rest of the table likewise… a c t c g 0 - 1 - 2 - 3 - 4 - 5 a - 1 1 0 - 1 - 2 - 3 c - 2 a - 3 g - 4 t - 5 a - 6 g - 7 match = +1, mismatch = 0, gap = - Intro to Bioinformatics – Sequence Alignment 20

Needleman-Wunsch: Step 2 (contNeedleman-Wunsch: Step 2 (cont’’d)d)

  • Fill out the rest of the table likewise…
  • The optimal alignment score is calculated in the lower-right corner a c t c g 0 - 1 - 2 - 3 - 4 - 5 a - 1 1 0 - 1 - 2 - 3 c - 2 0 2 1 0 - 1 a - 3 - 1 1 2 1 0 g - 4 - 2 0 1 2 2 t - 5 - 3 - 1 1 1 2 a - 6 - 4 - 2 0 1 1 g - 7 - 5 - 3 - 1 0 2 Intro to Bioinformatics – Sequence Alignment 21 a c t c g 0 - 1 - 2 - 3 - 4 - 5 a - 1 1 0 - 1 - 2 - 3 c - 2 0 2 1 0 - 1 a - 3 - 1 1 2 1 0 g - 4 - 2 0 1 2 2 t - 5 - 3 - 1 1 1 2 a - 6 - 4 - 2 0 1 1 g - 7 - 5 - 3 - 1 0 2

But whatBut what isis the optimal alignmentthe optimal alignment

  • To reconstruct the optimal alignment, we must determine where the MAX at each step came from… Intro to Bioinformatics – Sequence Alignment 22

A path corresponds to an alignmentA path corresponds to an alignment

  • = GAP in top sequence
  • = GAP in left sequence
  • = ALIGN both positions
  • One path* from the previous table:
  • Corresponding alignment (start at the end): AC--TCG ACAGTAG Score = +
  • there can be more than one path Intro to Bioinformatics – Sequence Alignment 23

Practice ProblemPractice Problem

  • Find an optimal alignment for these two sequences: GCGGTT GCGT
  • Match: +
  • Mismatch: 0
  • Gap: – 1 g c g g t t 0 - 1 - 2 - 3 - 4 - 5 - 6 g - 1 c - 2 g - 3 t - 4 Intro to Bioinformatics – Sequence Alignment 24

Practice ProblemPractice Problem

  • Find an optimal alignment for these two sequences: GCGGTT GCGT g c g g t t 0 - 1 - 2 - 3 - 4 - 5 - 6 g - 1 1 0 - 1 - 2 - 3 - 4 c - 2 0 2 1 0 - 1 - 2 g - 3 - 1 1 3 2 1 0 t - 4 - 2 0 2 3 3 2 GCGGTT GCG-T- Score = +

Intro to Bioinformatics – Sequence Alignment 25

What are all these numbers, anyway?What are all these numbers, anyway?

  • Suppose we are aligning: a with a…

a

a - 1

Intro to Bioinformatics – Sequence Alignment 26

The dynamic programming conceptThe dynamic programming concept

  • Suppose we are aligning: ACTCG ACAGTAG
  • Last position choices: G +1 ACTC G ACAGTA G -1 ACTC
    • ACAGTAG
    • -1 ACTCG G ACAGTA Intro to Bioinformatics – Sequence Alignment 27 g c g 0 - 1 - 2 - 3 g - 1 1 0 - 1 g - 2 0 1 1 c - 3 - 1 1 1 g - 4 - 2 0 2

Semi-global alignmentSemi-global alignment

  • Suppose we are aligning: GCG GGCG
  • Which do you prefer? G-CG -GCG GGCG GGCG
  • Semi-global alignment allows gaps at the ends for free. Intro to Bioinformatics – Sequence Alignment 28

Semi-global alignmentSemi-global alignment

g c g 0 0 0 0 g 0 1 0 1 g 0 1 1 1 c 0 0 2 1 g 0 1 1 3

  • Semi-global alignment allows gaps at the ends for free. - Initialize first row and column to all 0’s - Allow free horizontal/vertical moves in last row and column Intro to Bioinformatics – Sequence Alignment 29

Local alignmentLocal alignment

  • Global alignments – score the entire alignment
  • Semi-global alignments – allow unscored gaps at the beginning or end of either sequence
  • Local alignment – find the best matching subsequence. “Smith-Waterman Algorithm”
  • CG ATG AA ATG GA
  • This is achieved by allowing a 4th^ alternative at each position in the table: zero. Intro to Bioinformatics – Sequence Alignment 30 c g a t g 0 - 1 - 2 - 3 - 4 - 5 a - 1 0 0 0 0 0 a - 2 0 0 1 0 0 a - 3 0 0 1 0 0 t - 4 0 0 0 2 1 g - 5 0 1 0 1 3 g - 6 0 1 0 0 2 a - 7 0 0 2 1 1

Local alignmentLocal alignment

  • Use zero if all other methods are negative
  • Mismatch = – 1 this time CG ATG AA ATG GA

Intro to Bioinformatics – Sequence Alignment 37

Search Significance ScoresSearch Significance Scores

  • A search will always return some hits.
    • P score: the probability that one or more sequences of score >= S would have been found randomly
    • E score: the expected number of sequences of score > = S that would be found by random chance
  • Lets look at some examples...