https://github.com/hubmapconsortium/spatial2ccf
A Python tool to convert RUI objects to CCF Spatial Ontology (CCF-SPO)
https://github.com/hubmapconsortium/spatial2ccf
Last synced: 15 days ago
JSON representation
A Python tool to convert RUI objects to CCF Spatial Ontology (CCF-SPO)
- Host: GitHub
- URL: https://github.com/hubmapconsortium/spatial2ccf
- Owner: hubmapconsortium
- License: other
- Created: 2021-09-03T03:29:46.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-11-15T14:28:37.000Z (over 2 years ago)
- Last Synced: 2024-04-14T03:54:46.063Z (about 2 years ago)
- Language: Python
- Homepage:
- Size: 35.2 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Spatial2CCF
A Python tool to convert HuBMAP RUI objects to CCF Spatial Ontology.
The CCF Spatial Data Ontology (CCF-SPO) describes the 2D and 3D shapes of entities and their physical locations and orientations. At the moment, the spatial entity represents only the 3D model of the anatomical entities. The spatial entity will have the spatial object reference that holds the 3D object information and the spatial placement that holds the object coordinate and transformation information (i.e., scaling, rotation and translation).
The [HuBMAP CCF Registration User Interface](https://hubmapconsortium.github.io/ccf-ui/rui/) (RUI) provides an interactive tissue registration system using 3D human organ models. It captures some metadata about the donor, tissue location and tissue slices.
## Installing the tool
You can install the application using `pip` after you clone the repository.
```
$ cd spatial2ccf
$ pip install .
```
## Using the tool
1. Download the RUI records from the HuBMAP project repository. You may need to request access to the HuBMAP development team to get the RUI records.
2. Run the tool
```
$ spatial2ccf raw_data.jsonld --ontology-iri http://purl.org/ccf/data/spatial_entities.owl -o spatial_entities.owl
```
3. Open the resulting output file using [Protégé](https://protege.stanford.edu/)