Skip to content

Commit

Permalink
added sorting routine
Browse files Browse the repository at this point in the history
  • Loading branch information
riasc committed Mar 1, 2024
1 parent eeee3e9 commit 432cdc4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion workflow/rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -709,9 +709,13 @@ def get_variants(wildcards):

# custom variants
if config["data"]["custom"]["variants"] is not None:
custom += expand("results/{sample}/annotation/custom.vcf",
variants += expand("results/{sample}/annotation/custom.vcf",
sample=config["data"]["name"])

if len(variants) == 0:
print(f"Could not detect any variants. Please check the config file")
sys.exit(1)

return variants

def get_mhcI(wildcards):
Expand Down

0 comments on commit 432cdc4

Please sign in to comment.