Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update samtools.smk and remove design_bed as a default extra #112

Merged
merged 4 commits into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions workflow/rules/samtools.smk
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,9 @@ rule samtools_stats:
input:
bam="alignment/samtools_merge_bam/{sample}_{type}.bam",
output:
temp("qc/samtools_stats/{sample}_{type}.samtools-stats.txt"),
stats=temp("qc/samtools_stats/{sample}_{type}.samtools-stats.txt"),
params:
extra="%s -t %s"
% (
config.get("samtools_stats", {}).get("extra", ""),
config.get("reference", {}).get("design_bed", ""),
),
extra=config.get("samtools_stats", {}).get("extra", ""),
log:
"qc/samtools_stats/{sample}_{type}.samtools-stats.txt.log",
benchmark:
Expand All @@ -34,7 +30,7 @@ rule samtools_stats:
message:
"{rule}: calculate qc using samtools for {input.bam}"
wrapper:
"0.79.0/bio/samtools/stats"
"v3.0.0/bio/samtools/stats"


rule samtools_idxstats:
Expand Down
41 changes: 41 additions & 0 deletions workflow/schemas/rules.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,47 @@ properties:
type: string
description: WGS statistics used by MultiQC

samtools_idxstats:
type: object
description: input and output parameters for samtools_idxstats
properties:
input:
type: object
description: list of inputs
properties:
bam:
type: string
description: Aligned bam file
bai:
type: string
description: Bam index file
output:
type: object
description: list of outputs
properties:
stats:
type: string
description: Alignment summary statistics from samtools idxstats

samtools_stats:
type: object
description: input and output parameters for samtools_stats
properties:
input:
type: object
description: list of inputs
properties:
bam:
type: string
description: Aligned bam file
output:
type: object
description: list of outputs
properties:
stats:
type: string
description: Alignment summary statistics from samtools stats

verifybamid2:
type: object
description: input and output parameters for verifybamid2
Expand Down
Loading