Skip to content

Commit 661d5a8

Browse files
authored
Merge pull request #208 from puja-trivedi/20251020_bketaxonomy
20251020 bketaxonomy
2 parents affd8f2 + 7ac39aa commit 661d5a8

File tree

5 files changed

+43
-33
lines changed

5 files changed

+43
-33
lines changed

json-schema-autogen/bke_taxonomy.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6237,12 +6237,12 @@
62376237
"Region": {
62386238
"description": "",
62396239
"enum": [
6240-
"STR",
6241-
"GPe",
6242-
"GPi",
6243-
"SN",
6244-
"Adj",
6245-
"STH"
6240+
"str",
6241+
"gpe",
6242+
"gpi",
6243+
"sn",
6244+
"adj",
6245+
"sth"
62466246
],
62476247
"title": "Region",
62486248
"type": "string"
@@ -6555,6 +6555,8 @@
65556555
},
65566556
"sth": {
65576557
"description": "Proportion of composition found in Subthalamic Nucleus",
6558+
"maximum": "1.0",
6559+
"minimum": "0.0",
65586560
"type": [
65596561
"number",
65606562
"null"

linkml-schema/bke_taxonomy.yaml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,24 @@ enums:
3535
Region:
3636
from_schema: https://w3id.org/brain-bican/bke-taxonomy
3737
permissible_values:
38-
STR:
38+
str:
3939
description: Striatum
40-
GPe:
40+
title: STR
41+
gpe:
4142
description: External Globus Pallidus
42-
GPi:
43+
title: GPe
44+
gpi:
4345
description: Internal Globus Pallidus
44-
SN:
46+
title: GPi
47+
sn:
4548
description: Substantia Nigra
46-
Adj:
49+
title: SN
50+
adj:
4751
description: Adjacent Regions
48-
STH:
52+
title: Adj
53+
sth:
4954
description: Subthalamic Nucleus
55+
title: STH
5056
slots:
5157
part_of_taxonomy:
5258
from_schema: https://w3id.org/brain-bican/bke-taxonomy
@@ -804,3 +810,5 @@ classes:
804810
description: Proportion of composition found in Subthalamic Nucleus
805811
from_schema: https://w3id.org/brain-bican/bke-taxonomy
806812
range: float
813+
minimum_value: '0.0'
814+
maximum_value: '1.0'

linkml-schema/source_bke_taxonomy/gsheet_output/Slots.tsv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ SpatialProportions gpe float Proportion of composition found in External Globus
5858
SpatialProportions gpi float Proportion of composition found in Internal Globus Pallidus 0 1
5959
SpatialProportions sn float Proportion of composition found in Substantia Nigra 0 1
6060
SpatialProportions adj float Proportion of composition found in Adjacent Regions 0 1
61-
SpatialProportions sth float Proportion of composition found in Subthalamic Nucleus
61+
SpatialProportions sth float Proportion of composition found in Subthalamic Nucleus 0 1
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
variable_name value description
2-
> enum permissible_value description
3-
AbbreviationEntityType cell_type Abbreviation denotes a Cell Type entity.
4-
AbbreviationEntityType gene Abbreviation denotes a Gene entity.
5-
AbbreviationEntityType anatomical Abbreviation denotes a Anatomical Structure entity.
6-
CellTypeSetType taxonomic_level Denotes CellTypeSet is at Taxonomic level.
7-
CellTypeSetType neighborhood Denotes CellTypeSet is at Neighborhood level.
8-
Region STR Striatum
9-
Region GPe External Globus Pallidus
10-
Region GPi Internal Globus Pallidus
11-
Region SN Substantia Nigra
12-
Region Adj Adjacent Regions
13-
Region STH Subthalamic Nucleus
1+
variable_name value title meaning description
2+
> enum permissible_value title meaning description
3+
AbbreviationEntityType cell_type Abbreviation denotes a Cell Type entity.
4+
AbbreviationEntityType gene Abbreviation denotes a Gene entity.
5+
AbbreviationEntityType anatomical Abbreviation denotes a Anatomical Structure entity.
6+
CellTypeSetType taxonomic_level Denotes CellTypeSet is at Taxonomic level.
7+
CellTypeSetType neighborhood Denotes CellTypeSet is at Neighborhood level.
8+
Region str STR Striatum
9+
Region gpe GPe External Globus Pallidus
10+
Region gpi GPi Internal Globus Pallidus
11+
Region sn SN Substantia Nigra
12+
Region adj Adj Adjacent Regions
13+
Region sth STH Subthalamic Nucleus

models_py-autogen/bke_taxonomy.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,17 +134,17 @@ class CellTypeSetType(str, Enum):
134134

135135
class Region(str, Enum):
136136
# Striatum
137-
STR = "STR"
137+
STR = "str"
138138
# External Globus Pallidus
139-
GPe = "GPe"
139+
GPe = "gpe"
140140
# Internal Globus Pallidus
141-
GPi = "GPi"
141+
GPi = "gpi"
142142
# Substantia Nigra
143-
SN = "SN"
143+
SN = "sn"
144144
# Adjacent Regions
145-
Adj = "Adj"
145+
Adj = "adj"
146146
# Subthalamic Nucleus
147-
STH = "STH"
147+
STH = "sth"
148148

149149

150150

@@ -18885,7 +18885,7 @@ class SpatialProportions(ProvEntity, RelativeFrequencyAnalysisResult):
1888518885
gpi: Optional[float] = Field(default=None, description="""Proportion of composition found in Internal Globus Pallidus""", ge=0, le=1, json_schema_extra = { "linkml_meta": {'alias': 'gpi', 'domain_of': ['SpatialProportions']} })
1888618886
sn: Optional[float] = Field(default=None, description="""Proportion of composition found in Substantia Nigra""", ge=0, le=1, json_schema_extra = { "linkml_meta": {'alias': 'sn', 'domain_of': ['SpatialProportions']} })
1888718887
adj: Optional[float] = Field(default=None, description="""Proportion of composition found in Adjacent Regions""", ge=0, le=1, json_schema_extra = { "linkml_meta": {'alias': 'adj', 'domain_of': ['SpatialProportions']} })
18888-
sth: Optional[float] = Field(default=None, description="""Proportion of composition found in Subthalamic Nucleus""", json_schema_extra = { "linkml_meta": {'alias': 'sth', 'domain_of': ['SpatialProportions']} })
18888+
sth: Optional[float] = Field(default=None, description="""Proportion of composition found in Subthalamic Nucleus""", ge=0, le=1, json_schema_extra = { "linkml_meta": {'alias': 'sth', 'domain_of': ['SpatialProportions']} })
1888918889
was_derived_from: Optional[str] = Field(default=None, description="""A derivation is a transformation of an entity into another, an update of an entity resulting in a new one, or the construction of a new entity based on a pre-existing entity.""", json_schema_extra = { "linkml_meta": {'alias': 'was_derived_from',
1889018890
'domain_of': ['ProvEntity',
1889118891
'CellTypeTaxonomy',

0 commit comments

Comments
 (0)