필터 지우기
필터 지우기

command of alignment for general sequences

조회 수: 1 (최근 30일)
huda nawaf
huda nawaf 2011년 11월 27일
hi, is there a command of sequence alignment for any sequence generally ? I did not mean swalign or nwalign, these just for biological sequences. if not are there anyone wrote a code of sequence alignment for non biological sequences in matlab?
thanks
  댓글 수: 4
huda nawaf
huda nawaf 2011년 11월 28일
thanks walter, i will see the link
sven , I mean any sequence of integers or characters.
There is algorithms of seq. alignment but designed for DNA or protein sequences.
I hope to find for general seq.
thanks
huda nawaf
huda nawaf 2011년 11월 29일
thanks walter,
i did not see the last comment by Lucio.
really thanks

댓글을 달려면 로그인하십시오.

답변 (1개)

Hin Kwan Wong
Hin Kwan Wong 2011년 11월 28일
What sequence? If you mean any two numerical sequences which are correlated. Their alignment can be done by using cross correlation and finding where the peak is in terms of the delay, then shifting one of the sequence by the delay.
xcorr = ifft(fft(signalA).*conj(fft(signalB));
delay = find((xcorr==max(xcorr))==1);
AlignedA = circshift(signalA,1-delay);

카테고리

Help CenterFile 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!

Translated by