Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: added tempdir, updated version and metadata to all picard wrap…
…pers (#443) * Added tempdir, updated version and metadata * Updated test rules with new option formats * Several typos fixed * Changed file names so they don not get parsed by picard * Fixed typo * Add extra param on all wrappers
- Loading branch information
Showing
70 changed files
with
432 additions
and
296 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
rule replace_rg: | ||
input: | ||
"mapped/{sample}.bam" | ||
"mapped/{sample}.bam", | ||
output: | ||
"fixed-rg/{sample}.bam" | ||
"fixed-rg/{sample}.bam", | ||
log: | ||
"logs/picard/replace_rg/{sample}.log" | ||
"logs/picard/replace_rg/{sample}.log", | ||
params: | ||
"RGLB=lib1 RGPL=illumina RGPU={sample} RGSM={sample}" | ||
extra="--RGLB lib1 --RGPL illumina --RGPU {sample} --RGSM {sample}", | ||
# optional specification of memory usage of the JVM that snakemake will respect with global | ||
# resource restrictions (https://snakemake.readthedocs.io/en/latest/snakefiles/rules.html#resources) | ||
# and which can be used to request RAM during cluster job submission as `{resources.mem_mb}`: | ||
# https://snakemake.readthedocs.io/en/latest/executing/cluster.html#job-properties | ||
resources: | ||
mem_mb=1024 | ||
mem_mb=1024, | ||
wrapper: | ||
"master/bio/picard/addorreplacereadgroups" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
rule bed_to_interval_list: | ||
input: | ||
bed="resources/a.bed", | ||
dict="resources/genome.dict" | ||
dict="resources/genome.dict", | ||
output: | ||
"a.interval_list" | ||
"a.interval_list", | ||
log: | ||
"logs/picard/bedtointervallist/a.log" | ||
"logs/picard/bedtointervallist/a.log", | ||
params: | ||
# optional parameters | ||
"SORT=true " # sort output interval list before writing | ||
extra="--SORT true", # sort output interval list before writing | ||
# optional specification of memory usage of the JVM that snakemake will respect with global | ||
# resource restrictions (https://snakemake.readthedocs.io/en/latest/snakefiles/rules.html#resources) | ||
# and which can be used to request RAM during cluster job submission as `{resources.mem_mb}`: | ||
# https://snakemake.readthedocs.io/en/latest/executing/cluster.html#job-properties | ||
resources: | ||
mem_mb=1024 | ||
mem_mb=1024, | ||
wrapper: | ||
"master/bio/picard/bedtointervallist" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
rule alignment_summary: | ||
input: | ||
ref="genome.fasta", | ||
bam="mapped/{sample}.bam" | ||
bam="mapped/{sample}.bam", | ||
output: | ||
"stats/{sample}.summary.txt" | ||
"stats/{sample}.summary.txt", | ||
log: | ||
"logs/picard/alignment-summary/{sample}.log" | ||
"logs/picard/alignment-summary/{sample}.log", | ||
params: | ||
# optional parameters (e.g. relax checks as below) | ||
"VALIDATION_STRINGENCY=LENIENT " | ||
"METRIC_ACCUMULATION_LEVEL=null " | ||
"METRIC_ACCUMULATION_LEVEL=SAMPLE" | ||
extra="--VALIDATION_STRINGENCY LENIENT --METRIC_ACCUMULATION_LEVEL null --METRIC_ACCUMULATION_LEVEL SAMPLE", | ||
# optional specification of memory usage of the JVM that snakemake will respect with global | ||
# resource restrictions (https://snakemake.readthedocs.io/en/latest/snakefiles/rules.html#resources) | ||
# and which can be used to request RAM during cluster job submission as `{resources.mem_mb}`: | ||
# https://snakemake.readthedocs.io/en/latest/executing/cluster.html#job-properties | ||
resources: | ||
mem_mb=1024 | ||
mem_mb=1024, | ||
wrapper: | ||
"master/bio/picard/collectalignmentsummarymetrics" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.