Skip to content

Commit

Permalink
fix: correct copying gtdbtk result table
Browse files Browse the repository at this point in the history
  • Loading branch information
matinnuhamunada committed Jul 19, 2024
1 parent a6b4f57 commit c3bb24c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion workflow/rules/gtdbtk.smk
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,11 @@ rule evaluate_gtdbtk_input:
log:
"logs/gtdbtk/gtdbtk/evaluate_gtdbtk_{name}.log",
shell:
"cp {input} {output.summary_processed} 2>> {log}"
"""
if [ -f "data/interim/gtdbtk/{wildcards.name}/result/classify/gtdbtk.bac120.summary.tsv" ]; then
cp "data/interim/gtdbtk/{wildcards.name}/result/classify/gtdbtk.bac120.summary.tsv" {output.summary_processed}
else
echo "WARNING: No genomes are eligible for GTDB-Tk classification. Please check if the genome ids already exists in GTDB. Returning empty ouput." > {log}
cp {input} {output.summary_processed}
fi 2>> {log}
"""

0 comments on commit c3bb24c

Please sign in to comment.