if (pdbId == null)
{
setId(safeName(getDataName()));
+ setPDBIdAvailable(false);
}
else
{
setId(pdbId);
+ setPDBIdAvailable(true);
}
List<Atom> significantAtoms = convertSignificantAtoms(ms);
for (Atom tmpatom : significantAtoms)
private Vector<PDBChain> chains;
+ private boolean pdbIdAvailable;
+
public StructureFile(String inFile, String type) throws IOException
{
super(inFile, type);
{
return new PDBFeatureSettings();
}
+
+ /**
+ * Answers true if the structure file has a PDBId
+ *
+ * @return
+ */
+ public boolean isPPDBIdAvailable()
+ {
+ return pdbIdAvailable;
+ }
+
+ public void setPDBIdAvailable(boolean pdbIdAvailable)
+ {
+ this.pdbIdAvailable = pdbIdAvailable;
+ }
}
{
registerPDBFile(pdb.getId().trim(), pdbFile);
}
- // if PDB/mmCIF file is local then don't perform SIFTS MAPPING
- if (pdb.getId().contains("."))
- {
- isMapUsingSIFTs = false;
- }
+ // if PDBId is unavailable then skip SIFTS mapping execution path
+ isMapUsingSIFTs = pdb.isPPDBIdAvailable();
+
} catch (Exception ex)
{
ex.printStackTrace();