include svm peak detection into alignment procedure