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

  Write a code to locate and rank keywords

You are working on the custom Web application to design document library for client. Write code to locate and rank the keywords. You have been given sample document to use for testing.

  Program to compute risk of weight-related health problems

A quantity known as the body mass (BMI) is used to calculate the risk of weight-related health problems. Write a program that accepts weight and height and then displays the BMI value and Status.

  In software engineering one can find out different life

in software engineering one can find various life cycle models. some examples include the waterfall model agile

  Write program which permits the user to enter students name

Write the program which permits the user to enter students' names followed by their test scores and outputs following information (suppose that maximum number of students in class is 50)

  Write program to display companys payroll report in list box

Write down the program to display companys payroll report in list box. Program must read each employee's name, hourly rate, and hours worked from file and produce report.

  Explain the theory & concepts involved in the design of page

Discuss what makes an effective as well as a poorly designed web page, and be able to critically evaluate them

  Program to retrieve records based on last name-first name

Customer service representatives wish to be able to retrieve records based on Last Name + First Name, Product Number, or State fields. Write down steps involved in your analysis of this problem?

  Write class which uses string array or arraylist

Write the class which uses string array or arraylist object to holld five students, array to hold five charters student letter grade) and five arrays of doubles each to hold each students set.

  Prepare a scenario diagram for problem

Write a PhoneContact class that gets initialized with a phone number and a label. The phone number should follow one of the formats of the Phone class from the previous assignment - Prepare a scenario diagram for Problem 1, Brief discussion for Pro..

  Write program to test class-compute next month-s interest

Write the program to test class SavingsAccount. Instantiate two savingsAccount objects, saver1 and saver2, with balances of $2000.00 and $3000.00, respectively. Compute next month's interest and print new balances for both savers.

  Track of position of a point in three-dimensional space

Specify, implement and design a class that can be used to keep track of position of a point in three-dimensional space. For example consider the point drawn at the topof the next coloumn. The point shown there has three coordinates

  Design the software architecture of a web auctioning site

Design the software architecture of a Web auctioning site and design a database for storing information about users, items, auctions and bids.

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