diff --git a/CHANGELOG.md b/CHANGELOG.md index 622017b..49e81a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ - Previously, the `--targets` argument was required with no defaults. - Increased memory for rules: BWA mem, qualimap, kraken. gatk_contamination is not localrule. (#89, @samarth8392) - Added new human test dataset for github workflow (#27, @samarth8392) +- fixes minor bug in GUI related to choosing the correct default target file (#108, @samarth8392) ## XAVIER 3.0.3 diff --git a/src/xavier/gui.py b/src/xavier/gui.py index 588edcf..37390bf 100644 --- a/src/xavier/gui.py +++ b/src/xavier/gui.py @@ -258,7 +258,7 @@ def launch_gui(DEBUG=True): window.Element("-OUTDIR-").update("") continue if values["-CUSTARG-"] == True: - if values["-TARGETS-"] == "": + if not values["-TARGETS-"]: sg.PopupError( "Custom Targets BED file selected but not provided!!", location=(0, 500), @@ -281,11 +281,7 @@ def launch_gui(DEBUG=True): input=list(glob.glob(os.path.join(values["-INDIR-"], "*.fastq.gz"))), output=output_dir, genome=genome, - targets=values["-TARGETS-"] - if values["-TARGETS-"] - else xavier_base( - "resources", "Agilent_SSv7_allExons_hg38.bed" - ), # TODO should this be part of the genome config file? + targets=values["-TARGETS-"], mode="slurm", job_name="pl:xavier", callers=["mutect2", "mutect", "strelka", "vardict", "varscan"],