Skip to content

Commit

Permalink
[Feature] Add gut anatomogram (#359)
Browse files Browse the repository at this point in the history
* Pull and update latest submodule changes

* Add intestine into the SupportedOrgan enum

* Reformat gut enum for supportedOrgan

* Set region/zone for pods to match volume locations

---------

Co-authored-by: lingyun1010 <[email protected]>
Co-authored-by: Alfonso Muñoz-Pomer Fuentes <[email protected]>
  • Loading branch information
3 people authored Oct 11, 2023
1 parent 4839fdb commit 8923733
Show file tree
Hide file tree
Showing 2 changed files with 9 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"),
GUT("gut", "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
2 changes: 2 additions & 0 deletions jenkins-k8s-pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: Pod
metadata:
namespace: jenkins-gene-expression
spec:
nodeSelector:
topology.kubernetes.io/zone: "europe-west2-a"
serviceAccountName: admin-jenkins-gene-expression
# If we set workspaceVolume dynamicPVC() or workspaceVolume persistentVolumeClaimWorkspaceVolume() we need to add a
# fsGroup 1000 to make the /home/jenkins/agent directory writable. Otherwise, we get the following exception in the
Expand Down

0 comments on commit 8923733

Please sign in to comment.