- if (structfile != null)
- {
- Console.debug("##### Attaching paeFile '" + paePath + "' to "
- + "structfile=" + structfile);
- EBIAlfaFold.addAlphaFoldPAE(af.getCurrentView().getAlignment(),
- paeFile, seqindex, structfile, true, false, paeLabel);
- }
- else if (structid != null)
- {
- Console.debug("##### Attaching paeFile '" + paePath + "' to "
- + "structid=" + structid);
- EBIAlfaFold.addAlphaFoldPAE(af.getCurrentView().getAlignment(),
- paeFile, seqindex, structid, true, true, paeLabel);
- }
- else if (seqid != null)
- {
- Console.debug("##### Attaching paeFile '" + paePath + "' to "
- + "seqid=" + seqid);
- EBIAlfaFold.addAlphaFoldPAE(af.getCurrentView().getAlignment(),
- paeFile, seqindex, seqid, false, false, paeLabel);
- }
- else if (seqindex >= 0)
- {
- Console.debug("##### Attaching paeFile '" + paePath
- + "' to sequence index " + seqindex);
- EBIAlfaFold.addAlphaFoldPAE(af.getCurrentView().getAlignment(),
- paeFile, seqindex, null, false, false, paeLabel);
- }
- for (AlignmentViewPanel ap : af.getAlignPanels())
- {
- // required to readjust the height and position of the PAE
- // annotation
- ap.adjustAnnotationHeight();
- }
+ // TODO pass PAE label
+ StructureChooser.openStructureFileForSequence(null, null, ap, seq,
+ false, structureFilepath, tft, paeFilepath);