Skip to content

Commit d119d4c

Browse files
committed
Fixed GTDBTK taxonomy variable issue
1 parent f299748 commit d119d4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Metagenomics/Illumina/Workflow_Documentation/SW_MGIllumina/workflow_code/bin/get_MAGs_estimates_and_taxonomy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
MAGs_dir=$1
33
MAG_assembly_summaries=$2
44
MAGs_checkm_out=$3
5-
gtdbtk-out=$4
5+
gtdbtk_out=$4
66

77
# Making sure none of the intermediate files exist already
88
rm -rf checkm-estimates.tmp \
@@ -17,7 +17,7 @@ for MAG in $(cut -f 1 ${MAG_assembly_summaries} | tail -n +2); do
1717
grep -w -m 1 "^${MAG}" ${MAGs_checkm_out} | \
1818
cut -f 12,13,14 >> checkm-estimates.tmp
1919

20-
grep -w "^${MAG}" ${gtdbtk-out}/gtdbtk.*.summary.tsv | \
20+
grep -w "^${MAG}" ${gtdbtk_out}/gtdbtk.*.summary.tsv | \
2121
cut -f 2 | sed 's/^.__//' | \
2222
sed 's/;.__/\t/g' | \
2323
awk 'BEGIN{ OFS=FS="\t" } { for (i=1; i<=NF; i++) if ( $i ~ /^ *$/ ) $i = "NA" }; 1' \

0 commit comments

Comments
 (0)