Skip to content

Commit

Permalink
update data structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Adafede committed Dec 18, 2023
1 parent f11d4c2 commit 3e8797e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions doc/data_structures.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# database.pkl
## database.pkl

- **iid** (int)ernal structure id (can change at any update)
- **tid** (int): taxon id (wikidata id)
Expand All @@ -19,7 +19,7 @@
| tc2r | dict[tuple[tid, cid], set[rid]] | References of couple tid/cid |
| taxonomy_direct_parents | dict[tid, set[tid]] | Direct taxonomic parents |
| taxonomy_names | dict[tid, str] | Name of taxon tid |
| taxonomy_ranks | dict[tid, rank_id] | Rank of taxon tid |
| taxonomy_ranks | dict[tid, set[rank_id]] | Rank of taxon tid |
| taxonomy_children | dict[tid, set[tid]] | All the children of taxon tid |
| taxonomy_parents_with_distance | dict[tid, dict[tid, int]] | All the parents of taxon tid with an arbitrary taxonomic distance |
| taxonomy_ranks_names | dict[tid, str] | Name of rank |
2 changes: 1 addition & 1 deletion update/generate_database_chemo.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def run(path: Path) -> None:

t2c: dict[int, set[int]] = {}
c2t: dict[int, set[int]] = {}
tc2r: dict[tuple, set[str]] = {}
tc2r: dict[tuple[int, int], set[str]] = {}

logging.info("Finished generating the chemical libraries")

Expand Down

0 comments on commit 3e8797e

Please sign in to comment.