ScriptWindow scriptWindow;
PDBEntry pdbentry;
SequenceI[] sequence;
+ String [] chains;
StructureSelectionManager ssm;
JSplitPane splitPane;
RenderPanel renderPanel;
pdbentry = new PDBEntry();
pdbentry.setFile(file);
pdbentry.setId(id);
+ this.chains = chains;
this.sequence = seq;
this.ap = ap;
this.setBounds(bounds);
sequence = tmp;
}
- public AppJMol(PDBEntry pdbentry, SequenceI[] seq, AlignmentPanel ap)
+ public AppJMol(PDBEntry pdbentry, SequenceI[] seq, String [] chains, AlignmentPanel ap)
{
//////////////////////////////////
//Is the pdb file already loaded?
if (option == JOptionPane.YES_OPTION)
{
StructureSelectionManager.getStructureSelectionManager()
- .setMapping(seq, alreadyMapped, AppletFormatAdapter.FILE);
+ .setMapping(seq, chains, alreadyMapped, AppletFormatAdapter.FILE);
if (ap.seqPanel.seqCanvas.fr!=null) {
ap.seqPanel.seqCanvas.fr.featuresAdded();
ap.paintAlignment(true);
//FILE LOADED OK
ssm = StructureSelectionManager.getStructureSelectionManager();
- MCview.PDBfile pdbFile = ssm.setMapping(sequence, pdbentry.getFile(), AppletFormatAdapter.FILE);
+ MCview.PDBfile pdbFile = ssm.setMapping(sequence,chains,pdbentry.getFile(), AppletFormatAdapter.FILE);
ssm.addStructureViewerListener(this);
Vector chains = new Vector();
for(int i=0; i<pdbFile.chains.size(); i++)