diff --git a/workflow/Snakefile b/workflow/Snakefile
index 783934351ec5267db272fddae8a737c1af39f25a..0b77579ae02e37a1582d19ed829c09b3c193f2fe 100644
--- a/workflow/Snakefile
+++ b/workflow/Snakefile
@@ -54,6 +54,7 @@ rule all:
 			"results/{sample}/tmp/reflist.txt",
 			"results/{sample}/{tool}/predictions.tsv",
 			"results/{sample}/all_predictions.tsv",
+			"results/{sample}/lca.tsv"
 			],
 			sample=SAMPLES, tool= TOOLS)
 
@@ -282,3 +283,14 @@ rule collect_hosts:
 		"<(cut -f2,3 {input[3]}) "
 		">>{output.sample_tsv}"
 
+rule lca:
+	input:
+		predictions_tsv = rules.collect_hosts.output.sample_tsv
+	output:
+		lca_tsv = "results/{sample}/lca.tsv"
+	log:
+		"logs/{sample}/lca.log"
+	shell:
+		"python workflow/scripts/get_lca.py "
+		"-i {input.predictions_tsv} "
+		"-o {output.lca_tsv} &>{log}"