StructureSelectionManagerProvider ssmp)
{
return associatePdbWithSeq(choice, file, sequence, prompt, ssmp,
- TFType.DEFAULT, null);
+ TFType.DEFAULT, null, false);
}
public PDBEntry associatePdbWithSeq(String choice, DataSourceType file,
SequenceI sequence, boolean prompt,
StructureSelectionManagerProvider ssmp, TFType tft,
- String paeFilename)
+ String paeFilename, boolean doXferSettings)
{
PDBEntry entry = new PDBEntry();
StructureFile pdbfile = StructureSelectionManager
.getStructureSelectionManager(ssmp)
.setMapping(false, new SequenceI[]
- { sequence }, null, choice, file, tft, paeFilename);
+ { sequence }, null, choice, file, tft, paeFilename,
+ doXferSettings);
if (pdbfile == null)
{
// stacktrace already thrown so just return
{
entry.setFile(choice);
sequence.getDatasetSequence().addPDBId(entry);
+ entry.setStructureFile(pdbfile);
StructureSelectionManager.getStructureSelectionManager(ssmp)
.registerPDBEntry(entry);
- entry.setStructureFile(pdbfile);
}
+ if (tft != null)
+ entry.setProperty("TFType", tft.name());
+ if (paeFilename != null)
+ entry.setProperty("PAEFile", paeFilename);
return entry;
}
}