You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Validate ontology relationships using [Ubergraph](https://zenodo.org/record/7249759#.ZDRuZOzML1c) as source of truth. Relationships in this context may be subClassOf axioms between names classes (e.g. 'lymphocyte' subClassOf 'cell') or existential restrictions, (e.g. 'enterocyte' part_of some ‘intestinal epithelium’).
@@ -38,9 +38,9 @@ Then install the `obographviz` package globally:
38
38
npm install -g obographviz
39
39
```
40
40
41
-
### `relation-validator` package
41
+
### `verificado` package
42
42
```bash
43
-
pip install relation-validator
43
+
pip install verificado
44
44
```
45
45
46
46
## Configure YAML file
@@ -60,18 +60,32 @@ relationships:
60
60
filename: path/to/filename.csv
61
61
```
62
62
63
-
The filename can be in TSV or CSV and should have the following columns:
63
+
The filename can be in TSV or CSV. When using CSV, double-quote if the label contains a common. It's preferred to have the following columns:
64
64
65
65
| s | slabel | user_slabel | o | olabel | user_olabel |
| the subject term ID | the label of the term in the column s | optional label for the term given by user | the object term ID | the label of the term in the column s | optional label for the term given by user |
68
68
69
-
When using CSV, double-quote if the label contains a common.
69
+
However, the package can also accept TSV or CSV files representing a hierarchy. You can specify an undetermined number of levels, each level defined with an ontology term ID and the label of the term. Please check [an example](tests/test-generic.tsv) in the tests directory.
70
70
71
-
## Run relation-validator CLI
71
+
Add `to_be_parsed: true` to the yaml file when using this type of file.
The `output.csv` file will be in the same format as the `filename.csv`. It will return the cases where a triple (subject, relationship, object) with the relationships listed in the yaml file was not found in Ubergraph.
@@ -81,5 +95,5 @@ The `output.csv` file will be in the same format as the `filename.csv`. It will
81
95
To know which ontologies and their version are available in Ubergraph, use the following CLI:
0 commit comments