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: Varscan2 - SnpEff Meta wrapper #3501

Open
wants to merge 73 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
ab82604
[fix] (template): Missing code in wrappers' doc. Error #187
Sep 21, 2020
de77ade
Merge remote-tracking branch 'upstream/master'
Nov 9, 2020
9b1447e
Merge branch 'snakemake:master' into master
tdayris Jul 2, 2021
91fd32d
Merge remote-tracking branch 'upstream/master'
Jul 16, 2021
ed2a885
Merge branch 'master' of https://github.com/tdayris/snakemake-wrappers
Jul 16, 2021
2a1655b
Merge remote-tracking branch 'upstream/master'
tdayris Apr 29, 2022
044cf8a
Merge remote-tracking branch 'upstream/master'
tdayris May 13, 2022
5b1c7b4
Merge remote-tracking branch 'upstreamhttp/master'
Jun 27, 2022
aea600e
Merge remote-tracking branch 'upstream/master'
Oct 11, 2022
ac4ac81
perf: update utils/datavzrd/environment.yaml. (#566)
johanneskoester Oct 11, 2022
88c479c
perf: update bio/bcftools/call/environment.yaml. (#567)
johanneskoester Oct 11, 2022
8d92bb5
perf: update bio/bcftools/concat/environment.yaml. (#568)
johanneskoester Oct 11, 2022
1c444dc
perf: autobump bio/bcftools/index/environment.yaml (#570)
johanneskoester Oct 11, 2022
534f834
chore: release 1.15.1 (#569)
github-actions[bot] Oct 12, 2022
7eb277c
perf: update bio/bgzip/environment.yaml. (#577)
snakedeploy-bot[bot] Oct 12, 2022
63f8acb
perf: update bio/bellerophon/environment.yaml. (#576)
snakedeploy-bot[bot] Oct 12, 2022
963bedf
perf: update bio/assembly-stats/environment.yaml. (#575)
snakedeploy-bot[bot] Oct 12, 2022
ff74710
perf: update bio/adapterremoval/environment.yaml. (#573)
snakedeploy-bot[bot] Oct 12, 2022
bb60c16
chore: autobump conda envs (#571)
johanneskoester Oct 12, 2022
d9a7a6a
perf: update bio/delly/environment.yaml. (#584)
snakedeploy-bot[bot] Oct 12, 2022
e0220d2
perf: update bio/busco/environment.yaml. (#581)
snakedeploy-bot[bot] Oct 12, 2022
ae10993
perf: update bio/clustalo/environment.yaml. (#582)
snakedeploy-bot[bot] Oct 12, 2022
76c9845
perf: update bio/fastp/environment.yaml. (#585)
snakedeploy-bot[bot] Oct 12, 2022
853a36d
perf: update bio/fastq_screen/environment.yaml. (#586)
snakedeploy-bot[bot] Oct 12, 2022
576c54a
perf: update bio/fasttree/environment.yaml. (#588)
snakedeploy-bot[bot] Oct 12, 2022
e473ff7
perf: update bio/fastqc/environment.yaml. (#587)
snakedeploy-bot[bot] Oct 12, 2022
6f5f48f
perf: update bio/filtlong/environment.yaml. (#589)
snakedeploy-bot[bot] Oct 12, 2022
5a1f598
perf: update bio/freebayes/environment.yaml. (#590)
snakedeploy-bot[bot] Oct 12, 2022
f60db66
perf: update bio/genefuse/environment.yaml. (#591)
snakedeploy-bot[bot] Oct 12, 2022
cb6b616
perf: update bio/genomepy/environment.yaml. (#592)
snakedeploy-bot[bot] Oct 12, 2022
f618f0d
chore: release 1.15.2 (#578)
github-actions[bot] Oct 12, 2022
141e09e
fix: set RG tag (#593)
FelixMoelder Oct 13, 2022
278f508
Update conventional-prs.yml
johanneskoester Oct 13, 2022
de6ce85
perf: autobump bio/deepvariant (#583)
snakedeploy-bot[bot] Oct 13, 2022
f9332c2
feat: bazam wrapper (#580)
christopher-schroeder Oct 13, 2022
39c488d
chore: release 1.16.0 (#596)
github-actions[bot] Oct 13, 2022
d1a68e5
Merge remote-tracking branch 'upstream/master'
Dec 5, 2022
7aadebb
Merge remote-tracking branch 'upstream/master'
Mar 31, 2023
6878cd6
Merge remote-tracking branch 'upstream/master'
Apr 7, 2023
77a2f4c
revert
Apr 11, 2023
939082e
revert
Apr 14, 2023
91ec8ee
Merge branch 'master' of https://github.com/tdayris/snakemake-wrappers
Apr 14, 2023
90518cf
Merge remote-tracking branch 'upstream/master'
May 2, 2023
bfdc5e0
Merge branch 'master' of https://github.com/snakemake/snakemake-wrappers
Jun 14, 2023
51730a3
Merge remote-tracking branch 'upstream/master'
Jul 11, 2023
537693b
Merge remote-tracking branch 'upstream/master'
Jul 26, 2023
8e9f3ab
Merge remote-tracking branch 'upstream/master'
Aug 9, 2023
55e063c
Merge remote-tracking branch 'upstream/master'
Aug 11, 2023
aae0451
Merge branch 'master' of https://github.com/snakemake/snakemake-wrappers
tdayris Nov 24, 2023
4c0c2dc
Merge branch 'snakemake:master' into master
tdayris Feb 28, 2024
e655c03
Merge branch 'snakemake:master' into master
tdayris Mar 6, 2024
9368db6
Merge branch 'snakemake:master' into master
tdayris Jun 14, 2024
20f5129
Merge branch 'snakemake:master' into master
tdayris Jul 16, 2024
a19d670
Merge branch 'snakemake:master' into master
tdayris Aug 26, 2024
0f6b3e2
Merge remote-tracking branch 'upstream/master'
Oct 4, 2024
4728a1b
Merge remote-tracking branch 'upstream/master'
Oct 29, 2024
3405b9f
Merge remote-tracking branch 'upstream/master'
Nov 6, 2024
7033673
Merge remote-tracking branch 'upstream/master'
Nov 7, 2024
4d62fb0
Merge branch 'snakemake:master' into master
tdayris Nov 8, 2024
11ba7ad
Merge remote-tracking branch 'upstream/master'
Nov 20, 2024
8f274a5
Merge branch 'master' of https://github.com/tdayris/snakemake-wrappers
Nov 20, 2024
15e01b5
Merge remote-tracking branch 'upstream/master'
Nov 22, 2024
117c632
feat: Varscan2 SnpEff meta-wrapper
Nov 26, 2024
b810024
Fix doc issue
Nov 26, 2024
40f846a
fmt
Nov 26, 2024
e2f2616
logging
Nov 26, 2024
09f8971
Merge branch 'master' into varscan-snpeff
tdayris Nov 27, 2024
55f485c
Merge branch 'master' into varscan-snpeff
tdayris Nov 27, 2024
5abf1ed
Merge branch 'master' into varscan-snpeff
tdayris Dec 2, 2024
5c41ca6
Merge branch 'master' into varscan-snpeff
tdayris Dec 9, 2024
828d254
Update meta/bio/varscan2_snpeff/meta.yaml
tdayris Dec 9, 2024
b60e7e2
Merge branch 'master' into varscan-snpeff
tdayris Dec 16, 2024
6cf154b
Merge branch 'master' into varscan-snpeff
tdayris Jan 7, 2025
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
21 changes: 21 additions & 0 deletions meta/bio/varscan2_snpeff/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Varscan2 - SnpEff
description: >
This meta-wrapper includes the following steps:

+----------------+----------+------------------------------------------------+
| Step | Tool | Reason |
+================+==========+================================================+
| Get reference | Ensembl | Acquire genome sequence |
+----------------+----------+------------------------------------------------+
| Call variants | Samtools | Acquire a list of potential variants |
+----------------+----------+------------------------------------------------+
| Call variants | Varscan2 | Call variants with Varscan2 |
+----------------+----------+------------------------------------------------+
| Annotate calls | SnpEff | Download variants database |
+----------------+----------+------------------------------------------------+
| Annotate calls | SnpEff | Annotate variants with downloaded database |
+----------------+----------+------------------------------------------------+

authors:
- Thibault Dayris

75 changes: 75 additions & 0 deletions meta/bio/varscan2_snpeff/test/Snakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
rule get_genome_fasta:
output:
"genome.fasta",
threads: 1
log:
"logs/get_genome_fasta.log",
params:
species="saccharomyces_cerevisiae",
datatype="dna",
build="R64-1-1",
release="105",
wrapper:
"master/bio/reference/ensembl-sequence"


rule samtools_mpileup:
input:
bam=expand(
"{sample}.sorted.bam",
sample=("a", "b"),
),
reference_genome="genome.fasta",
output:
"samtools/mpileup.gz",
threads: 1
log:
"logs/samtools_mpileup.log",
params:
extra=" --count-orphans ",
wrapper:
"master/bio/samtools/mpileup"


rule varscan2_somatic:
input:
mpileup="samtools/mpileup.gz",
output:
snp="varscan2/snp.vcf",
indel="varscan2/indel.vcf",
threads: 1
log:
"logs/varscan2_somatic.log",
params:
extra=" --strand-filter 1 ",
wrapper:
"master/bio/varscan/somatic"


rule snpeff_download:
output:
directory("resources/snpeff/R64-1-1.105"),
threads: 1
log:
"logs/snpeff_download.log",
params:
reference="R64-1-1.105",
wrapper:
"master/bio/snpeff/download"


rule snpeff_annotate:
input:
calls="varscan2/snp.vcf",
db="resources/snpeff/R64-1-1.105",
output:
calls="snpeff/annotated.vcf",
stats="snpeff/annotated.html",
csvstats="snpeff/annotated.csv",
threads: 1
log:
"logs/snpeff_annotate.log",
params:
extra=" -nodownload -noLog ",
wrapper:
"master/bio/snpeff/annotate"
Binary file added meta/bio/varscan2_snpeff/test/a.sorted.bam
Binary file not shown.
Binary file added meta/bio/varscan2_snpeff/test/b.sorted.bam
Binary file not shown.
6 changes: 6 additions & 0 deletions meta/bio/varscan2_snpeff/used_wrappers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
wrappers:
- bio/reference/ensembl-sequence
- bio/samtools/mpileup
- bio/varscan/somatic
- bio/snpeff/download
- bio/snpeff/annotate
14 changes: 14 additions & 0 deletions test_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -836,6 +836,20 @@ def test_open_cravat_module(run):
)


def test_varscan2_snpeff_meta(run):
run(
"meta/bio/varscan2_snpeff",
[
"snakemake",
"--cores",
"1",
"--use-conda",
"-F",
"snpeff/annotated.vcf",
],
)


def test_salmon_tximport_meta(run):
run(
"meta/bio/salmon_tximport",
Expand Down
Loading