Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Open Lab Assignment 6 in python The Problem Scientists measure how closely related a species is by looking at the DNA sequences for key proteins
Open Lab Assignment 6 in python
The Problem Scientists measure how closely related a species is by looking at the DNA sequences for key proteins and seeing how similardissimilar they are. If the two sequences of DNA are essentially the same, the two species are considered to be evolutionarily closer since there is a relationship between changes and time. This process is called sequence alignment. Consider the two strings of DNA below (completely made up, miss matches in red): Species 1: AATAACGAAA Species 2: AAAACGAAAA Do NOT use List !! Program Specifications: 1. You will read two strings at a time (one string on each line) and do scoring operation. The strings can have any characters you like, but to be "biological" it should consist of: "A", "T", "C", "G" but it is not the requirement Scoring. You will report the number of matches and the number of mismatches. Requirement: Interactively read a file name which contains the DNA sequences to be matched(scored). Assume that each pair of strings are same length and it could be in upper and/or lower case. After you score: Print match count and mismatch count You print both strings. i. Matching characters are printed in lower case. If the string was in upper case letters, you convert them to lower case on a match. ii. All mismatches are printed in upper case. Assignment Notes: 1. As before, try to do this in pieces: get the command loop working a. get individual commands to work (scoring is the most work, save it till last) 2. 3. Sample data file dna.txt You may copy sample file: sp SPUB/dna.txt b. Printing the string is best done by creating a new string and adding characters (upper, lower) to that string and then printing it. Then clear it before the next printing. Process all pairs of strings in data file. aadbbbcSSS baAbbbcccd and many more pairs Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started