Skip to content

Commit

Permalink
RFC: Axis Anatomical Orientation
Browse files Browse the repository at this point in the history
Note: to produce the generated outputs locally:

1. Install `pixi` from https://pixi.sh
2. Run `pixi install`
3. Run `pixi run gen-all`
  • Loading branch information
thewtex committed Jul 28, 2024
1 parent fc65eb3 commit 7f9c4a7
Show file tree
Hide file tree
Showing 9 changed files with 2,892 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rfc/x/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# GitHub syntax highlighting
pixi.lock linguist-language=YAML linguist-generated=true
7 changes: 7 additions & 0 deletions rfc/x/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# pixi environments
.pixi
*.egg-info

markdown/types
markdown/index.md
orientation.py
307 changes: 307 additions & 0 deletions rfc/x/index.md

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions rfc/x/markdown/Orientation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

# Enum: Orientation

Anatomical orientation refers to the specific arrangement and directional alignment of anatomical structures within an imaging dataset. It is crucial for ensuring accurate alignment and comparison of images to anatomical atlases, facilitating consistent analysis and interpretation of biological data.

URI: [ngff:Orientation](https://w3id.org/ome/ngff/Orientation)


## Permissible Values

| Text | Description | Meaning | Other Information |
| :--- | :---: | :---: | ---: |
| left-to-right | Describes the directional orientation from the left side to the right side of an anatomical structure or body. | | |
| right-to-left | Describes the directional orientation from the right side to the left side of an anatomical structure or body. | | |
| anterior-to-posterior | Describes the directional orientation from the front (anterior) to the back (posterior) of an anatomical structure or body. | | |
| posterior-to-anterior | Describes the directional orientation from the back (posterior) to the front (anterior) of an anatomical structure or body. | | |
| inferior-to-superior | Describes the directional orientation from the lower (inferior) to the upper (superior) part of an anatomical structure or body. | | |
| superior-to-inferior | Describes the directional orientation from the upper (superior) to the lower (inferior) part of an anatomical structure or body. | | |
| dorsal-to-ventral | Describes the directional orientation from the back (dorsal) to the front (ventral) of an anatomical structure or body. | | |
| ventral-to-dorsal | Describes the directional orientation from the front (ventral) to the back (dorsal) of an anatomical structure or body. | | |
| rostral-to-caudal | Describes the directional orientation from the front (rostral) to the back (caudal) end of an anatomical structure, typically used in reference to the central nervous system. | | |
| caudal-to-rostral | Describes the directional orientation from the back (caudal) to the front (rostral) end of an anatomical structure, typically used in reference to the central nervous system. | | |

28 changes: 28 additions & 0 deletions rfc/x/orientation.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"$defs": {
"Orientation": {
"description": "Anatomical orientation refers to the specific arrangement and directional alignment of anatomical structures within an imaging dataset. It is crucial for ensuring accurate alignment and comparison of images to anatomical atlases, facilitating consistent analysis and interpretation of biological data.",
"enum": [
"left-to-right",
"right-to-left",
"anterior-to-posterior",
"posterior-to-anterior",
"inferior-to-superior",
"superior-to-inferior",
"dorsal-to-ventral",
"ventral-to-dorsal",
"rostral-to-caudal",
"caudal-to-rostral"
],
"title": "Orientation",
"type": "string"
}
},
"$id": "https://w3id.org/ome/ngff",
"$schema": "https://json-schema.org/draft/2019-09/schema",
"additionalProperties": true,
"metamodel_version": "1.7.0",
"title": "orientation",
"type": "object",
"version": "0.1.0"
}
25 changes: 25 additions & 0 deletions rfc/x/orientation.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/**
* Anatomical orientation refers to the specific arrangement and directional alignment of anatomical structures within an imaging dataset. It is crucial for ensuring accurate alignment and comparison of images to anatomical atlases, facilitating consistent analysis and interpretation of biological data.
*/
export enum Orientation {
/** Describes the directional orientation from the left side to the right side of an anatomical structure or body. */
left_to_right = "left-to-right",
/** Describes the directional orientation from the right side to the left side of an anatomical structure or body. */
right_to_left = "right-to-left",
/** Describes the directional orientation from the front (anterior) to the back (posterior) of an anatomical structure or body. */
anterior_to_posterior = "anterior-to-posterior",
/** Describes the directional orientation from the back (posterior) to the front (anterior) of an anatomical structure or body. */
posterior_to_anterior = "posterior-to-anterior",
/** Describes the directional orientation from the lower (inferior) to the upper (superior) part of an anatomical structure or body. */
inferior_to_superior = "inferior-to-superior",
/** Describes the directional orientation from the upper (superior) to the lower (inferior) part of an anatomical structure or body. */
superior_to_inferior = "superior-to-inferior",
/** Describes the directional orientation from the back (dorsal) to the front (ventral) of an anatomical structure or body. */
dorsal_to_ventral = "dorsal-to-ventral",
/** Describes the directional orientation from the front (ventral) to the back (dorsal) of an anatomical structure or body. */
ventral_to_dorsal = "ventral-to-dorsal",
/** Describes the directional orientation from the front (rostral) to the back (caudal) end of an anatomical structure, typically used in reference to the central nervous system. */
rostral_to_caudal = "rostral-to-caudal",
/** Describes the directional orientation from the back (caudal) to the front (rostral) end of an anatomical structure, typically used in reference to the central nervous system. */
caudal_to_rostral = "caudal-to-rostral",
}
31 changes: 31 additions & 0 deletions rfc/x/orientation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
id: https://w3id.org/ome/ngff
name: orientation
version: 0.1.0
description: >-
The orientation field provides explicit metadata about the anatomical orientation in an image using a
controlled vocabulary. The goal is to preserve essential biological information and eliminate assumptions
about orientation which can lead to errors in downstream analysis and alignment to anatomical atlases.
prefixes:
ome: https://w3id.org/ome/
ngff: https://w3id.org/ome/ngff/
linkml: https://w3id.org/linkml/
imports:
- linkml:types
default_range: string
default_prefix: ngff

enums:
Orientation:
description: >-
Anatomical orientation refers to the specific arrangement and directional alignment of anatomical structures within an imaging dataset. It is crucial for ensuring accurate alignment and comparison of images to anatomical atlases, facilitating consistent analysis and interpretation of biological data.
permissible_values:
left-to-right: Describes the directional orientation from the left side to the right side of an anatomical structure or body.
right-to-left: Describes the directional orientation from the right side to the left side of an anatomical structure or body.
anterior-to-posterior: Describes the directional orientation from the front (anterior) to the back (posterior) of an anatomical structure or body.
posterior-to-anterior: Describes the directional orientation from the back (posterior) to the front (anterior) of an anatomical structure or body.
inferior-to-superior: Describes the directional orientation from the lower (inferior) to the upper (superior) part of an anatomical structure or body.
superior-to-inferior: Describes the directional orientation from the upper (superior) to the lower (inferior) part of an anatomical structure or body.
dorsal-to-ventral: Describes the directional orientation from the back (dorsal) to the front (ventral) of an anatomical structure or body.
ventral-to-dorsal: Describes the directional orientation from the front (ventral) to the back (dorsal) of an anatomical structure or body.
rostral-to-caudal: Describes the directional orientation from the front (rostral) to the back (caudal) end of an anatomical structure, typically used in reference to the central nervous system.
caudal-to-rostral: Describes the directional orientation from the back (caudal) to the front (rostral) end of an anatomical structure, typically used in reference to the central nervous system.
Loading

0 comments on commit 7f9c4a7

Please sign in to comment.