Skip to content

Commit

Permalink
bug: Linting init
Browse files Browse the repository at this point in the history
  • Loading branch information
MagdalenaZZ committed Jul 17, 2024
1 parent 18dc0ad commit e3702fa
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 13 deletions.
4 changes: 4 additions & 0 deletions .tests/integration/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ gatk_get_pileup_summaries:
sites: "reference/chr1_small_exac_common_3.hg19.vcf"
variants: "reference/chr1_small_exac_common_3.hg19.vcf"

happy:
container: "docker://hydragenetics/hap.py:0.3.15"
extra: ""

mosdepth:
by: "500"
container: "docker://hydragenetics/mosdepth:0.3.2"
Expand Down
32 changes: 21 additions & 11 deletions workflow/rules/happy.smk
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,31 @@ rule happy:
genome=config.get("reference", {}).get("fasta", ""),
genome_index=config.get("reference", {}).get("fai", ""),
output:
multiext("qc/happy/{sample}_{type}.","results",".runinfo.json",".vcf.gz",".summary.csv",
".extended.csv",".metrics.json.gz",".roc.all.csv.gz",
".roc.Locations.INDEL.csv.gz",".roc.Locations.INDEL.PASS.csv.gz",
".roc.Locations.SNP.csv.gz",".roc.tsv")
multiext(
"qc/happy/{sample}_{type}.",
"results",
".runinfo.json",
".vcf.gz",
".summary.csv",
".extended.csv",
".metrics.json.gz",
".roc.all.csv.gz",
".roc.Locations.INDEL.csv.gz",
".roc.Locations.INDEL.PASS.csv.gz",
".roc.Locations.SNP.csv.gz",
".roc.tsv",
),
params:
engine="vcfeval",
prefix=lambda wc, input, output: output[0].split('.')[0],
prefix=lambda wc, input, output: output[0].split(".")[0],
## parameters such as -L to left-align variants
extra="--verbose"
log: "qc/happy/{sample}_{type}.happy.log"
container:
extra="--verbose",
log:
"qc/happy/{sample}_{type}.happy.log",
container:
config.get("happy", {}).get("container", config["default_container"])
message:
"{rule}: Happy is for benchmarking variant accuracy of {input.query} compared to {input.truth}"
threads: config.get("happy", {}).get("threads", config["default_resources"]["threads"])
wrapper: "v3.13.7/bio/hap.py/hap.py"


wrapper:
"v3.13.7/bio/hap.py/hap.py"
4 changes: 2 additions & 2 deletions workflow/schemas/rules.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ properties:
strats:
type: string
description: stratifications.tsv reference file
strats:
strat_dir:
type: string
description: directory
description: directory for stratifications
output:
type: object
description: list of outputs
Expand Down

0 comments on commit e3702fa

Please sign in to comment.