- Migrated from
setup.py
to flit
.
- Class attributes are now exposed using getters (via the
@property
decorator).
- Added a
__str__
dunder method to the Taxon
class.
- Modified
Taxon
's __repr__
dunder method to make it display a string that resembles GTDB's lineage strings:
taxon = taxopy.Taxon(9673, taxdb)
repr(taxon)
r__Riboviria;k__Orthornavirae;p__Lenarviricota;c__Leviviricetes;o__Timlovirales
- Added a
parent
method to the Taxon
class:
taxon = taxopy.Taxon(9673, taxdb)
parent_taxon = taxon.parent(taxdb)
print(taxon)
print(parent_taxon)
r__Riboviria;k__Orthornavirae;p__Lenarviricota;c__Leviviricetes;o__Timlovirales
r__Riboviria;k__Orthornavirae;p__Lenarviricota;c__Leviviricetes