pwalign <sequence1> <sequence2> <score-matrix> <gap-penalty>
Your input sequences will be in FASTA format, and your scoring matricies will be either PAM250 or BLOSUM62.
A 2-D matrix to keep the scores for the individual amino acid match scores.
A list of the amino acids as organized in the score matrix.
The first sequence read by the program, stored as a string.
The second sequence read by the program, stored as a string.
The gap penalty.
The 2-D matrix of alignment scores, used for the dynammic programming.
The 2-D matrix of arrows to track the direction of the winning score.
These can be used by the following methods:
Read in the sequences and scoring matrix, then compute the alignment.
Load the text file into the 2-D score-matrix.
Load the FASTA file into the sequence string
Progressively compute the alignment scores using the maximum of previously aligned pieces, and store the direction of this maximum alignment score. Once completed, walk from the sink to the source and calculate the resulting alignment.
GFP_AEQVI 1 MSKGEELFTGVVPILVELDGDVNGHKFSVSGEGEGDATYGKLTLKF 46 :.| .:|....::|.||||.|..:|:|||:...|...:|. NFCP_ANESU 1 MASFLKK-------TMPFKTTIEGTVNGHYFKCTGKGEGNPFEGTQEMKI 43 GFP_AEQVI 47 -ICTTGKLPVPWPTLVTTFSYGVQCFSRYPDHMKQHDFFKSAMPEGYVQE 95 :...|.||..:..|.|:..||.:.|.:|...:. |:||.:.|||:..| NFCP_ANESU 44 EVIEGGPLPFAFHILSTSCMYGSKTFIKYVSGIP--DYFKQSFPEGFTWE 91 GFP_AEQVI 96 RTIFFKDDGNYKTRAEVKFEGDTLVNRIELKGIDFKEDGNILGHK----- 140 ||..::|.|......:...:||.||.::::.|.:|..||.::.:| NFCP_ANESU 92 RTTTYEDGGFLTAHQDTSLDGDCLVYKVKILGNNFPADGPVMQNKAGRWE 141 GFP_AEQVI 141 --LEYNYNSHNVY----IMADKQKNGIKVNFKIRHNIEDGSVQLADHYQQ 184 .|..|....|. :||.|...| ||. :..|...|:. NFCP_ANESU 142 PATEIVYEVDGVLRGQSLMALKCPGG-------RHL----TCHLHTTYRS 180 GFP_AEQVI 185 NTPIGDGPVLLPDNHYLSTQSALSKDPNEKRDHMVLLEFVTAAGITHGMD 234 ..|. ..:.:|..|: .||.:.: |: NFCP_ANESU 181 KKPA--SALKMPGFHF--------------EDHRIEI-----------ME 203 GFP_AEQVI 235 ELYK 238 |:.| NFCP_ANESU 204 EVEKGKCYKQYEAAVGRYCDAAPSKLGHN 232
Turn in your code and sample output from testing in your csc277 directory on the cs.centenary.edu server.