}
return targetChainId;
}
- protected static Pattern id_and_chain=Pattern.compile("(\\d[0-9A-Za-z]{3})[_:|]?(.{1,2})?");
+ protected static Pattern id_and_chain=Pattern.compile("(\\d[0-9A-Za-z]{3})[_:|]?([0-9A-Za-z]{1,2})?.*");
public static List<PDBEntry> inferPDBEntry(SequenceI seq)
{
Matcher matcher = id_and_chain.matcher(seq.getName());
+
if (matcher.matches())
{
String id = matcher.group(1);