Skip to content

Commit

Permalink
SCRUM-4603 set genetic entity association via getFullRelation (#1220)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmpich authored Nov 25, 2024
1 parent ffa748b commit 5b2ca05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ private static void extracted(DiseaseAnnotationDocument annotation, org.alliance
if (primaryAnnotation.getGeneticSex() != null) {
row.setGeneticSex(primaryAnnotation.getGeneticSex().getName());
}
row.setGeneticEntityAssociation(getGeneratedRelationString(primaryAnnotation.getRelation().getName(), primaryAnnotation.getNegated()));
row.setGeneticEntityAssociation(primaryAnnotation.getFullRelationString());
if (CollectionUtils.isNotEmpty(primaryAnnotation.getRelatedNotes())) {
row.setNote(primaryAnnotation.getRelatedNotes().stream().map(note -> {
String freeNote = note.getFreeText().replace("\n", " ");
Expand Down Expand Up @@ -305,13 +305,6 @@ private static void extracted(DiseaseAnnotationDocument annotation, org.alliance
}


private static String getGeneratedRelationString(String relation, Boolean negated) {
if (!negated) {
return relation;
}
return relation.replaceFirst("_", "_not_");
}

private DiseaseDownloadRow getDiseaseDownloadRow(DiseaseAnnotation annotation, PrimaryAnnotatedEntity entity, PublicationJoin join, Gene homologousGene) {
DiseaseDownloadRow row = getBaseDownloadRow(annotation, join, homologousGene);

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
<quarkus.platform.group-id>io.quarkus.platform</quarkus.platform.group-id>
<quarkus.platform.version>${quarkus.version}</quarkus.platform.version>
<curation.version>v0.35.0</curation.version>
<curation.version>v0.35.1</curation.version>
<!-- <curation.version>0.0.0-SNAPSHOT</curation.version> -->
</properties>
<dependencyManagement>
Expand Down

0 comments on commit 5b2ca05

Please sign in to comment.