Thanks for your help! However the alignment is not right. The second sequence lines up about 100 residues from where it should, whereas the "Simple" scoring scheme works reasonably. See the "LMIS", which should line up at residue 251 on the first sequence. I'm using -1 for both gap and gapOpen: 200 . : . : . : . : . : NVAHPASSTKVDKKIEPRGPTIKPCPPCKCPAPNLLGGPSVFIFPPKIKD -------------------------------------------------- 250 . : . : . : . : . : VLMISLSPIVTCVVVDVSEDDPDVQISWFVNNVEVHTAQTQTHREDYNST -------------------------------------------------- 300 . : . : . : . : . : LRVVSALPIQHQDWMSGKEFKCKVNNKDLPAPIERTISKPKGSVRAPQVY | | ---------------------------------PELLGGPSVFLFPPKPK 350 . : . : . : . : . : VLPPPEEEMTKKQVTLTCMVTDFMPEDIYVEWTNNGKTELNYKNTEPVLD | | | DTLMISRTPEVTCVVVDVSHEDPEVKFNWYVDGVEVHNAKTKPREEQYNS 400 . : . : . : . : SDGSYFMYSKLRVEKKNWVERNSYSCSVVHEGLHNHHTTKSFSR | | | | TYRVVSVLTVLHQDWLNGKEYKCKVSNKALPAPIEKTISKAKGQ Here's the code snippet: 1002 seqan::Score<int, seqan::ScoreMatrix<seqan::AminoAcid, seqan::Pam120_> > scorePam120(gap,gapOpenPenalty); 1003 int score = globalAlignment(align, scorePam120 ); Maybe I need to specify the algorithm as well? Also, how can I retrieve the aligned residue numbers? Right now I'm just retrieving the two aligned sequences and assuming they are aligned if neither character is a '-': 1022 if ((String(seqan::row (align,0)[i]).compare("-") != 0 ) && 1023 (String(seqan::row (align,1)[i]).compare("-") != 0 )) { /* aligned residues*/ } This works well enough for very simple, high sequence identity alignments. However I'd really like to know which residues are positively aligned ( "|" in the above alignment). Thanks Sam
|