{
String chid = null;
// Mapping map=null;
- for (PDBEntry pid : pdbcs.getPDBId())
+ for (PDBEntry pid : pdbcs.getAllPDBEntries())
{
if (pid.getFile() == file)
{
for (SequenceI pdbcs : toremove)
{
pdbfile.deleteSequence(pdbcs);
- if (pdbcs.getAnnotation()!=null)
+ if (pdbcs.getAnnotation() != null)
{
- for (AlignmentAnnotation aa: pdbcs.getAnnotation())
+ for (AlignmentAnnotation aa : pdbcs.getAnnotation())
{
pdbfile.deleteAnnotation(aa);
}
if (pdbfile == null || pdbfile.getHeight() < 1)
{
- throw new Exception(MessageManager.formatMessage("exception.no_pdb_records_for_chain", new String[]{id, ((chain == null) ? "' '" : chain)}));
+ throw new Exception(MessageManager.formatMessage(
+ "exception.no_pdb_records_for_chain", new String[] { id,
+ ((chain == null) ? "' '" : chain) }));
}
} catch (Exception ex) // Problem parsing PDB file