+ private void processWithJmolParser(List<SequenceI> prot,
+ boolean doXferSettings) throws MalformedURLException, IOException
+ {
+ FileParse fp = new FileParse(getDataName(), dataSourceType);
+
+ StructureImportSettings.setShowSeqFeatures(false);
+ StructureImportSettings.setVisibleChainAnnotation(false);
+ StructureImportSettings
+ .setProcessSecondaryStructure(predictSecondaryStructure);
+ StructureImportSettings
+ .setExternalSecondaryStructure(externalSecondaryStructure);
+ StructureImportSettings.setTemperatureFactorType(temperatureFactorType);
+ JmolParser jmf = new JmolParser(fp, doXferSettings);
+ AlignmentI al = new Alignment((SequenceI[]) jmf.getSeqsAsArray());
+ jmf.addAnnotations(al);
+ for (SequenceI sq : al.getSequences())
+ {
+ if (sq.getDatasetSequence() != null)
+ {
+ sq.getDatasetSequence().getAllPDBEntries().clear();
+ }
+ else
+ {
+ sq.getAllPDBEntries().clear();
+ }
+ }
+ replaceAndUpdateChains(prot, al, AlignSeq.PEP, false);
+ StructureImportSettings.setShowSeqFeatures(true);
+ }
+
+ /**
+ * Answers the first PDBChain found matching the given id, or null if none is
+ * found
+ *
+ * @param id
+ * @return
+ */
+ public PDBChain findChain(String id)