Skip to content
Merged
Changes from all commits
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 @@ -2,6 +2,8 @@

import org.alliancegenome.api.entity.PhenotypeAnnotationDocument;
import org.alliancegenome.curation_api.model.entities.AGMPhenotypeAnnotation;
import org.alliancegenome.curation_api.model.entities.AllelePhenotypeAnnotation;
import org.alliancegenome.curation_api.model.entities.GenePhenotypeAnnotation;
import org.alliancegenome.curation_api.model.entities.PhenotypeAnnotation;
import org.apache.commons.collections.CollectionUtils;

Expand Down Expand Up @@ -43,6 +45,16 @@ private PhenotypeDownloadRow getPhenotypeDownloadRow(PhenotypeAnnotation annotat
row.setGeneticEntityName(annot.getPhenotypeAnnotationSubject().getName());
row.setGeneticEntityType(annot.getPhenotypeAnnotationSubject().getSubtype().getName());
}
if (annotation instanceof AllelePhenotypeAnnotation annot) {
row.setGeneticEntityID(annot.getPhenotypeAnnotationSubject().getPrimaryExternalId());
row.setGeneticEntityName(annot.getPhenotypeAnnotationSubject().getAlleleSymbol().getDisplayText());
row.setGeneticEntityType("allele");
}
if (annotation instanceof GenePhenotypeAnnotation annot) {
row.setGeneticEntityID(annot.getPhenotypeAnnotationSubject().getPrimaryExternalId());
row.setGeneticEntityName(annot.getPhenotypeAnnotationSubject().getGeneSymbol().getDisplayText());
row.setGeneticEntityType("gene");
}
return row;
}

Expand Down
Loading