Skip to content

A simple Python package to download different versions of OTT Taxonomy

License

Notifications You must be signed in to change notification settings

commons-research/ott-taxonomy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OTT-Taxonomy

This repository contains the code to download the OTT taxonomy with different versions.

Installation

To install this package simply run :

pip install git+https://github.com/mvisani/ott-taxonomy

Usage

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()

About

A simple Python package to download different versions of OTT Taxonomy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages