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

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  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.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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