Skip to content

Commit

Permalink
Merge pull request #109 from CCBR/hotfix-gui-targ
Browse files Browse the repository at this point in the history
Bug fix related to correct default targets file in GUI
  • Loading branch information
kelly-sovacool authored Aug 19, 2024
2 parents f87ca6d + d137ffc commit 43c6961
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 2 additions & 6 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,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"],
Expand Down

0 comments on commit 43c6961

Please sign in to comment.