Skip to content

Commit

Permalink
feat: support ZFA ontology (with ZFS terms imported) in 5.2.1-experim…
Browse files Browse the repository at this point in the history
…ental (#234)
  • Loading branch information
nayib-jose-gloria authored Oct 23, 2024
1 parent 9c4292d commit dff7aad
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/python/ontology-assets-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
35041597fa4154a02c9c2b1e15f703890fecd372
80e9f1eea3f87c21aad9d045f5c9e3b7b74bc78b
3 changes: 3 additions & 0 deletions api/python/src/cellxgene_ontology_guide/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ class Ontology(Enum):
MmusDv = "mmusdv"
PATO = "pato"
NCBITaxon = "ncbitaxon"
FBbt = "fbbt"
FBdv = "fbdv"
ZFA = "zfa"


class CuratedOntologyTermList(Enum):
Expand Down
9 changes: 9 additions & 0 deletions asset-schemas/ontology_info_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@
},
"PATO": {
"$ref": "#/definitions/ontologyEntry"
},
"FBbt": {
"$ref": "#/definitions/ontologyEntry"
},
"FBdv": {
"$ref": "#/definitions/ontologyEntry"
},
"ZFA": {
"$ref": "#/definitions/ontologyEntry"
}
}
}
Expand Down
14 changes: 14 additions & 0 deletions asset-schemas/ontology_term_id_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@
"type": "string",
"pattern": "^FBdv+:[0-9]+$"
},
"ZFA_term_id": {
"type": "string",
"pattern": "^ZFA+:[0-9]+$"
},
"ZFS_term_id": {
"type": "string",
"pattern": "^ZFS+:[0-9]+$"
},
"supported_term_id": {
"anyOf": [
{
Expand Down Expand Up @@ -82,6 +90,12 @@
,
{
"$ref": "#/definitions/FBdv_term_id"
},
{
"$ref": "#/definitions/ZFA_term_id"
},
{
"$ref": "#/definitions/ZFS_term_id"
}
]
}
Expand Down
Binary file added ontology-assets/ZFA-ontology-v2022-12-09.json.gz
Binary file not shown.
8 changes: 8 additions & 0 deletions ontology-assets/ontology_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@
"version": "v2024-10-17",
"source": "https://github.com/FlyBase/drosophila-developmental-ontology/releases/download",
"filename": "fbdv.owl"
},
"ZFA": {
"version": "v2022-12-09",
"source": "https://github.com/ZFIN/zebrafish-anatomical-ontology/raw",
"filename": "zfa.owl",
"additional_ontologies": [
"ZFS"
]
}
}
},
Expand Down

0 comments on commit dff7aad

Please sign in to comment.