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

  Economic-social and philanthropic responsibility

Is Nike’s responsibility to monitor its subcontracted factories a legal, economic, social, or philanthropic responsibility? What was it 10 years ago? What will be in 10 years from now?

  How nurse utilize five pillars of caring-communication

Explain how Nurse could utilize the five pillars of caring, communication, critical thinking, professionalism, and wholism in implementing role as "first disater responder" volunteer.

  HR departments in the future

Speculate about issues that can be expected to become increasingly important for HR departments in the future and the challenges that HR professionals will face as a result.

  Why literature review is a significant factors

What will they expect to see in good literature review and why are these factors significant? Ideally, what relationships does literature review form with other parts of study.

  Story of passenger deaths

The point of the chapter-opening story of passenger deaths that accompanied the sinking of the ocean liner Titanic is that

  Write the code listing, numerical results from your code

To complete this project, you must turn in the code listing, numerical results from your code (appropriately formatted and aligned for readability with exactly 3 decimal places), and your plots (with appropriate titles, axis labels, labeled legends, ..

  Motivating factors to improve organisation health and safety

Motivating factors to improve organisation health and safety State three major reasons to express concern towards health and safety at work

  Epidemic or pandemic potential

Critically discuss ten diseases which have Epidemic or Pandemic potential, and for which quarantine, or related isolation methods are recommended control measures.

  Specific culture that might interest to further research

Two topics related to a specific culture that might interest to further research.

  Important theorists in behavioral theory

Name two key figures who are important theorists in behavioral theory. What was (is) their function as a therapist?

  Europe benefited from location and major physical features

How has Europe benefited from its location and its major physical features? Include a discussion of the European Union. Do you think the EU could eventually lead to one large supra Europe? Or does fractionalization (such as in the Balkans) preclude t..

  Threat of global state terrorism

Read "The Threat of Global State Terrorism: Retail vs. Wholesale Terror" by Edward S. Herman and David Peterson.

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