registerPDBFile(pdb.getId().trim(), pdbFile);
}
// if PDBId is unavailable then skip SIFTS mapping execution path
- isMapUsingSIFTs = isMapUsingSIFTs && pdb.isPPDBIdAvailable();
+ // TODO: JAL-3868 need to know if structure is actually from
+ // PDB (has valid PDB ID and has provenance suggesting it
+ // actually came from PDB)
+ boolean isProtein = false;
+ for (SequenceI s:sequenceArray) {
+ if (s.isProtein()) {
+ isProtein = true;
+ break;
+ }
+ }
+ isMapUsingSIFTs = isMapUsingSIFTs && pdb.isPPDBIdAvailable() && !pdb.getId().startsWith("AF-") && isProtein;
} catch (Exception ex)
{
} catch (SiftsException e)
{
isMapUsingSIFTs = false;
- e.printStackTrace();
+ Cache.log.error("SIFTS mapping failed", e);
+ Cache.log.error("Falling back on Needleman & Wunsch alignment");
siftsClient = null;
}