// Now lets compare the sequences to get
// the start and end points.
// Align the sequence to the pdb
+ // TODO: DNa/Pep switch
AlignSeq as = new AlignSeq(sequence, ((PDBChain) pdb.chains
- .elementAt(i)).sequence, "pep");
+ .elementAt(i)).sequence, ((PDBChain) pdb.chains.elementAt(i)).isNa ? AlignSeq.DNA : AlignSeq.PEP);
as.calcScoreMatrix();
as.traceAlignment();
PrintStream ps = new PrintStream(System.out)
for (int i = 0; i < pdb.chains.size(); i++)
{
+
+ // TODO: correctly determine sequence type for mixed na/peptide structures
AlignSeq as = new AlignSeq(sequence[s], ((PDBChain) pdb.chains
- .elementAt(i)).sequence, AlignSeq.PEP);
+ .elementAt(i)).sequence, ((PDBChain)pdb.chains.elementAt(i)).isNa ? AlignSeq.DNA : AlignSeq.PEP);
as.calcScoreMatrix();
as.traceAlignment();
PDBChain chain = ((PDBChain) pdb.chains.elementAt(i));