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,](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/02/65ce1d72be352_77065ce1d72a9d93.jpg)
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
To rewrite the genomic example in Section 73 to use regular expressions instead of string patterns t... View full answer
Get step-by-step solutions from verified subject matter experts
