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 haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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