Cross correlation analysis in R
1
0
Entering edit mode
8.2 years ago
Chirag Parsania ★ 2.0k

Hi,

I have some data in form of vectors generated from DNA sequences. Each data vector represent stretch of DNA sequence. Visually data looks like signals and and they follow some patterns. Problem here is they are not aligned so i can not compare those signals with each other. I want to align them in such a way that I can get maximum correlation. I know there is a command in MATLAB which can easily find cross correlation between two signals. Does anyone know if similar thing can also be done in R ?

Thanks, Chirag.

R crosscorrelation signalprocessing • 3.1k views
ADD COMMENT
1
Entering edit mode
8.2 years ago

You can align numerical sequences using dynamic time warping. Classical dynamic time warping and many variants are implemented in the R package dtw.

In R, cross-correlation is implemented in the ccf() function.

ADD COMMENT

Login before adding your answer.

Traffic: 1231 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6