Skip to content

Commit 5853987

Browse files
Mike LeeMike Lee
authored andcommitted
adjustment to taxonkit call to account for new NCBI tax structure
1 parent 1991332 commit 5853987

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
.DS_Store
22
notes.txt
3+
GToTree.egg-info/
4+
build/
5+
gtotree/

bin/GToTree

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ GREEN='\033[0;32m'
55
RED='\033[0;31m'
66
YELLOW='\033[0;33m'
77
NC='\033[0m'
8-
VERSION="v1.8.13"
8+
VERSION="v1.8.14"
99

1010
if [ "$1" == "--version" ] || [ "$1" == "-v" ]; then
1111
printf "GToTree ${VERSION}\n"
@@ -2752,7 +2752,8 @@ if [ -n "$new_file_to_genome_id_map" ] || [ $taxonkit_id_swap != "false" ] || [
27522752
if [ $taxid_counts -gt 1 ]; then
27532753

27542754
## running taxonkit and adding to summary table ##
2755-
cut -f 2 ${output_dir}/Genomes_summary_info.tsv | tail -n +2 | taxonkit lineage | taxonkit reformat -r NA | cut -f3 | tr ";" "\t" > ${tmp_dir}/lineages.tmp
2755+
taxonkit_reformat_pattern='{domain|superkingdom}\t{phylum}\t{class}\t{order}\t{family}\t{genus}\t{species}'
2756+
cut -f 2 ${output_dir}/Genomes_summary_info.tsv | tail -n +2 | taxonkit lineage | taxonkit reformat2 -r NA -f "${taxonkit_reformat_pattern}" | cut -f 3- | tr ";" "\t" > ${tmp_dir}/lineages.tmp
27562757

27572758
cat <(printf "NCBI_domain\tNCBI_phylum\tNCBI_class\tNCBI_order\tNCBI_family\tNCBI_genus\tNCBI_species\n") ${tmp_dir}/lineages.tmp > ${tmp_dir}/lineages2.tmp
27582759

bin/gtt-gen-SCG-HMMs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ For examples, please visit the GToTree wiki here: https://github.com/AstrobioMik
88
For details on the process, please see: https://github.com/AstrobioMike/GToTree/wiki/SCG-sets
99
"""
1010

11-
VERSION="v1.8.13"
11+
VERSION="v1.8.14"
1212
import os
1313
import re
1414
import sys

bin/gtt-pfam-search

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ GREEN='\033[0;32m'
55
RED='\033[0;31m'
66
YELLOW='\033[0;33m'
77
NC='\033[0m'
8-
VERSION="v1.8.13"
8+
VERSION="v1.8.14"
99

1010
printf "\n\n GToTree ${VERSION}\n"
1111
printf " (github.com/AstrobioMike/GToTree)\n\n"

0 commit comments

Comments
 (0)