Skip to content

Commit

Permalink
fix: removed ifelse from targets; simplfied custom target code
Browse files Browse the repository at this point in the history
  • Loading branch information
samarth8392 committed Aug 19, 2024
1 parent edd9a3e commit d137ffc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/xavier/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -281,9 +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 (""), # 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"],
Expand Down

0 comments on commit d137ffc

Please sign in to comment.