Skip to content

Commit 1eca99f

Browse files
authored
Replacing superkingdom with domain (#178)
* Replacing superkingdom with domain * updated test cases with new ranks
1 parent 05afc3a commit 1eca99f

File tree

13 files changed

+79
-76
lines changed

13 files changed

+79
-76
lines changed

taxtastic/subcommands/lineage_table.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
('order', 'o'),
3030
('class', 'c'),
3131
('phylum', 'p'),
32-
('superkingdom', 'k'),
32+
('domain', 'd'),
3333
3434
Lineages are truncated to either the most specific defined rank or
3535
species, and missing tax_names at a given rank are replaced with the
@@ -122,7 +122,7 @@ def action(args):
122122
('order', 'o'),
123123
('class', 'c'),
124124
('phylum', 'p'),
125-
('superkingdom', 'k'),
125+
('domain', 'd'),
126126
]
127127

128128
def clean(tax_name, rexp=re.compile(r'[^-A-Z0-9_\[\]]+', re.I)):

testfiles/lactobacillus2-0.2.refpkg/CONTENTS.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
"md5": {
1313
"profile": "7b36841cae1db2a2c4d60ea44db4aba9",
1414
"phylo_model": "f288a37a50b2a113110185fbc8f48028",
15-
"taxonomy": "9bc2edc9c67801c4a9acd7e166144f4a",
15+
"taxonomy": "09fe0f3f9bc813154af0e42ce4b6645d",
1616
"tree": "2f11faa616fc7f04d7694436b5cca05f",
17-
"aln_fasta": "fd8a198c0215f3577f9b083da87128bb",
17+
"aln_fasta": "ff1fa6a07a090b96c2f77f8449010331",
1818
"seq_info": "230bfb5a78075a012e114bef635a4b18",
1919
"aln_sto": "6420db16bded3a5b119b16e2972be66e",
2020
"tree_stats": "2e57e7e56708f4b31db8025ef99722ef"

testfiles/lactobacillus2-0.2.refpkg/chosen.fasta

Lines changed: 46 additions & 46 deletions
Large diffs are not rendered by default.

testfiles/lactobacillus2-0.2.refpkg/taxtable.csv

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
"tax_id","parent_id","rank","tax_name","root","below_root","superkingdom","phylum","class","order","family","genus","species_group","species"
1+
"tax_id","parent_id","rank","tax_name","root","cellular_root","domain","phylum","class","order","family","genus","species_group","species"
22
"1","1","root","root","1","","","","","","","","",""
3-
"131567","1","below_root","cellular organisms","1","131567","","","","","","","",""
4-
"2","131567","superkingdom","Bacteria","1","131567","2","","","","","","",""
3+
"131567","1","cellular_root","cellular organisms","1","131567","","","","","","","",""
4+
"2","131567","domain","Bacteria","1","131567","2","","","","","","",""
55
"1239","2","phylum","Firmicutes","1","131567","2","1239","","","","","",""
66
"1224","2","phylum","Proteobacteria","1","131567","2","1224","","","","","",""
77
"91061","1239","class","Bacilli","1","131567","2","1239","91061","","","","",""

testfiles/minimal_taxonomy.csv

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
"tax_id","parent_id","rank","tax_name","root","below_root","superkingdom","phylum","class","order","family","genus","species"
1+
"tax_id","parent_id","rank","tax_name","root","cellular_root","domain","phylum","class","order","family","genus","species"
22
"1","1","root","root","1","","","","","","","",""
3-
"131567","1","below_root","cellular organisms","1","131567","","","","","","",""
4-
"2","131567","superkingdom","Bacteria","1","131567","2","","","","","",""
3+
"131567","1","cellular_root","cellular organisms","1","131567","","","","","","",""
4+
"2","131567","domain","Bacteria","1","131567","2","","","","","",""
55
"1239","2","phylum","Firmicutes","1","131567","2","1239","","","","",""
66
"91061","1239","class","Bacilli","1","131567","2","1239","91061","","","",""
77
"186826","91061","order","Lactobacillales","1","131567","2","1239","91061","186826","","",""

testfiles/simple_taxtable.csv

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
"tax_id","parent_id","rank","tax_name","root","below_root","superkingdom","superphylum","phylum","subphylum","class","subclass","order","below_order","below_below_order","suborder","family","below_family","genus","subgenus","species_group","species","below_species","below_below_species","subspecies","below_subspecies"
1+
"tax_id","parent_id","rank","tax_name","root","cellular_root","domain","superphylum","phylum","subphylum","class","subclass","order","below_order","below_below_order","suborder","family","below_family","genus","subgenus","species_group","species","below_species","below_below_species","subspecies","below_subspecies"
22
"1","1","root","root","1","","","","","","","","","","","","","","","","","","","","",""
3-
"131567","1","below_root","cellular organisms","1","131567","","","","","","","","","","","","","","","","","","","",""
4-
"2","131567","superkingdom","Bacteria","1","131567","2","","","","","","","","","","","","","","","","","","",""
3+
"131567","1","cellular_root","cellular organisms","1","131567","","","","","","","","","","","","","","","","","","","",""
4+
"2","131567","domain","Bacteria","1","131567","2","","","","","","","","","","","","","","","","","","",""
55
"68336","2","superphylum","Bacteroidetes/Chlorobi group","1","131567","2","68336","","","","","","","","","","","","","","","","","",""
66
"201174","2","phylum","Actinobacteria","1","131567","2","","201174","","","","","","","","","","","","","","","","",""
77
"976","68336","phylum","Bacteroidetes","1","131567","2","68336","976","","","","","","","","","","","","","","","","",""

testfiles/small_taxonomy.db

0 Bytes
Binary file not shown.

testfiles/tax_table.csv

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
"tax_id","parent_id","rank","tax_name","root","below_root","superkingdom","below_superkingdom","below_below_superkingdom","superphylum","phylum","class","subclass","order","below_order","below_below_order","suborder","family","below_family","genus","species_group","species_subgroup","species","below_species"
1+
"tax_id","parent_id","rank","tax_name","root","cellular_root","domain","below_domain","below_below_domain","superphylum","phylum","class","subclass","order","below_order","below_below_order","suborder","family","below_family","genus","species_group","species_subgroup","species","below_species"
22
"1","1","root","root","1","","","","","","","","","","","","","","","","","","",""
3-
"131567","1","below_root","cellular organisms","1","131567","","","","","","","","","","","","","","","","","",""
4-
"2","131567","superkingdom","Bacteria","1","131567","2","","","","","","","","","","","","","","","","",""
5-
"2323","2","below_superkingdom","unclassified Bacteria","1","131567","2","2323","","","","","","","","","","","","","","","",""
6-
"95818","2323","below_below_superkingdom","candidate division TM7","1","131567","2","2323","95818","","","","","","","","","","","","","","",""
3+
"131567","1","cellular_root","cellular organisms","1","131567","","","","","","","","","","","","","","","","","",""
4+
"2","131567","domain","Bacteria","1","131567","2","","","","","","","","","","","","","","","","",""
5+
"2323","2","below_domain","unclassified Bacteria","1","131567","2","2323","","","","","","","","","","","","","","","",""
6+
"95818","2323","below_below_domain","candidate division TM7","1","131567","2","2323","95818","","","","","","","","","","","","","","",""
77
"68336","2","superphylum","Bacteroidetes/Chlorobi group","1","131567","2","","","68336","","","","","","","","","","","","","",""
88
"201174","2","phylum","Actinobacteria","1","131567","2","","","","201174","","","","","","","","","","","","",""
99
"976","68336","phylum","Bacteroidetes","1","131567","2","","","68336","976","","","","","","","","","","","","",""

testfiles/taxdmp.zip

17 Bytes
Binary file not shown.

testfiles/taxids1.taxtable

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
"tax_id","parent_id","rank","tax_name","root","below_root","superkingdom","superphylum","phylum","class","subclass","order","below_order","suborder","family","genus","species"
1+
"tax_id","parent_id","rank","tax_name","root","cellular_root","domain","superphylum","phylum","class","subclass","order","below_order","suborder","family","genus","species"
22
"1","1","root","root","1","","","","","","","","","","","",""
3-
"131567","1","below_root","cellular organisms","1","131567","","","","","","","","","","",""
4-
"2","131567","superkingdom","Bacteria","1","131567","2","","","","","","","","","",""
3+
"131567","1","cellular_root","cellular organisms","1","131567","","","","","","","","","","",""
4+
"2","131567","domain","Bacteria","1","131567","2","","","","","","","","","",""
55
"68336","2","superphylum","Bacteroidetes/Chlorobi group","1","131567","2","68336","","","","","","","","",""
66
"201174","2","phylum","Actinobacteria","1","131567","2","","201174","","","","","","","",""
77
"976","68336","phylum","Bacteroidetes","1","131567","2","68336","976","","","","","","","",""

0 commit comments

Comments
 (0)