This repository contains the code to download the OTT taxonomy with different versions.
To install this package simply run :
pip install git+https://github.com/mvisani/ott-taxonomy
To download all the files of all the versions of the taxonomy, you can run the following command:
python examples/download_ott_taxonomy.py all
You can also do :
from ott_taxonomy import Dataset
ott = Dataset.load("ott3.6")
full_graph = ott.to_networkx()
subgraph = ott.generate_subgraph_from_id(770311)
# if you want to remove the subspecies:
subgraph = ott.generate_subgraph_from_id(770311, keep_subspecies=False)
Or get the dataframe :
from ott_taxonomy import Dataset
ott = Dataset.load("ott3.6")
df = ott.get_taxonomy()