Skip to content

Commit

Permalink
Some have eco codes
Browse files Browse the repository at this point in the history
  • Loading branch information
oblodgett committed Feb 7, 2025
1 parent df21e4a commit 07be1db
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import org.alliancegenome.curation_api.exceptions.ValidationException;
import org.alliancegenome.curation_api.model.entities.Allele;
import org.alliancegenome.curation_api.model.entities.Gene;
import org.alliancegenome.curation_api.model.entities.VocabularyTerm;
import org.alliancegenome.curation_api.model.entities.associations.alleleAssociations.AlleleGeneAssociation;
import org.alliancegenome.curation_api.model.ingest.dto.associations.alleleAssociations.AlleleGeneAssociationDTO;
import org.alliancegenome.curation_api.response.ObjectResponse;
Expand Down Expand Up @@ -71,8 +70,7 @@ public AlleleGeneAssociation validateAlleleGeneAssociationDTO(AlleleGeneAssociat
association = new AlleleGeneAssociation();
}

VocabularyTerm relation = validateRequiredTermInVocabularyTermSet("relation_name", dto.getRelationName(), VocabularyConstants.ALLELE_GENE_RELATION_VOCABULARY_TERM_SET);
association.setRelation(relation);
association = validateAlleleGenomicEntityAssociationDTO(association, dto, VocabularyConstants.ALLELE_GENE_RELATION_VOCABULARY_TERM_SET);

if (association.getAlleleAssociationSubject() == null && !StringUtils.isBlank(dto.getAlleleIdentifier())) {

Expand Down

0 comments on commit 07be1db

Please sign in to comment.