@@ -134,7 +131,7 @@
View Source
- __all__ = (
+ __all__ = (
'CustomTx',
'DummyTx',
'GreengenesTx',
@@ -162,12 +159,12 @@
class
- CustomTx(multitax.multitax.MultiTax):
+ CustomTx(multitax.multitax.MultiTax):
-
+
View Source
- class CustomTx(MultiTax):
+ class CustomTx(MultiTax):
_required_cols = ["node", "parent"]
_possible_cols = ["node", "parent", "rank", "name"]
@@ -244,9 +241,9 @@
)
-
+
View Source
- def __init__(self, cols: list=["node", "parent", "rank", "name"], sep: str="\t", **kwargs):
+ def __init__(self, cols: list=["node", "parent", "rank", "name"], sep: str="\t", **kwargs):
"""
CustomTx()
@@ -321,12 +318,12 @@ Inherited Members
class
- DummyTx(multitax.multitax.MultiTax):
+ DummyTx(multitax.multitax.MultiTax):
-
+
View Source
- class DummyTx(MultiTax):
+ class DummyTx(MultiTax):
def __init__(self, **kwargs):
"""
@@ -354,9 +351,9 @@ Inherited Members
DummyTx(**kwargs)
-
+
View Source
- def __init__(self, **kwargs):
+ def __init__(self, **kwargs):
"""
DummyTx() - Dummy empty taxonomy
@@ -414,12 +411,12 @@ Inherited Members
class
- GreengenesTx(multitax.multitax.MultiTax):
+ GreengenesTx(multitax.multitax.MultiTax):
-
+
View Source
- class GreengenesTx(MultiTax):
+ class GreengenesTx(MultiTax):
_default_urls = ["https://gg-sg-web.s3-us-west-2.amazonaws.com/downloads/greengenes_database/gg_13_5/gg_13_5_taxonomy.txt.gz"]
_rank_codes = [("k__", "kingdom"),
("p__", "phylum"),
@@ -480,9 +477,9 @@ Inherited Members
GreengenesTx(**kwargs)
-
+
View Source
- def __init__(self, **kwargs):
+ def __init__(self, **kwargs):
# forwards.tsv
self._forwards = {}
super().__init__(**kwargs)
@@ -557,14 +554,15 @@ Inherited Members
class
- GtdbTx(multitax.multitax.MultiTax):
+ GtdbTx(multitax.multitax.MultiTax):
-
+
View Source
- class GtdbTx(MultiTax):
- _default_urls = ["https://data.ace.uq.edu.au/public/gtdb/data/releases/latest/ar122_taxonomy.tsv.gz",
- "https://data.ace.uq.edu.au/public/gtdb/data/releases/latest/bac120_taxonomy.tsv.gz"]
+ class GtdbTx(MultiTax):
+
+ _default_urls = ["https://data.gtdb.ecogenomic.org/releases/latest/ar53_taxonomy.tsv.gz",
+ "https://data.gtdb.ecogenomic.org/releases/latest/bac120_taxonomy.tsv.gz"]
_rank_codes = [("d__", "domain"),
("p__", "phylum"),
("c__", "class"),
@@ -624,9 +622,9 @@ Inherited Members
GtdbTx(**kwargs)
-
+
View Source
- def __init__(self, **kwargs):
+ def __init__(self, **kwargs):
super().__init__(**kwargs)
@@ -699,12 +697,12 @@ Inherited Members
class
- NcbiTx(multitax.multitax.MultiTax):
+ NcbiTx(multitax.multitax.MultiTax):
-
+
View Source
- class NcbiTx(MultiTax):
+ class NcbiTx(MultiTax):
_default_urls = ["ftp://ftp.ncbi.nih.gov/pub/taxonomy/taxdump.tar.gz"]
def __init__(self, **kwargs):
@@ -851,9 +849,9 @@ Inherited Members
NcbiTx(**kwargs)
-
+
View Source
- def __init__(self, **kwargs):
+ def __init__(self, **kwargs):
self._merged = {}
self._extended_name_nodes = {}
super().__init__(**kwargs)
@@ -902,9 +900,9 @@ Inherited Members
merged(self, node: str):
-
+
View Source
- def merged(self, node: str):
+ def merged(self, node: str):
"""
Returns relative entry from the merged.dmp file of a given node.
"""
@@ -929,9 +927,9 @@ Inherited Members
latest(self, node: str):
-
+
View Source
- def latest(self, node: str):
+ def latest(self, node: str):
n = super().latest(node)
if n == self.undefined_node:
n = self.merged(node)
@@ -955,9 +953,9 @@ Inherited Members
stats(self):
-
+
View Source
- def stats(self):
+ def stats(self):
s = super().stats()
if self._merged:
s["merged"] = len(self._merged)
@@ -1009,9 +1007,9 @@ Inherited Members
):
-
+
View Source
- def search_name(self, text: str, rank: str=None, exact: bool=True, force_extended: bool=False):
+ def search_name(self, text: str, rank: str=None, exact: bool=True, force_extended: bool=False):
"""
Search node by exact or partial name.
@@ -1100,12 +1098,12 @@ Inherited Members
class
- OttTx(multitax.multitax.MultiTax):
+ OttTx(multitax.multitax.MultiTax):
-
+
View Source
- class OttTx(MultiTax):
+ class OttTx(MultiTax):
_default_urls = ["http://files.opentreeoflife.org/ott/ott3.2/ott3.2.tgz"]
_default_root_node = "805080"
@@ -1263,9 +1261,9 @@ Inherited Members
OttTx(**kwargs)
-
+
View Source
- def __init__(self, **kwargs):
+ def __init__(self, **kwargs):
self._forwards = {}
self._extended_name_nodes = {}
super().__init__(**kwargs)
@@ -1314,9 +1312,9 @@ Inherited Members
forwards(self, node: str):
-
+
View Source
- def forwards(self, node: str):
+ def forwards(self, node: str):
"""
Returns relative entry from the forwards.tsv file of a given node.
"""
@@ -1341,9 +1339,9 @@ Inherited Members
latest(self, node: str):
-
+
View Source
- def latest(self, node: str):
+ def latest(self, node: str):
n = super().latest(node)
if n == self.undefined_node:
n = self.forwards(node)
@@ -1367,9 +1365,9 @@ Inherited Members
stats(self):
-
+
View Source
- def stats(self):
+ def stats(self):
s = super().stats()
if self._forwards:
s["forwards"] = len(self._forwards)
@@ -1421,9 +1419,9 @@ Inherited Members
):
-
+
View Source
- def search_name(self, text: str, rank: str=None, exact: bool=True, force_extended: bool=False):
+ def search_name(self, text: str, rank: str=None, exact: bool=True, force_extended: bool=False):
"""
Search node by exact or partial name.
@@ -1512,12 +1510,12 @@ Inherited Members
class
- SilvaTx(multitax.multitax.MultiTax):
+ SilvaTx(multitax.multitax.MultiTax):
-
+
View Source
- class SilvaTx(MultiTax):
+ class SilvaTx(MultiTax):
_default_urls = ["https://www.arb-silva.de/fileadmin/silva_databases/current/Exports/taxonomy/tax_slv_ssu_138.1.txt.gz"]
def __init__(self, **kwargs):
@@ -1575,9 +1573,9 @@ Inherited Members
SilvaTx(**kwargs)
-
+
View Source
- def __init__(self, **kwargs):
+ def __init__(self, **kwargs):
super().__init__(**kwargs)
@@ -1645,5 +1643,182 @@ Inherited Members
-
+
View Source
-__all__ = ( +-__all__ = ( 'CustomTx', 'DummyTx', 'GreengenesTx', @@ -162,12 +159,12 @@class - CustomTx(multitax.multitax.MultiTax): + CustomTx
(multitax.multitax.MultiTax): +View Source
-class CustomTx(MultiTax): +-class CustomTx(MultiTax): _required_cols = ["node", "parent"] _possible_cols = ["node", "parent", "rank", "name"] @@ -244,9 +241,9 @@)
+View Source
-def __init__(self, cols: list=["node", "parent", "rank", "name"], sep: str="\t", **kwargs): +-def __init__(self, cols: list=["node", "parent", "rank", "name"], sep: str="\t", **kwargs): """ CustomTx() @@ -321,12 +318,12 @@Inherited Members
class - DummyTx(multitax.multitax.MultiTax): + DummyTx(multitax.multitax.MultiTax): +View Source
-class DummyTx(MultiTax): +-class DummyTx(MultiTax): def __init__(self, **kwargs): """ @@ -354,9 +351,9 @@Inherited Members
DummyTx(**kwargs)+View Source
-def __init__(self, **kwargs): +-def __init__(self, **kwargs): """ DummyTx() - Dummy empty taxonomy @@ -414,12 +411,12 @@Inherited Members
class - GreengenesTx(multitax.multitax.MultiTax): + GreengenesTx(multitax.multitax.MultiTax): +View Source
-class GreengenesTx(MultiTax): +-class GreengenesTx(MultiTax): _default_urls = ["https://gg-sg-web.s3-us-west-2.amazonaws.com/downloads/greengenes_database/gg_13_5/gg_13_5_taxonomy.txt.gz"] _rank_codes = [("k__", "kingdom"), ("p__", "phylum"), @@ -480,9 +477,9 @@Inherited Members
GreengenesTx(**kwargs)+View Source
-def __init__(self, **kwargs): +-def __init__(self, **kwargs): # forwards.tsv self._forwards = {} super().__init__(**kwargs) @@ -557,14 +554,15 @@Inherited Members
class - GtdbTx(multitax.multitax.MultiTax): + GtdbTx(multitax.multitax.MultiTax): +View Source
-class GtdbTx(MultiTax): - _default_urls = ["https://data.ace.uq.edu.au/public/gtdb/data/releases/latest/ar122_taxonomy.tsv.gz", - "https://data.ace.uq.edu.au/public/gtdb/data/releases/latest/bac120_taxonomy.tsv.gz"] +-class GtdbTx(MultiTax): + + _default_urls = ["https://data.gtdb.ecogenomic.org/releases/latest/ar53_taxonomy.tsv.gz", + "https://data.gtdb.ecogenomic.org/releases/latest/bac120_taxonomy.tsv.gz"] _rank_codes = [("d__", "domain"), ("p__", "phylum"), ("c__", "class"), @@ -624,9 +622,9 @@Inherited Members
GtdbTx(**kwargs)+View Source
--def __init__(self, **kwargs): +@@ -699,12 +697,12 @@def __init__(self, **kwargs): super().__init__(**kwargs)Inherited Members
class - NcbiTx(multitax.multitax.MultiTax): + NcbiTx(multitax.multitax.MultiTax): +View Source
-class NcbiTx(MultiTax): +-class NcbiTx(MultiTax): _default_urls = ["ftp://ftp.ncbi.nih.gov/pub/taxonomy/taxdump.tar.gz"] def __init__(self, **kwargs): @@ -851,9 +849,9 @@Inherited Members
NcbiTx(**kwargs)+View Source
-def __init__(self, **kwargs): +-def __init__(self, **kwargs): self._merged = {} self._extended_name_nodes = {} super().__init__(**kwargs) @@ -902,9 +900,9 @@Inherited Members
merged(self, node: str):+View Source
-def merged(self, node: str): +-def merged(self, node: str): """ Returns relative entry from the merged.dmp file of a given node. """ @@ -929,9 +927,9 @@Inherited Members
latest(self, node: str):+View Source
-def latest(self, node: str): +-def latest(self, node: str): n = super().latest(node) if n == self.undefined_node: n = self.merged(node) @@ -955,9 +953,9 @@Inherited Members
stats(self):+View Source
-def stats(self): +-def stats(self): s = super().stats() if self._merged: s["merged"] = len(self._merged) @@ -1009,9 +1007,9 @@Inherited Members
):+View Source
-def search_name(self, text: str, rank: str=None, exact: bool=True, force_extended: bool=False): +-def search_name(self, text: str, rank: str=None, exact: bool=True, force_extended: bool=False): """ Search node by exact or partial name. @@ -1100,12 +1098,12 @@Inherited Members
class - OttTx(multitax.multitax.MultiTax): + OttTx(multitax.multitax.MultiTax): +View Source
-class OttTx(MultiTax): +-class OttTx(MultiTax): _default_urls = ["http://files.opentreeoflife.org/ott/ott3.2/ott3.2.tgz"] _default_root_node = "805080" @@ -1263,9 +1261,9 @@Inherited Members
OttTx(**kwargs)+View Source
-def __init__(self, **kwargs): +-def __init__(self, **kwargs): self._forwards = {} self._extended_name_nodes = {} super().__init__(**kwargs) @@ -1314,9 +1312,9 @@Inherited Members
forwards(self, node: str):+View Source
-def forwards(self, node: str): +-def forwards(self, node: str): """ Returns relative entry from the forwards.tsv file of a given node. """ @@ -1341,9 +1339,9 @@Inherited Members
latest(self, node: str):+View Source
-def latest(self, node: str): +-def latest(self, node: str): n = super().latest(node) if n == self.undefined_node: n = self.forwards(node) @@ -1367,9 +1365,9 @@Inherited Members
stats(self):+View Source
-def stats(self): +-def stats(self): s = super().stats() if self._forwards: s["forwards"] = len(self._forwards) @@ -1421,9 +1419,9 @@Inherited Members
):+View Source
-def search_name(self, text: str, rank: str=None, exact: bool=True, force_extended: bool=False): +-def search_name(self, text: str, rank: str=None, exact: bool=True, force_extended: bool=False): """ Search node by exact or partial name. @@ -1512,12 +1510,12 @@Inherited Members
class - SilvaTx(multitax.multitax.MultiTax): + SilvaTx(multitax.multitax.MultiTax): +View Source
-class SilvaTx(MultiTax): +-class SilvaTx(MultiTax): _default_urls = ["https://www.arb-silva.de/fileadmin/silva_databases/current/Exports/taxonomy/tax_slv_ssu_138.1.txt.gz"] def __init__(self, **kwargs): @@ -1575,9 +1573,9 @@Inherited Members
SilvaTx(**kwargs)+View Source
-- +def __init__(self, **kwargs): +@@ -1645,5 +1643,182 @@def __init__(self, **kwargs): super().__init__(**kwargs)Inherited Members