}
for (int i = 0; i < features.length; i++)
{
- if (features[i].getFeatureGroup().equals(pdbid))
+ if (features[i].getFeatureGroup() != null
+ && features[i].getFeatureGroup().equals(pdbid))
{
SequenceFeature tx = new SequenceFeature(features[i]);
tx.setBegin(1 + residues.elementAt(tx.getBegin() - offset).atoms
List<SequenceI> prot = new ArrayList<SequenceI>();
PDBChain tmpchain;
String pdbId = (String) ms.getInfo(0, "title");
- setId(pdbId);
+
+ if (pdbId == null)
+ {
+ setId(safeName(getDataName()));
+ }
+ else
+ {
+ setId(pdbId);
+ }
List<Atom> significantAtoms = convertSignificantAtoms(ms);
for (Atom tmpatom : significantAtoms)
{
tmpchain.atoms.addElement(tmpatom);
} catch (Exception e)
{
- tmpchain = new PDBChain(pdbId, tmpatom.chain);
+ tmpchain = new PDBChain(getId(), tmpatom.chain);
getChains().add(tmpchain);
tmpchain.atoms.addElement(tmpatom);
}
makeResidueList();
makeCaBondList();
- if (getId() == null)
- {
- setId(safeName(getDataName()));
- }
for (PDBChain chain : getChains())
{
SequenceI chainseq = postProcessChain(chain);
{
registerPDBFile(pdb.getId().trim(), pdbFile);
}
+ // if PDB/mmCIF file is local then don't perform SIFTS MAPPING
+ if (pdb.getId().contains("."))
+ {
+ isMapUsingSIFTs = false;
+ }
} catch (Exception ex)
{
ex.printStackTrace();