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

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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