Skip to content

Commit f2982b1

Browse files
committed
Rounded the Quality score to 1 digit after period
1 parent 328670f commit f2982b1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

data/Ontologies_forRepo.xlsx

-93 Bytes
Binary file not shown.

data/source/ontology_characterisation_v31.ipynb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
"import pandas as pd\n",
2020
"from pathlib import Path\n",
2121
"import json\n",
22+
"import re\n",
23+
"from collections import Counter\n",
2224
"import numpy as np\n",
2325
"from typing import Dict, List, Tuple, Optional\n",
2426
"from openpyxl import load_workbook\n",
@@ -539,6 +541,7 @@
539541
" \"\"\"Placeholder for creating unified columns from auto and BE-OLS data.\"\"\"\n",
540542
" return None\n",
541543
"\n",
544+
"\n",
542545
"def process_ontologies(excel_file, ttl_folder, debug=False):\n",
543546
" \"\"\"\n",
544547
" Process all ontologies listed in the Excel file.\n",
@@ -1180,7 +1183,7 @@
11801183
" # quality[1] = 1\n",
11811184
" annotation_coverage = onto.get('annotation_coverage_percent', '')\n",
11821185
" if annotation_coverage:\n",
1183-
" quality[1] = annotation_coverage / 100.0\n",
1186+
" quality[1] = round(annotation_coverage / 100.0,1)\n",
11841187
" \n",
11851188
" onto['score_quality'] = sum(quality)\n"
11861189
]

0 commit comments

Comments
 (0)