Write a perl program that asks a user for a motif

Assignment Help Programming Languages
Reference no: EM131008529

Do the following exercises and submit by the due date. Submit one word doc file with all your code pasted into it (no need for output snap shots) and also submit all the .pl files (all in one zip file would be great).

1) Perhaps the most common thing we do in Bioinformatics is look for domains and motifs in sequences. Write a Perl program that asks a user for a motif (like QDSV or MKPL) and returns a message saying whether the motif is found in the sequence or not.

Program requirements:

a) Use at least one subroutine, the more you compartmentalize your code the better though!

b) Assume the protein sequence is stored in a file in FASTA format. So you are going to prompt the user for this file, make sure it opened and read, and then proceed to read the file\sequence into your program.

c) Use strict.

d) Use indentations and comments in your code.

2) Activity of a certain enzyme was measured in extracts from brain, heart and lung. In each tissue, the activity was measured several times, giving the following results (in arbitrary units):

brain: 65, 69, 70, 63, 70, 68.
heart: 102, 95, 98, 110.
lung: 112, 115, 113, 109, 95, 98, 100.

Write a program that calculates and prints the following information for each of the tissues:
a) number of measurements
b) average enzyme activity

Write a subroutine for each piece of information above (i.e. a subroutine that finds the number of measurements and returns it, a sub that finds the average and returns it). The main part of your program should call the subroutines for each data set (brain, heart and lung) and print out the results to the screen.

Program requirements:
a) Store each of the data sets into an array.
b) Pass each array to the subroutines, see lecture notes on how to pass by reference.

c) You should only have ONE sub for number of measurements and ONE for the average. But you need to CALL each of those two subs 3 times (for each of the data sets). Do not create a sub for each data set, because that defeats the purpose of a subroutine! Remember subs are meant to simplify and allow for reuse of code.

Reference no: EM131008529

Questions Cloud

Compute the surface area of the portion of the paraboloid : Use the above formula (regardless of whether you properly derived it) to compute the surface area of the portion of the paraboloid z = x2 + y2 below the plane z=1.
Write out the null and alternative hypothesis : For each of the following, write out the null and alternative hypothesis, being sure to state whether it is one-sided or two-sided.
This cost included the following expenditures : Ignoring income taxes, prepare the appropriate correcting entry for the equipment capitalization error discovered in 2011.
What is a typical value for this data set : Construct a back-to-back stem-and-leaf display for the wireless percentage of the states in the West and the states in the East. How do the distributions of wireless percentages compare for states in the East and states in the West?
Write a perl program that asks a user for a motif : Write a Perl program that asks a user for a motif (like QDSV or MKPL) and returns a message saying whether the motif is found in the sequence or not - Write a program that calculates and prints
Prepare any journal entry necessary as a direct result : Determine the amounts to be reported for each of the five items shown above from the 2009 and 2010 financial statements when those amounts are reported again in the 2009-2011 comparative financial statements.
Was the community experience better or worse than expected : Newgroveton is a community of 445,000. In the most recent year, there were 750 new cases of disease A in the community. Assume the expected incidence rate for disease A is 245 per 100,000 people. Was the community's experience better or worse than..
Define zero order markov model for sequence : Page review for the paper "Genome-wide genetic marker discovery and genotyping using next-generation sequencing" available under week's course content
The energy stored in the dielectric in joules : A dielectric slab with 500mm x 500mm cross-section is 0.4m long. The slab is subjected to a uniform electric field of E = 6ax + 8aykV /mm . The relative permittivity of the dielectric material is equal to 2. The value of constant ε0 is8.85 × 10-12F /..

Reviews

Write a Review

Programming Languages Questions & Answers

  What is the value displayed on the led

In the Data1: window, right click on num1, then left click on Show Location.  The value of the initialized variables should appear in the Memory window. Cut and paste the Memory window. What is the value displayed on the LEDs after you single step th..

  Include a pseudo code, flowcharts making complete solution

Your final document should contain a "hierarchy chart" of phases, flowcharts, pseudo code, data dictionary, and seven UML diagrams as developed in Visio and Word. Your document should also contain a paragraph narrative on how each diagram relates ..

  Program that will help user with metric conversions

Write a program that will help the user with metric conversions. Your program should allow the user to specify the names of the units as strings (e.g., centimeters, liters, grams, for the metric system and inches).

  Develop a concentration game

Concentration, also known as Shinkei-suijaku, Memory, Pelmanism, Pexeso or simply Pairs, is a card game in which all of the cards are laid face down on a surface and two cards are flipped face up over each turn.

  Write program which asks user for the url of a pdf file

Write a program which asks the user for the URL of a PDF file, checks that the URL starts with "http://" and ends with "pdf" or "PDF", downloads it with wget, and displays it with display.

  How many bit strings of length 8 are palindromes

How many bit strings of length 6 is there that begin with 0 or end with a 1?

  Produce a project plan

Produce a project plan and an interim description of the project development

  Create a glossary generator

Prompt the user to enter a word, return its definition and scrabble score (or output "not valid in scrabble")

  Write a program that will operate the alarm simulation

Write a program that will operate the Alarm Simulation, using the following inputs and outputs and whatever Timers and Flags are required.

  Explain importance of developing strategy for navigation

Discuss the importance of developing a strategy for the navigation, and describe the common navigation elements. Navigation is a very important part of your portfolio.

  Calculate transaction-based indi­rect overhead cost

calculate transaction-based indi­rect overhead cost (receiving, engineering, and packing) per unit for each of the three products. Use this new information to recalculate overall cost per unit for products A, B, and C.

  Find number values that are between given range

Suppose the values from aaa.txt have been loaded into array Bob: find out the number values in Bob that are between 0 and 4 (not inclusive).

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