CONVERT DNA SEQUENCE INTO COMPLEX NUMBER
조회 수: 2 (최근 30일)
이전 댓글 표시
Now I have to convert the DNA sequence into complex number.
what i did was :
s=randseq(20) % to have random sequence of DNA consisting of ATCG s=
ATCGCGCGATATATCGCGCG
next, I am stuck. the thing is, i need to convert each letter to complex. for example, A=-1+1i T=1-1i C=-1=1i G=1+1i
i need to convert and map the sequence into complex to use it after that in daubechies wavelet.
Thank you
댓글 수: 0
답변 (1개)
David Young
2015년 2월 21일
values('ATCG') = [-1+1i 1-1i -1-1i 1+1i]; % mapping from characters to complex
s = 'ATCGCGCGATATATCGCGCG'; % any specific sequence
scomplex = values(s); % the sequence represented as complex numbers
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Genomics and Next Generation Sequencing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!