Classification

class pytaxize.Classification(ids)[source]

Classification: Retrieve taxonomic hierarchy for taxonomic IDs

Usage:

from pytaxize import Classification

# ITIS
## one id
x = Classification(99208)
x
x.ids
res = x.itis()
res[99208]

## many ids - with one invalid id
x = Classification([99208, 129313, 9999999])
x
x.ids
res = x.itis()
res[99208]
res[129313]
res[9999999]

# NCBI
x = Classification(9606)
x
x.ids
x.ncbi()