JAL-2321 use configured values for structure derived annotation
authorJim Procter <jprocter@issues.jalview.org>
Mon, 7 May 2018 16:43:56 +0000 (17:43 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Mon, 7 May 2018 16:43:56 +0000 (17:43 +0100)
src/jalview/structure/StructureSelectionManager.java

index 34ca6ba..cd986c0 100644 (file)
@@ -399,7 +399,9 @@ public class StructureSelectionManager
       // FIXME if sourceType is not null, we've lost data here
       sourceType = AppletFormatAdapter.checkProtocol(pdbFile);
       pdb = new JmolParser(false, pdbFile, sourceType);
-      pdb.addSettings(parseSecStr, parseSecStr, parseSecStr);
+      pdb.addSettings(parseSecStr && processSecondaryStructure,
+              parseSecStr && addTempFacAnnot,
+              parseSecStr && secStructServices);
       pdb.doParse();
       if (pdb.getId() != null && pdb.getId().trim().length() > 0
               && DataSourceType.FILE == sourceType)