From 2af080b1fb272e1af6b8cd2d16d8f9afa584072c Mon Sep 17 00:00:00 2001 From: kcleal Date: Fri, 28 Jun 2024 09:55:42 +0100 Subject: [PATCH] Vcf header now returned when no events found --- dysgu/cluster.pyx | 1 + 1 file changed, 1 insertion(+) diff --git a/dysgu/cluster.pyx b/dysgu/cluster.pyx index 9e13bc9..350bb32 100644 --- a/dysgu/cluster.pyx +++ b/dysgu/cluster.pyx @@ -1233,6 +1233,7 @@ def cluster_reads(args): df = sites_utils.append_uncalled(df, site_adder, infile, parse_probs=args["parse_probs"] == "True") if len(df) > 0: + df = df.sort_values(["chrA", "posA", "event_id"]) df["sample"] = [sample_name] * len(df) df.rename(columns={"contig": "contigA", "contig2": "contigB"}, inplace=True)