Skip to content

Commit

Permalink
Add intestine into the SupportedOrgan enum
Browse files Browse the repository at this point in the history
  • Loading branch information
ke4 committed Oct 4, 2023
1 parent 06964f6 commit c040a73
Showing 1 changed file with 7 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import lombok.Getter;
import org.springframework.stereotype.Service;
import uk.ac.ebi.atlas.model.OntologyTerm;

Expand All @@ -11,34 +12,25 @@
import static com.google.common.collect.ImmutableMap.toImmutableMap;
import static com.google.common.collect.ImmutableSet.toImmutableSet;

@Getter
enum SupportedOrgan {
PANCREAS("pancreas", "http://purl.obolibrary.org/obo/UBERON_0001264"),
KIDNEY("kidney", "http://purl.obolibrary.org/obo/UBERON_0002113"),
LIVER("liver", "http://purl.obolibrary.org/obo/UBERON_0002107"),
PLACENTA("placenta", "http://purl.obolibrary.org/obo/UBERON_0001987"),
LUNG("lung", "http://purl.obolibrary.org/obo/UBERON_0002048");
LUNG("lung", "http://purl.obolibrary.org/obo/UBERON_0002048"),
INTESTINE("intestine", "http://purl.obolibrary.org/obo/UBERON_0000160");

String name;
String ontologyUri;
String ontologyAccession;
final String name;
final String ontologyUri;
final String ontologyAccession;

SupportedOrgan(String name, String ontologyUri) {
this.name = name;
this.ontologyUri = ontologyUri;
this.ontologyAccession = OntologyTerm.create(ontologyUri).accession();
}

public String getName() {
return name;
}

public String getOntologyUri() {
return ontologyUri;
}

public String getOntologyAccession() {
return ontologyAccession;
}
}


Expand Down

0 comments on commit c040a73

Please sign in to comment.