Map<String,String> interactorAccsA = encoreInteraction.getInteractorAccsA(); Map<String,String> interactorAccsB = encoreInteraction.getInteractorAccsB(); for(Integer iId:interactionMappingIdsForInteractorAccA){ mappingEcoreInteraction = interactionMapping.get(iId); Map<String,String> mappingInteractorAccsA = mappingEcoreInteraction.getInteractorAccsA(); Map<String,String> mappingInteractorAccsB = mappingEcoreInteraction.getInteractorAccsB(); for(String acc:mappingInteractorAccsA.values()){ for(String acc:encoreInteraction.getInteractorAccsA().values()){ if(!synonymMapping.containsKey(acc) && !acc.equalsIgnoreCase(interactorAccA)){ synonymMapping.put(acc, interactorAccA);
List<CrossReference> psiAlternativeIdentifierA= new ArrayList<CrossReference>(); String encoreInteractorA = encoreInteraction.getInteractorA(mappingIdDbNames); Map<String,String> encoreInteractorAccsA = encoreInteraction.getInteractorAccsA(); updateIdentifiers(psiIdentifierA, psiAlternativeIdentifierA, encoreInteractorAccsA, encoreInteractorA); List<CrossReference> psiIdentifierB= new ArrayList<CrossReference>();
for(String acc:mappingEcoreInteraction.getInteractorAccsA().values()){ if(encoreInteraction.getInteractorAccsA().containsValue(acc)){ swapInteractors = false; break swap_loop; mappingEcoreInteraction.addInteractorAccsB(encoreInteraction.getInteractorAccsA()); mappingEcoreInteraction.addOtherInteractorAccsA(encoreInteraction.getOtherInteractorAccsB()); mappingEcoreInteraction.addOtherInteractorAccsB(encoreInteraction.getOtherInteractorAccsA()); mappingEcoreInteraction.addOrganismsB(encoreInteraction.getOrganismsA()); } else{ mappingEcoreInteraction.addInteractorAccsA(encoreInteraction.getInteractorAccsA()); mappingEcoreInteraction.addInteractorAccsB(encoreInteraction.getInteractorAccsB()); mappingEcoreInteraction.addOtherInteractorAccsA(encoreInteraction.getOtherInteractorAccsA());