- PDBRestRequest pdbRequest = new PDBRestRequest();
- pdbRequest.setAllowEmptySeq(false);
- pdbRequest.setResponseSize(1);
- pdbRequest.setFieldToSearchBy("(text:");
- pdbRequest.setFieldToSortBy(fieldToFilterBy,
- !chk_invertFilter.isSelected());
- pdbRequest.setSearchTerm(buildQuery(seq) + ")");
- pdbRequest.setWantedFields(wantedFields);
- pdbRequest.setAssociatedSequence(seq.getName());
- pdbRestCleint = new PDBRestClient();
- PDBRestResponse resultList = pdbRestCleint
- .executeRequest(pdbRequest);
- lastPdbRequest = pdbRequest;
- if (resultList.getSearchSummary() != null
- && !resultList.getSearchSummary().isEmpty())
- {
- filteredResponse.addAll(resultList.getSearchSummary());
- }