{
AnnotationRowBuilder builder = null;
String tempFString = null;
- if (isAlphafoldModel() || this
- .getTemperatureFactorType() == StructureImportSettings.TFType.PLDDT)
+ if (isAlphafoldModel() || StructureImportSettings.TFType.PLDDT
+ .equals(getTemperatureFactorType()))
{
builder = new AlphaFoldAnnotationRowBuilder();
}
import jalview.datamodel.SequenceI;
import jalview.ext.jmol.JmolParser;
import jalview.structure.StructureImportSettings;
-import jalview.structure.StructureImportSettings.TFType;
import jalview.util.Platform;
/**
.toString());
StructureImportSettings.addSettings(annotFromStructure,
localSecondaryStruct, serviceSecondaryStruct);
+ if (tempfacType != null)
+ {
+ StructureImportSettings.setTemperatureFactorType(tempfacType);
+ }
if (isParseWithJMOL)
{
// needs a File option
alignFile = new JmolParser(
selectedFile == null ? inFile : selectedFile, sourceType,
- tempfacType);
+ StructureImportSettings.getTemperatureFactorType());
}
else
{
public StructureFile(Object inFile, DataSourceType sourceType,
StructureImportSettings.TFType tempfacType) throws IOException
{
- super(inFile, sourceType);
+ super(false, inFile, sourceType);
this.setTemperatureFactorType(tempfacType);
+ doParse();
}
public StructureFile(FileParse fp) throws IOException
.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));