X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Fio%2FStructureFile.java;h=3fb62c56f177911f24a28bd4a45d818704d22102;hb=faf491e024f9835435f5dd6c20a033250dd9297d;hp=61b3d1dbe47bac918109425f90f9ae5ec5c5a555;hpb=ec24991b1786e17158a43f713c8ae9c4f8647393;p=jalview.git diff --git a/src/jalview/io/StructureFile.java b/src/jalview/io/StructureFile.java index 61b3d1d..3fb62c5 100644 --- a/src/jalview/io/StructureFile.java +++ b/src/jalview/io/StructureFile.java @@ -242,7 +242,7 @@ public abstract class StructureFile extends AlignFile protected void processPdbFileWithAnnotate3d(List rna) throws Exception { - // System.out.println("this is a PDB format and RNA sequence"); + // jalview.bin.Console.outPrintln("this is a PDB format and RNA sequence"); // note: we use reflection here so that the applet can compile and run // without the HTTPClient bits and pieces needed for accessing Annotate3D // web service @@ -336,7 +336,8 @@ public abstract class StructureFile extends AlignFile processPdbFileWithAnnotate3d(rnaSequences); } catch (Exception x) { - System.err.println("Exceptions when dealing with RNA in pdb file"); + jalview.bin.Console + .errPrintln("Exceptions when dealing with RNA in pdb file"); x.printStackTrace(); } @@ -352,61 +353,13 @@ public abstract class StructureFile extends AlignFile processWithJmolParser(proteinSequences, true); } catch (Exception x) { - System.err.println( + jalview.bin.Console.errPrintln( "Exceptions from Jmol when processing data in pdb file"); x.printStackTrace(); } } } - @SuppressWarnings({ "unchecked", "rawtypes" }) - private void NOTprocessWithJmolParser(List prot) - throws Exception - { - try - { - - Class cl = Class.forName("jalview.ext.jmol.JmolParser"); - if (cl != null) - { - final Constructor constructor = cl - .getConstructor(new Class[] - { FileParse.class }); - final Object[] args = new Object[] { - new FileParse(getDataName(), dataSourceType) }; - - StructureImportSettings.setShowSeqFeatures(false); - StructureImportSettings.setVisibleChainAnnotation(false); - StructureImportSettings - .setProcessSecondaryStructure(predictSecondaryStructure); - StructureImportSettings - .setExternalSecondaryStructure(externalSecondaryStructure); - StructureImportSettings - .setTemperatureFactorType(temperatureFactorType); - Object jmf = constructor.newInstance(args); - AlignmentI al = new Alignment((SequenceI[]) cl - .getMethod("getSeqsAsArray", new Class[] {}).invoke(jmf)); - cl.getMethod("addAnnotations", new Class[] { AlignmentI.class }) - .invoke(jmf, al); - for (SequenceI sq : al.getSequences()) - { - if (sq.getDatasetSequence() != null) - { - sq.getDatasetSequence().getAllPDBEntries().clear(); - } - else - { - sq.getAllPDBEntries().clear(); - } - } - replaceAndUpdateChains(prot, al, AlignSeq.PEP, false); - } - } catch (ClassNotFoundException q) - { - } - StructureImportSettings.setShowSeqFeatures(true); - } - private void processWithJmolParser(List prot, boolean doXferSettings) throws MalformedURLException, IOException {