Develop a perl program

Assignment Help Other Subject
Reference no: EM13182118

Develop a Perl program that receives as argument on the command line the name of a file in the working directory (containing one protein sequence in FASTA format) and prints the number of Methionin in the sequence.
-It checks the number of arguments received on the command line and if the number is not 1 it prints an error message and exits.
-It assigns the first argument to one variable.
-It initialize to 0 a counter variable
-It opens for reading the file with that name. If the file is not existing it gives an error message.
-It reads one after the other (while loop) the lines of the file assigning the read line to a variable.
- If the line starts with ">" (it is the first line of a FASTA file) the line is not considered.

Else all the "M" in the line are counted using the tr instruction. The number of M is added to the counter.
-When all the lines have been read the while loops terminates and the program continues closing the file.
-It prints a message "Number of M in the sequence : ".
-It prints the value of the M counter variable.

Reference no: EM13182118

Questions Cloud

Level of identity status concerning a collegiate major : Brita is a junior interested in majoring in English literature, philosophy, biotechnology, or European history. While she likes all of these majors, she is not sure which one to focus on. According to Marcia, Brita would best be classified as being i..
What are the consequences of your policy in terms of output : If Greece leaves the Euro zone there will be macroeconomic consequences. The possible collapse of the Euro zone acts as a shock to sellers around the world worried about international economic stability. Show the short run impact of such an event...
Terrorist or terrorism : Give two examples of the use of the word “terrorist” or “terrorism” that are NOT meant pejoratively and describe how the attitude toward the phenomenon changed over the past 50 years.
Determine the profit-maximizing amounts of electricity : The second largest public utility in the nation is the sole provider of electricity in 32 counties of southern Florida. To meet the monthly demand for electricity in these counties, which is given by the inverse demand function P = 1,200 - 4Q, the..
Develop a perl program : Develop a Perl program that receives as argument on the command line the name of a file in the working directory (containing one protein sequence in FASTA format) and prints the number of Methionin in the sequence.
What will be the employers per-employee profit : Your production line has recently been producing a serious defect. One of two possible processes, A and B, could be the culprit. From past experience you know that the probability that A is causing the problem is 0.8 but investigating A costs $100..
Strength of ethnic identity and self-esteem : What is the best description of the relationship between strength of ethnic identity and self-esteem? A major theme of most date rape prevention workshops
Determine the average annual growth rate : Real GDP in the U.S. increased by a% in 2008 and increased by b% in 2009, and increased by d% in 2010. In class, we learned that the average annual growth rate of real GDP for the period 2008-2010 can be (1) approximated as: (a% +b% +d%)/3
Frequency of measurement per process : What are your views on determining the duration of carrying out performance measures and data collection to run performance measures?

Reviews

Write a Review

Other Subject Questions & Answers

  Combating terrorism

What is PL 107-56 and is it the right approach to combating terrorism?

  Describe an integrated or eclectic treatment system

Describe an integrated or eclectic treatment system that you believe would be especially effective in addressing the needs of multicultural clients. Identify the basic go.als, assumptions, and strategies of your new treatment system

  Oedipus the king

After reading "Oedipus the King" and viewing the lectures on this play, explain the tension between fate and free will as it exists in the play. How would you describe the difference between the way that ancient Greek culture viewed these concepts an..

  Business and people management strategies of the company

What are examples of the things Siemans has done to create alignment between business and people management strategies of the company

  Lad theory of language acquisition by chomsky

In your readings, did you find information about the LAD theory of language acquisition by Chomsky? How does this theory describe the process of language acquisition?

  Average income is typical for the world

Which of the following categories contains countries in which average income is typical for the world as a whole and in which people are as likely to live in a rural area as in an urban area?

  Determine a learners level of literacy

What are six learning support strategies that you could implement into your delivery sessions to address your learner's language, literacy and numeracy needs?

  Healthcare organization distribution channels

Please help me examine a healthcare organization's distribution channels and identify what channel is used. Help me explain how an organization works to meet the demands of the consumers by answering the following questions

  Inherent reliability and validity issues

Are there any inherent reliability and validity issues that one should consider when administering intelligent tests?

  Affects of religion on homeland security

What are the affects of religion on homeland security? Specifically focus on the concepts outlined in your reading associated with suicide bombers.

  Short-term and long-term memory

How would you reduce the likelihood of forgetting important information?

  Issues in cross-cultural psychology

Help to Create a Clear Outline to remember my purpose/goal, which is to create & present a 12-Slide PowerPoint Presentation on Issues in Cross-Cultural Psychology. That way I can use the Outline as a jumping-off point for my presentation.

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