// check for chaincode and mapping
// PFAM style stockhom PDB citation
com.stevesoft.pat.Regex r = new com.stevesoft.pat.Regex(
- "([0-9][0-9A-Za-z]{3})\\s*(.?)\\s*;([0-9]+)-([0-9]+)");
+ "([0-9][0-9A-Za-z]{3})\\s*(.?)\\s*;\\s*([0-9]+)-([0-9]+)");
if (r.search(acn.trim()))
{
String pdbid = r.stringMatched(1);
String chaincode = r.stringMatched(2);
+ if (chaincode==null)
+ {
+ chaincode = " ";
+ }
String mapstart = r.stringMatched(3);
String mapend = r.stringMatched(4);
if (chaincode.equals(" "))
ref = new DBRefEntry(locsrc, version, pdbid + chaincode);
PDBEntry pdbr = new PDBEntry();
pdbr.setId(pdbid);
+ pdbr.setProperty(new Hashtable());
pdbr.getProperty().put("CHAIN", chaincode);
seq.addPDBId(pdbr);
+ } else {
+ System.err.println("Malformed PDB DR line:"+acn);
}
}
else