Write pattern matching statement using a regular expression

Assignment Help Programming Languages
Reference no: EM131020870

1. Write a pattern matching statement using a regular expression that returns the GI number from the header of a sequence in a FASTA file.

Assume that the GI number occurs as between the first set of vertical bars.

For example, given this header:

>gi|1786181|gb|AE000111.1|AE000111 Escherichia coli K-12 MG1655

print out:

GI: 1786181

2. Write a Perl program that produces the following output when searching for the word RNA in the paragraph below:

Output:
(RNAi) ends at position 49
(dsRNA) ends at position 211
(ssRNAs) ends at position 374
mRNAs. ends at position 431

Search Text (you can assign this to a string in your program):

"Several rapidly developing RNA interference (RNAi) methodologies hold the promise to selectively inhibit gene expression in mammals. RNAi is an innate cellular process activated when a double-stranded RNA (dsRNA) molecule of greater than 19 duplex nucleotides enters the cell, causing the degradation of not only the invading dsRNA molecule, but also single-stranded (ssRNAs) RNAs of identical sequences, including endogenous mRNAs."

Verified Expert

Solution contains : ex1.pl-> perl script to print GI number frm given FASTA file as input file ex2.pl-> printing maching RNA from given search text input.txt-> FASTA file for ex1.pl(input file for ex1.pl script)

Reference no: EM131020870

Questions Cloud

Assuming all other relevant factors are equal : An investor in the 28 percent tax bracket is trying to decide which of two bonds to purchase. One is a corporate bond carrying an 8 percent coupon and selling at par. The other is a municipal bond with a 5.5 percent coupon, and it, too, sells at par...
Does that mean that there are fewer jobs in united states : Suppose you are explaining the benefits of free trade and someone states, "I don't understand all the principles of comparative advantage and gains from trade. I just know that if I buy something produced in America, I create a job for an American..
The amount of the impairment loss that antle would record : The amount of the impairment loss that Antle would record for goodwill at the end of 2016 is:
What yield to maturity is the bond offering : A 5.85 percent coupon bond with 18 years left to maturity is offered for sale at $1,055.25. What yield to maturity is the bond offering? (Assume interest payments are semiannual.) (Round your answer to 2 decimal places.)
Write pattern matching statement using a regular expression : Write a pattern matching statement using a regular expression that returns the GI number from the header of a sequence in a FASTA file - Write a Perl program that produces the following output when searching for the word RNA in the paragraph
Compute the direct materials price variance : Fletcher Company collected the following data regarding production of one of its products. Compute the direct materials price variance.
Determine the amount of the working capital : Determine the amount of the working capital and the current ratio.
Defining business ethics : Part 1. Should a short-term or long-term consequence make a difference in resolving an ethical dilemma? Discuss. Part 2. Of the four commonly held rationalizations for unethical behavior proposed by Saul Gellerman, which one do you thing gets used ..
Define social media monitoring : ECOM-322 -Social Media Marketing - Define social media monitoring. Discuss how an organization can track, measure, and evaluate its social media initiatives.

Reviews

Write a Review

Programming Languages Questions & Answers

  Create structure chart-flowchart to store taxpayer-s name

Create the structure chart, also a flowchart and pseudocode, for following problem. Suppose that each input record contains taxpayer's name.

  Program to validate pay rate as it is entered

When pay rate is entered, search array for a match. If there is match, continue rest of the calculations. If there is no match, display error message, a list of valid pay rates, and prompt for another pay rate.

  What are the important aspects writing pseudocode

What are the characteristics of flowcharts and how they express logic and what are the important aspects writing pseudocode?

  Prepare function for one integer parameter-returns integer

Prepare the C++ function which needs one integer parameter and returns the integer value. Function will double value passed to it and return doubled value.

  Provide a brief description within comment tags at bottom

Provide a brief description within comment tags at the bottom

  Calculate and display optimal cost for cylindrical container

Compute and display the height and cost of container. Use the following formulas, where V is volume, r is radius, h is the height, and C is the cost.

  Cloud computing significantly improve public sector it

Cloud computing can significantly improve public sector IT.A number of government agencies are adopting cloud technologies and are realizing considerable benefits. For instance, NASA Nebula,5 through a community cloud, gives researchers access to ..

  Program to find area-length and width of a rectangular room

Program is supposed to ask user for length and width ofa rectangular room, and then display room's area. The program should multiply width by length in order to find the area. Find the error.

  Make simple html document add a comment

Make simple html document Add a comment Add a hyperlink to www.google.com Create simple HTML headings h1 to h6

  Write a query to confirm that the changes have taken effect

write the SQL command to add a new redo log group with two members

  Create-implement program which creates exception

Create and implement a program which creates an exception class called StringTooLongException, designed to be thrown when string is discovered that has too many characters in it.

  1 microsoft is developing a new program and they want to

1. microsoft is developing a new program and they want to identify the break-even point.their fixed cost is 72000 while

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