Construct expressions for the two restriction enzyme motifs

Assignment Help Biology
Reference no: EM132149875

Bioinformatics Assignment -

In this assignment should check the following sequence and test whether it has the following restriction cut sites. This searching should be done globally, that is, it should check for all possible restriction sites. If the restriction sites are present, print out the regex, the pattern that matched the regex, and the position of where the cut beings.

Hint: the pos function gets the position of the last matched substring. Play around with it to see how it works.

Construct regular expressions for the two restriction enzyme motifs. Each restriction enzyme motif should be represented by one regular expression:

CACNNN/GTG (so CACNNN or CACGTG) where N represents A,C,T, or G

GCCWGG, where W represents A or T

The DNA sequence you will be searching in is this one, which you will paste into your program:

$dna = 'AACAGCACGGCAACGCTGTGCCTTGGGCACCATGCAGTACCAAACGGAACGATAGTGAAAACAATCACGA

ATGACCAAATTGAAGTTACTAATGCTACTGAGCTGGTTCAGAGTTCCTCAACAGGTGAAATATGCGACAG

TCCTCATCAGATCCTTGATGGAGAAAACTGCACACTAATAGATGCTCTATTGGGAGACCCTCAGTGTGAT

GGCTTCCAAAATAAGAAATGGGACCTTTTTGTTGAACGCAGCAAAGCCTACAGCAACTGTTACCCTTATG

ATGTGCCGGATTATGCCTCCCTTAGGTCACTAGTTGCCTCATCCGGCACACTGGAATTTAACAATGAAAG

CTTCAATTGGACTGGAGTCACTCAAAATGGAATCAGCTCTGCTTGCAAAAGGAGATCTAATAACAGTTTC

TTTAGTAGATTGAATTGGTTGACCCACTTAAAATTCAAATACCCAGCATTGAACGTGACTATGCCAAACA

ATGAAAAATTTGACAAATTGTACATTTGGGGGGTTCACCACCCGGGTACGGACAATGACCAAATCTTCCT

GTATGCTCAAGCATCAGGAAGAATCACAGTCTCTACCAAAAGAAGCCAACAGACTGTAATCCCGAATATC

GGATCTAGACCCAGAGTAAGGAATATCCCCAGCAGAATAAGCATCTATTGGACAATAGTAAAACCGGGAG

ACATACTTTTGATTAACAGCACAGGGAATTTAATTGCTCCTAGGGGTTACTTCAAAATACGAAGTGGGAA

AAGCTCAATAATGAGATCAGATGCACCCATTGGCAAATGCAATTCTGAATGCATCACTCCAAATGGAAGC

ATTCCCAATGACAAACCATTTCAAAATGTAAACAGGATCACATATGGGGCCTGGCCCAGATATGTTAAGC

AAAACACTCTGAAATTGGCAACAGGGATGCGAAATGTACCAGAGAAACAAACTAGAGGCATATTTGGCGC

AATCGCGGGTTTCATAGAAAATGGTTGGGAAGGAATGGTGGATGGTTGGTACGGTTT'

If you print out $dna, you may notice that the sequence is wrapped around some 70 characters or so. This means that $dna currently contains some \n characters in it, which will affect how regex matches against the string. In order to correctly identify all possible restriction sites, you would need to first remove those newline characters. This can be done by including the substitution operator after the variable declaration (similar to what we did in the vim writing exercises):

$dna =~ s/\s//g; # What would happen if the 'g' modifier is removed?

The following is the expected output. Instead of "$pattern1" and "$pattern2", you should be printing out the actual regular expression that you used to match the restriction enzyme motif. I did not print it out because that would give you part of the answer.

The program should include:

two regular expressions, one for each enzyme

one variable that contains the DNA sequence

optional if you would like to challenge yourself, include some code that will accept one command-line argument. If one is given, replace $dna above with the sequence provided by the user. Ensure that the provided sequence is a DNA sequence; otherwise, end the program and print a helpful message back to the user.

