Answered step by step
Verified Expert Solution
Question
1 Approved Answer
MATLAB RNA Sequence RNA consists of specific genetic sequences consisting of four nucleo-bases Adenine, Guanine, Cytosine and Thymine. The RNA sequence is described by 1D
MATLAB
RNA Sequence RNA consists of specific genetic sequences consisting of four nucleo-bases Adenine, Guanine, Cytosine and Thymine. The RNA sequence is described by 1D row array consisting of the four integers. The four nucleo-bases are encoded with integers: Adenine-1: Guanine = 2; Cytosine-3; Thymine-4. For example a RNA sequence is encoded by rnasequence= [4,1,3,1,2,1,2,1,2,2,2,3,2,2,4,3,1,2,1,2,1,3,3,2,4,4,2,2,4' 1]; Write a function GenSeq to search for an occurrence of a subsequence row array subSeq of arbitrary length in a given row array RNAseq describing the RNA sequence. Some bases in a subsequence may have no effect on disease risk. The encoding of such 'null' bases are indicated with a -1 meaning it does not matter which base is in that position. For example, search for the occurrence of the subsequence [3, 2,-1, 4] in a given RNA sequence. There is a 'null' base in the third position, indicated with a -1, and it does not matter which base is in that position, so there could be match with any of the four bases. The function should search for an occurrence of a subsequence without and with null bases. Example #1: 11: rnaSeq=[2 4 1 2 1 >subseq 1,1,4] >>matchPos =GenSeq ( rnaSeq, subseq ) 1 4 3 3 produces matchPosStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started