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

  Logic for a program that performs arithmetic functions

Create the logic for a program that performs arithmetic functions. Design the program to contain two numeric variables. Prompt the user for values for the variables

  What is mysql

What is MySQL? What is Database? What is Structured query language?

  What are the important aspects writing pseudocode

What are the characteristics of flowcharts and how they express logic and what are the important aspects writing pseudocode?

  Provide a complete program that performs substitution cipher

Provide a complete program that performs a simple substitution cipher. The program should take plain text and a shift value and produce the encrypted text. Then it should take encrypted text and a shift value and produce the plain text once again.

  Write advantages of external css and internal css

Write down the advantages of external CSS compared to internal CSS? Describe conditions in which each is suitable type.

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  C program to accept three numbers inputs by user

Write down C program to accept three numbers input by a user, and outputs a table of temperatures in Fahrenheit, Celsius, and Kelvin.

  Program to display only unique values which user entered

Program to display only the unique values which the user entered. Give for the "worst case" in which all 20 numbers are different. use smallest possible array to solve this problem.

  Define console programming and gui programming

Define Console Programming and GUI Programming

  Write program for department of motor vehicles

Department of motor vehicles has finally decided to computerize its list of licensed drivers. Program you write must make use of existing file call Licenses with records of given form. Name, License Number

  Write a program to find all real roots

Write a program to find all real roots of a given polynomial f. Starting with 0.0, use step size of 0.25 to find a and b such that sign(f(a)) sign(f(b)).

  Write the program to sustain person-s savings

Write down the program to sustain the person's Savings and Checking accounts. Program must keep track of and show balances in both accounts, and sustain a list of transactions.

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