Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump curation version to v0.26.0 (SCRUM-3367) #1130

Merged
merged 4 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public JsonResultResponse<AlleleDiseaseAnnotationDocument> getDiseasePerAllele(S
pagination.addFilterOptions(filterOptions);
pagination.addFilterOption("object.name", diseaseTerm);
pagination.addFilterOption("evidenceCodes.abbreviation", evidenceCode);
pagination.addFilterOption("relationNegation.keyword", associationType);
pagination.addFilterOption("negationInclRelation.keyword", associationType);
pagination.addFilterOption("diseaseQualifiers.keyword", diseaseQualifier);
pagination.addFilterOption("pubmedPubModIDs", filterReference);
pagination.addFilterOption("primaryAnnotations.dataProvider.abbreviation", filterSource);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ public JsonResultResponse<GeneDiseaseAnnotationDocument> getDiseaseAnnotationsRi
pagination.addFilterOptions(filterOptions);
pagination.addFilterOption("object.name", diseaseTerm);
pagination.addFilterOption("evidenceCodes.abbreviation", evidenceCode);
pagination.addFilterOption("relationNegation.keyword", associationType);
pagination.addFilterOption("negationInclRelation.keyword", associationType);
pagination.addFilterOption("diseaseQualifiers.keyword", diseaseQualifier);
pagination.addFilterOption("pubmedPubModIDs", filterReference);
pagination.addFilterOption("subject.geneSymbol.displayText", filterGene);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ private Map<String, Object> getSupplementalData(String focusTaxonId, boolean deb
if (StringUtils.isNotEmpty(focusTaxonId)) {
aggregationFields.put("subject.taxon.name.keyword", "species");
}
aggregationFields.put("relationNegation.keyword", "associationType");
aggregationFields.put("negationInclRelation.keyword", "associationType");
aggregationFields.put("diseaseQualifiers.keyword", "diseaseQualifiers");
Map<String, List<String>> distinctFieldValueMap = getAggregations(unfilteredQuery, aggregationFields, focusTaxonId, debug);
Map<String, Object> supplementalData = new LinkedHashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ private DiseaseDownloadRow getDiseaseDownloadRow(DiseaseAnnotation annotation, P

private DiseaseDownloadRow getBaseDiseaseDownloadRow(GeneDiseaseAnnotationDocument annotation, org.alliancegenome.curation_api.model.entities.Gene homologousGene, org.alliancegenome.curation_api.model.entities.DiseaseAnnotation primaryAnnotation) {
DiseaseDownloadRow row = new DiseaseDownloadRow();
row.setAssociation(annotation.getRelationNegation());
row.setAssociation(annotation.getNegationInclRelation());
row.setDiseaseID(annotation.getObject().getCurie());
row.setDiseaseName(annotation.getObject().getName());
row.setSource(primaryAnnotation.getDataProviderString());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ private List<GeneDiseaseAnnotationDocument> createGeneDiseaseAnnotationDocuments
HashMap<String, Integer> order = SpeciesType.getSpeciesOrderByTaxonID(entry.getValue().getLeft().getTaxon().getCurie());
gdad.setSpeciesOrder(order);
gdad.setRelation(relation);
String relationNegation = getRelationNegation(gdad.getRelation().getName(), da.getNegated());
gdad.setRelationNegation(relationNegation);
String negationInclRelation = getNegationInclRelation(gdad.getRelation().getName(), da.getNegated());
gdad.setNegationInclRelation(negationInclRelation);
gdad.setObject(da.getObject());
gdad.setParentSlimIDs(closureMap.get(da.getObject().getCurie()));
lookup.put(key, gdad);
Expand Down Expand Up @@ -161,7 +161,7 @@ private String getPubmedPubModID(Reference singleReference) {
return null;
}

private String getRelationNegation(String relation, Boolean negated) {
private String getNegationInclRelation(String relation, Boolean negated) {
if (!negated)
return relation;
return relation.replaceFirst("_", "_not_");
Expand All @@ -187,8 +187,8 @@ private List<AlleleDiseaseAnnotationDocument> createAlleleDiseaseAnnotationDocum
adad.setSpeciesOrder(order);
adad.setSubject(entry.getValue().getLeft());
adad.setRelation(da.getRelation());
String relationNegation = getRelationNegation(da.getRelation().getName(), da.getNegated());
adad.setRelationNegation(relationNegation);
String negationInclRelation = getNegationInclRelation(da.getRelation().getName(), da.getNegated());
adad.setNegationInclRelation(negationInclRelation);
adad.setObject(da.getObject());
lookup.put(key, adad);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class DiseaseAnnotationDocument extends SearchableItemDocument {
private Reference singleReference;
private Set<Reference> references;

private String relationNegation;
private String negationInclRelation;
mluypaert marked this conversation as resolved.
Show resolved Hide resolved
mluypaert marked this conversation as resolved.
Show resolved Hide resolved
private Set<String> diseaseQualifiers;
private Set<String> pubmedPubModIDs;
private Set<String> parentSlimIDs;
Expand Down
Loading