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

  Writing application to accept loan amount-interest rate

Write down the application to accept a loan amount, annual interest rate, and loan period (in number of years) and displays a table with five columns.

  Create a program to store assignment grades for student

The elementary school for which you are doing development work has asked you to create a program to store assignment grades for one student.

  Advantages cloud computing

advantages Cloud computing

  Write an interactive prolog program

Write an interactive Prolog program in which a user enters a positive integer and then displays the power of 2 to that number. For example, if the user enters 4, the program calculates the power 2.

  Program to accept mass-density and compute volume

Write down the program which accepts as input the mass (in grames) and density (in grams per cubic centimeters), and output volume of the object.

  Write a program using binary search approach

Write a program using binary search approach

  Write an anonymous block that places a substitution variable

Write an anonymous block that places a substitution variable (&) into a local variable of type varchar2. You will need to convert the types and round them to nearest tens unit. For example 84.4555 would be 84.5.

  Write recursive function to return maximum element of array

Write down the recursive function which receives three parameters: The recursive function must return maximum element of array.

  Program where the computer plays against a human opponent

Write a function playExpert(marbles) that given a number of marbles returns the number of marbles that the computer will take following the expert mode rules.

  Provide a graphical view of the planets and bases

Intergalactic Navigation. Provide a graphical view of the planets and bases, and meteorite fields and display the requested path from start to destination.

  A police officer or investigator has sufficient cause

If a police officer or investigator has sufficient cause to support a search warrant, the prosecuting attorney might direct him or her to submit a(n) ???a. exhibitb. verdict

  Research on programmer defined functions

Write a 2 page research paper (excluding title and reference pages) on programmer-defined functions. Explain the concepts discussed in the textbook using at least an example not included in the textbook.

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