One subroutine called find_cut_sites that will accept 2 parameters: a DNA sequence and a regular expression. The subroutine should match the regular expression against the sequence and print the positions of all found cut sites. The position printed should be the starting position of where the site was found. Nothing should be explicitly returned by this subroutine. Whenever a subroutine does not explicitly return anything, it is known to be a void subroutine (void because a result is not provided back to the caller).

(There should be two subroutine calls for find_cut_sites(): one for each regular expression.)

Comments describing your subroutine (what it accepts, what it returns, what it does) and any other ambiguous code.

Attachment:- Assignment File.rar

Reference no: EM132149875

Questions Cloud

Distinguish between strategic items and core standard items : Using suitable examples, distinguish between “Strategic Items” and “Core Standard Items”.
Demonstrate principles of information technology security : Apply industry standards to the implementation and support of network systems and computer devices. Demonstrate the principles of information technology.
What is the overall probability that a restaurant : What is the likelihood that a randomly selected restaurant that made a profit in the first year that was rated poor by the marketing firm?
What do you understand by the term sustainability : What do you understand by the term “sustainability”? Implementation of sustainability initiatives by companies can be expensive,
Construct expressions for the two restriction enzyme motifs : Bioinformatics Assignment - Construct regular expressions for the two restriction enzyme motifs. Comments describing your subroutine
What evidence can you find to support your opinion : Steve Jobs was a strong, charismatic leader who co-founded Apple and is credited with much of the success of the company. Some believe that Tim Cook.
Example like this that misrepresented advertising : Find an other example like this that misrepresented the advertising. Tell us about the results of this misrepresentation on the company’s and product reputation
Define a packet analyzer and describe the use : Define a packet analyzer and describe its use. List best practices for analyzing packets. Describe uses (good and bad, ie. hacker) of a packetanalyzer.
Sam has breached any legal duty to company : Advise the board of Downing Ltd whether Sam has breached any legal duty to the company.

Reviews

Write a Review

Biology Questions & Answers

  Immune response to infectious disease

It is a very curcial concept to understand how the immune response is mounted against viruses, bacteria, protozoans and helminthes. For an effective immune response, both innate and adaptive immunity should work together.

  A review on advanced glycated end products (ages)

This Project report elaborates a critical review of important elements attached to Advanced Glycated End Products (AGEs). It is very crucial to understand the process called Millard reaction.

  Plastic as a soil stabilizer

Soil stabilization is the permanent physical and chemical alteration of soils to enhance their physical properties. Stabilization can increase the shear strength of a soil and control the shrink-swell properties.

  Principles of microbiology

This assignment has three parts which contains questions related to Microbiology. It contains basic principles of microscopy, staining techniques in microbiology and microbial growth in the food industry.

  List the biologic functions

Lipid metabolites are often seen as key elements in cellular signaling. Is this unique? Please provide several examples of the function of lipids as key elements in signal arrays and list the biologic functions these signals affect?

  Biologic function relationships

Please describe how one might search for chemical structure, biologic function relationships, involving small molecular weight lipophylic compounds. Provide one example.

  Case study on patient in the haematology laboratory

Write a case study which detailing a scenario of a patient being investigated in the Haematology laboratory.

  Use of pcr and genetic approaches in biotechnology

The use of PCR and genetic approaches in biotechnology

  Describe the role of this enzyme in honey

Glucose oxidase is an enzyme that can be used for measurements of glucose levels by combining this reaction with an oxygen probe.

  Genetic problems

What phenotypic ratio would you get if you crossed a white mouse and a heterozygous brown mouse?

  Prepare an essay on nosocomial infection

Prepare an essay on nosocomial infection.

  Monitoring and recording the blood pressure

To increase the awareness of monitoring and recording the blood pressure of patients and practice measuring blood pressure in a safe environment.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd