private List<Chain> getFirstModelChains() { Map<String, Chain> firstModelChains = new LinkedHashMap<>(); Set<String> lookupChainIds = new HashSet<>(getChainIds()); for (Chain chain : chains) { if (lookupChainIds.contains(chain.getId())) { if (!firstModelChains.containsKey(chain.getId())) { firstModelChains.put(chain.getId(), chain); } } } return new ArrayList<>(firstModelChains.values()); }
throw new IllegalArgumentException("Given chain with asym_id "+c.getId()+" is not a member of this entity: "+getChainIds().toString());
for (EntityInfo entityInfo : this.entityInfos) { EntityInfo newEntityInfo = new EntityInfo(entityInfo); // this sets everything but the chains for (String asymId:entityInfo.getChainIds()) {
newS.addChain(c); for (EntityInfo comp : s.getEntityInfos()) { if (comp.getChainIds() != null && comp.getChainIds().contains(c.getChainID())) {