private boolean pdbIdAvailable;
- private StructureImportSettings.TFType temperatureFactorType = TFType.DEFAULT;
+ private TFType temperatureFactorType = TFType.DEFAULT;
private String paeMatrix = null;
return paeMatrix != null;
}
- public void setTemperatureFactorType(StructureImportSettings.TFType t)
+ public void setTemperatureFactorType(TFType t)
{
this.temperatureFactorType = t;
}
- public StructureImportSettings.TFType getTemperatureFactorType()
+ public TFType getTemperatureFactorType()
{
return temperatureFactorType;
}
}
public StructureFile(Object inFile, DataSourceType sourceType,
- StructureImportSettings.TFType tempfacType) throws IOException
+ TFType tempfacType) throws IOException
{
super(false, inFile, sourceType);
this.setTemperatureFactorType(tempfacType);
}
}
- @SuppressWarnings({ "unchecked", "rawtypes" })
- private void NOTprocessWithJmolParser(List<SequenceI> 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<SequenceI> prot,
boolean doXferSettings) throws MalformedURLException, IOException
{