AlignmentAnnotation[] annotations = af.getViewport().getAlignment().getAlignmentAnnotation();
List<String> ssSources = AlignmentUtils.getSecondaryStructureSources(annotations);
+ //List<String> ssSources = AlignmentUtils.extractSSSourceInAlignmentAnnotation(annotations);
+
return ssSources;
}
{
boolean doPCA = pca.isSelected();
String modelName = modelNames.getSelectedItem().toString();
- String ssSource = ssSourceDropdown.getSelectedItem().toString();
+ String ssSource = "";
+ Object selectedItem = ssSourceDropdown.getSelectedItem();
+ if (selectedItem != null) {
+ ssSource = selectedItem.toString();
+ }
SimilarityParams params = getSimilarityParameters(doPCA);
if(ssSource.length()>0)
+ {
params.setSecondaryStructureSource(ssSource);
+ }
if (doPCA)
{
openPcaPanel(modelName, params);