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

  Compare and contrast the native relations of each group

Compare and contrast the native relations of each group. Which group created a strong alliance with natives and why?

  Sexual intimacy with a client

What does the APA say about sexual intimacy with a client? What about having a relationship with a former client?

  Nature versus nurture debate

In the nature versus nurture debate, sociologists claim that

  Define the hospitality industry

Define the hospitality industry Critically analyze the specific characteristics of the hospitality services that are not found in other services. Support your answer with relevant examples

  Discuss two major kinds of resources

Discuss two major kinds of resources Discuss four approaches to natural resources management Discuss two new tools for resource management

  How is binge eating disorder different from obesity

How is binge eating disorder different from obesity? What are the significant diagnostic features of both disorders? How are they treated?

  Imprtant proposals

Why are proposals important? What do you think should be included in proposals?

  Personal sources of enculturation

Sources of enculturation might be mother, father, other significant care giver, specific siblings, specific relatives, specific friends, specific religious or educational figures

  Operationalizing-conceptualizing and measuring variables

How are you conceptualizing, operationalizing and measuring variables? Explain dimensions, indicators and validity. Write down the possible attributes of variables?

  E-activity

Search Online, Business Publications, and Newspapers for articles related to organizational change in Google and Apple.

  The treasury auditors

The Treasury Auditors are currently exposed to unlimited liability for professional default. Auditors, and other professional groups have traditionally dealt with their unlimited liability exposure for professional default through professional indemn..

  Large corporations code of ethics

Require some assistance understanding what a large corporations code of ethics is and how it works. Can you help me understand by randomly selecting any large firm.

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