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 unixs main philosophy

Describe and critically evaluate the similarities between the Windows and Unix operating systems - what are some of the advantages of running UNIX and what is UNIX's main philosophy

  Pseudocode of program that will prompt user for number

Write pseudocode and flowchart for a program which will prompt user for a number, prompt the user for an operator (+,-,*,/), prompt the user for another number.

  Create program to counts number of bytes located in memory

Create the program which Counts the number of bytes located in memory from DS:1000h to DS:1200h which are greater than 77h. Put the count on register CX.

  Function to recognize employee-s number and address

You are given with 45 telephone numbers of Employee who are misusing call center resources.Write down Fcomputer program function to recognize Employee no.

  Write function for three components of name

Write down the function, that given three components of name (first name, middle name or initial, and last name), returns single string object consisting of last name,

  Building instruction set simulators

Building Instruction Set Simulators

  Write a program that inputs number of hours worked

Write a program that inputs the number of hours worked and hoursly pay rat for employesand outputs their total pay.

  Write console application that displays the sizes

Create a file that contains your favorite movie quote.  Use a text editor such as Notepad and save the file as Quote.txt.  Copy the file contents and paste them into a word-processing program such as Word.

  Create a new project in your ide named exceptionhandler

Create a new project in your IDE named "ExceptionHandler." Write code to accept numbers as described above from the user. Your code should ensure that only numbers are accepted.

  Write program to accept long integer number

Write down the program which contains function calories() which is to accept long integer number total and address of integer variables pizza, chips apples and mustard.

  Write program which reads data into type integer

Write down the program which reads data into type int. Valid values are from 0 to 10. The program must find out how many values were inputted.

  Discuss the concept of reusability

Designing for Reusability- Discuss the concept of reusability and how to design for reusability. Provide an example with your posting

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