From fdd3c5dc7d2a61ebaed15b31892c83fa3b5d32e6 Mon Sep 17 00:00:00 2001 From: Andrea Date: Thu, 13 Apr 2023 18:42:36 +0100 Subject: [PATCH] Bug: relative paths --- scripts/GenoVi.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/GenoVi.py b/scripts/GenoVi.py index 66717ee..d724c25 100644 --- a/scripts/GenoVi.py +++ b/scripts/GenoVi.py @@ -97,6 +97,10 @@ def visualiseGenome(input_file, status, output_file = "genovi", print("Circos is not installed. please install for using GenoVi.") raise Exception("Circos is not installed. please install for using GenoVi.") + if "/" in output_file: + output_file = list(filter(None,output_file.split("/")))[-1] + + colour_scheme, background_colour, GC_content, GC_skew, tRNA, rRNA, CDS_positive, CDS_negative, skew_line_colour = parseColours(colour_scheme, background_colour, GC_content, GC_skew, tRNA, rRNA, CDS_positive, CDS_negative, skew_line_colour) delete_background = False if background_colour == "transparent" or background_colour == "none" or background_colour == "auto":