Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Challenge: Score Sequence Alignments | Sequence Analysis
Python for Bioinformatics

bookChallenge: Score Sequence Alignments

Tehtävä

Swipe to start coding

Write a Python function that takes two DNA sequences of equal length and returns a tuple with the number of matches, mismatches, and gaps in the alignment.

  • Compare the characters of seq1 and seq2 at each position.
  • Count a match when the characters are the same and not a gap.
  • Count a mismatch when the characters are different and neither is a gap.
  • Count a gap whenever either character is '-'.
  • Return a tuple in the form (matches, mismatches, gaps).

Ratkaisu

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 2
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

close

bookChallenge: Score Sequence Alignments

Pyyhkäise näyttääksesi valikon

Tehtävä

Swipe to start coding

Write a Python function that takes two DNA sequences of equal length and returns a tuple with the number of matches, mismatches, and gaps in the alignment.

  • Compare the characters of seq1 and seq2 at each position.
  • Count a match when the characters are the same and not a gap.
  • Count a mismatch when the characters are different and neither is a gap.
  • Count a gap whenever either character is '-'.
  • Return a tuple in the form (matches, mismatches, gaps).

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 2
single

single

some-alt