taxopy

A Python package for obtaining complete lineages and the lowest common ancestor (LCA) from a set of taxonomic identifiers

GPL-3.0 License

Downloads
1.2K
Stars
39
Committers
4
taxopy - v0.13.0 Latest Release

Published by apcamargo 3 months ago

  • Allow download of a remote custom taxdump via the taxdump_url parameter of the TaxDb class.
  • Allow fuzzy string matching in taxid_from_name through the fuzzy parameter. The degree of similarity between the query and the matches can be controlled using the score_cutoff parameter.
taxopy - v0.12.0

Published by apcamargo about 1 year ago

  • Add the rank_lineage, ranked_name_lineage, and ranked_taxid_lineage attributes to Taxon.
taxopy - v0.11.0

Published by apcamargo almost 2 years ago

  • Allow taxid_from_name to take a list of names as input.
taxopy - v0.10.3

Published by apcamargo almost 2 years ago

taxopy - v0.10.2

Published by apcamargo about 2 years ago

taxopy - v0.10.1

Published by apcamargo about 2 years ago

  • Add a __eq__ dunder method to Taxon.
taxopy - v0.10.0

Published by apcamargo about 2 years ago

  • 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
taxopy - v0.9.2

Published by apcamargo almost 3 years ago

  • Fixes a bug where the taxdb.oldtaxid2newtaxid dictionary was being accessed to create a legacy_taxid even when a merged.dmp file was not supplied.
taxopy - v0.9.1

Published by apcamargo almost 3 years ago

  • Fixes a bug where taxopy tried to read the _merged_dmp and oldtaxid2newtaxid attributes from the TaxDb class itself rather than an instance.
taxopy - v0.9.0

Published by apcamargo about 3 years ago

  • Add support to merged.dmp and legacy taxids.
taxopy - v0.8.0

Published by apcamargo about 3 years ago

  • The rank_taxid_dictionary attribute was added to Taxon objects.
taxopy - v0.7.0

Published by apcamargo over 3 years ago

  • The find_lca and find_majority_vote functions return objects of the _AggregatedTaxon class. _AggregatedTaxon is a subclass of Taxon with two additional attributes: agreement and aggregated_taxa.
taxopy - v0.6.0

Published by apcamargo over 3 years ago

  • Taxids are now encoded as integers instead of strings. This reduced the memory usage and made taxopy faster.
taxopy - v0.5.0

Published by apcamargo almost 4 years ago

  • Add the new function taxid_from_name, which takes a taxon name and returns a list containing the taxonomic identifiers associated with it.
  • Avoid redownloading the database if nodes.dmp and names.dmp are already in the directory.
taxopy - v0.4.1

Published by apcamargo about 4 years ago

  • Allow the fraction parameter of the find_majority_vote function to assume values less than 0.5.
taxopy - v0.4.0

Published by apcamargo about 4 years ago

  • Add the weights parameter to the find_majority_vote function.
taxopy - v0.3.0

Published by apcamargo over 4 years ago

  • Add the fraction parameter to the find_majority_vote function.
taxopy - v0.2.1

Published by apcamargo over 4 years ago

  • Fix a bug where find_majority_vote tried to create a Taxon object using None as input.
  • Allow a list containing two Taxon objects as input to find_majority_vote.
taxopy - v0.2.0

Published by apcamargo over 4 years ago

  • Added the find_majority_vote function to find the most specific taxon that is shared by more than half of the lineages of a list of taxa.
taxopy - v0.1.0

Published by apcamargo over 4 years ago

Initial release.