Question: Rewrite the genomic example in Section 7.3 to use regular expressions instead of string patterns to find all occurrences of the sequence AAanythingT. Here is


Rewrite the genomic example in Section 7.3 to use regular expressions instead of string patterns to find all occurrences of the sequence AAanythingT. Here is the example using general string patterns.

In[4]: gene= GenomeData["IGHV357"]; StringCases [gene, "AA" Out[5]= {AAGT, AAGT, AAAT, AAGT, AAAT,

Rewrite the web page example in Section 7.3 to use regular expressions to find all phone numbers on the page, that is, expressions of the form nnn–nnn–nnnn. Modify accordingly for other web pages and phone numbers formatted for other regions.

Create a function UcLc [word] that takes its argument word and returns the word with the first letter uppercase and the rest of the letters lowercase.

In[4]: gene= GenomeData["IGHV357"]; StringCases [gene, "AA" Out[5]= {AAGT, AAGT, AAAT, AAGT, AAAT, AAAT} [""

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To rewrite the genomic example in Section 73 to use regular expressions instead of string patterns t... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!