Question: this is for DNA sequencing, create a function called match_mask Python coding please, and not allowed to use import or print. In this assignment, we

this is for DNA sequencing, create a function called match_mask

Python coding please, and not allowed to use import or print.
In this assignment, we will be working with strings and lists, combining iteration and selection and dealing with mutability
you can use loops and selection, as well as any built-in string or list methods that do not require importing
Also, make all the steps clear and explain/comment every step. make the coding simple for beginners
It's often important to find a specific pattern within a gene. For this purpose, scientists create a mask. Masks pair with parts of genes, but do not need to pair with the entire gene. The pairing works in the same manner as normal 1 gene pairing, but with a few interesting additions. Scientists can create special nucleotides in masks called multis that can mimic the bonding behaviour of multiple nucleotides. For example, we could create a multi that can act like adenine, or like guanine (i.e., it will bond with either thymine or cytosine). We will denote these multis in our gene sequences by listing the nucleotides with which they can mimic in brackets. So for example, a mask consisting of adenine, the mimic just mentioned, and thymine would be written as A [AG]T . It's also possible to create a nucleotide that will pair with any other nucleotide. We call these special In order to simplify the encoding of the masks, repeated sequences of nucleotides are denoted by the As an example, the mask: [AG] C3* would pair with any sequence starting with either T or C, followed by nucleotides stars, and we will denote them in our gene sequence with the star character: * nucleotide followed by a number, so for example CCCAGGGGTT would be represented as C3AG4T2. three G, followed by any other nucleotide
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
