}
/**
+ * Answers a (possibly empty) list of structure to sequence mappings matching
+ * the given pdb and chain ids
+ *
+ * @param pdbId
+ * @param chain
+ * @return
+ */
+ public List<StructureMapping> getMappingForChain(String pdbId,
+ String chain)
+ {
+ List<StructureMapping> result = new ArrayList<>();
+ for (StructureMapping sm : mappings)
+ {
+ if (sm.pdbid.equals(pdbId) && sm.pdbchain.equals(chain))
+ {
+ result.add(sm);
+ }
+ }
+ return result;
+ }
+
+ /**
* Returns a readable description of all mappings for the given pdbfile to any
* of the given sequences
*