public Vector chains;
public String id;
+ /**
+ * set to true to add chain alignment annotation as visible annotation.
+ */
+ boolean VisibleChainAnnotation=false;
public PDBfile(String inFile, String inType)
throws IOException
{
entry.setFile(inFile.getAbsolutePath());
}
dataset.addPDBId(entry);
- getSeqs().addElement(dataset.deriveSequence()); // PDBChain objects maintain reference to dataset
+ SequenceI chainseq = dataset.deriveSequence(); // PDBChain objects maintain reference to dataset
+ seqs.addElement(chainseq);
+ AlignmentAnnotation[] chainannot = chainseq.getAnnotation();
+ if (chainannot!=null)
+ {
+ for (int ai=0; ai<chainannot.length; ai++)
+ {
+ chainannot[ai].visible=VisibleChainAnnotation;
+ annotations.addElement(chainannot[ai]);
+ }
+ }
}
}
catch (OutOfMemoryError er)