* the tried and tested MCview pdb mapping
*/
MCview.PDBfile pdb = null;
+ boolean parseSecStr=true;
+ for (SequenceI sq:sequence)
+ {
+ SequenceI ds = sq;while (ds.getDatasetSequence()!=null) { ds = ds.getDatasetSequence();};
+ if (ds.getAnnotation()!=null)
+ {
+ for (AlignmentAnnotation ala:ds.getAnnotation())
+ {
+ // false if any annotation present from this structure
+ if (MCview.PDBfile.isCalcIdForFile(ala.getCalcId(), pdbFile))
+ {
+ parseSecStr = false;
+ }
+ }
+ }
+ }
try
{
- pdb = new MCview.PDBfile(pdbFile, protocol);
+ pdb = new MCview.PDBfile(true, parseSecStr, pdbFile, protocol);
+
} catch (Exception ex)
{
ex.printStackTrace();