-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix linting, update dastool + metabat2 modules, fix renamed modules
- Loading branch information
Jim Downie
committed
Dec 12, 2024
1 parent
05c8326
commit b6f807a
Showing
23 changed files
with
1,197 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
BEGIN { | ||
## Extact the highest level NCBI rank converted by the | ||
## gtdb_to_ncbi_majority_vote.py script and save it to | ||
## a new column to parse with taxonkit. | ||
## | ||
## Author: Jim Downie, December 2024 | ||
|
||
BEGIN { | ||
FS = "\t" | ||
OFS = FS | ||
} | ||
NR == 1 { print $1, $2, $3, "name" } | ||
NR == 1 { print $1, $2, $3, "name", "taxid" } | ||
NR > 1 { | ||
if($0 ~ /Unclassified/) { | ||
print $1, $2, $3, $3 | ||
next | ||
} | ||
if($0 ~ /Unclassified/) { | ||
print $1, $2, $3, $3 | ||
next | ||
} | ||
n_elem = split($3, names, /;?[[:alpha:]]__/) | ||
for(i = n_elem; i > 1; i--) { | ||
if(names[i] != "") { | ||
if(names[i] != "") { | ||
print $1, $2, $3, names[i] | ||
break | ||
break | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.