generated from snakemake-workflows/snakemake-workflow-template
-
Notifications
You must be signed in to change notification settings - Fork 3
feat: VEP annotation with REVEL, Sift and PolyPhen Scores to fp/fn vcfs #154
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
1e63fb0
feat: added VEP annotation with REVEL, Sift and PolyPhen Scores to fp…
BiancaStoecker 30894c7
Merge branch 'main' into feat/add-revel-scores
BiancaStoecker e991968
fix: also all sift and polyphen to unique fp fn.
BiancaStoecker b6e3955
fix: update curl version
BiancaStoecker ba99965
Merge branch 'feat/add-revel-scores' of github.com:snakemake-workflow…
BiancaStoecker 9777d13
Merge branch 'main' into feat/add-revel-scores
famosab e9657ce
fix: Update wrapper to latests version
BiancaStoecker 4812629
fix: use existing env tools
BiancaStoecker 49ef78e
fix: Update wrapper to latest version
BiancaStoecker 2aba570
fix: Update wrapper to latest version
BiancaStoecker 90d50f1
fix: Update wrapper to latest version
BiancaStoecker 45a13e3
fix: Update wrapper to latest version
BiancaStoecker 1caa2e0
fix: use existing env tools
BiancaStoecker 8725eb2
test: Add disk space cleanup step for github action
BiancaStoecker 24d716f
test: remove docker-images in free disc space action
BiancaStoecker 8f63d86
try: using downsampled VEP cache for CI tests
famosab 44f5fe5
fix: use downsampled cache for both annotations
famosab bf82976
fix: gunzip vep tar file
famosab 66888a2
fix: utilize chr22 revel for testing
famosab 8c2a640
fix: linting
famosab dcb06ca
test: use downsampled revel score file
famosab e5ff56b
fix: linting
famosab 7b5b5dc
fix: correct path
famosab a05f625
fix: use locally created tbi
famosab 99441a4
fix: use locally created tbi
famosab 9bf2d89
fix: linting
famosab da06c03
test: move resources to test folder
famosab 6a0db08
test: change to source_path
famosab 02b09b7
fix: move to resources folder
famosab 8772120
fix: gitignore
famosab e469e50
fix: tar
famosab bb8f426
fix: path
famosab 8b23d23
fix: path
famosab 0181ccf
fix: path
famosab 7e291c7
fix: get tar from git
famosab 92af514
Merge branch 'main' into feat/add-revel-scores
famosab f73d896
fix: use source path for vep cache
famosab a8ee11e
feat: add vembrane table
famosab 01b6293
feat: add note in readme
famosab ada1039
test: setting snakemake min version
famosab 0557fb3
fix: add bcftools/norm and special expression
famosab ce735e0
feat: more entries for variant table
famosab 89ac4c8
fix: update vep cache to 113
famosab 594a52d
fix: update vep cache to 115
famosab b7118fe
perf: autobump snakemake wrappers (#158)
johanneskoester File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| channels: | ||
| - conda-forge | ||
| - nodefaults | ||
| dependencies: | ||
| - curl =7.86.0 | ||
coderabbitai[bot] marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
BiancaStoecker marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| channels: | ||
| - conda-forge | ||
| - bioconda | ||
| dependencies: | ||
| - htslib =1.12 | ||
| - unzip =6.0 |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,125 @@ | ||
| rule get_vep_cache: | ||
| output: | ||
| directory("resources/vep/cache"), | ||
| params: | ||
| species="homo_sapiens", | ||
| build=get_reference_genome_build(), | ||
| release="111", | ||
| log: | ||
| "logs/vep/cache.log", | ||
| cache: "omit-software" | ||
| wrapper: | ||
| "v8.0.2/bio/vep/cache" | ||
BiancaStoecker marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
|
|
||
| rule get_vep_plugins: | ||
| output: | ||
| directory("resources/vep/plugins"), | ||
| params: | ||
| release="111", | ||
| log: | ||
| "logs/vep/plugins.log", | ||
| wrapper: | ||
| "v8.0.2/bio/vep/plugins" | ||
BiancaStoecker marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
|
|
||
| rule download_revel: | ||
| output: | ||
| temp("resources/revel_scores.zip"), | ||
| log: | ||
| "logs/vep_plugins/download_revel.log", | ||
| conda: | ||
| "../envs/curl.yaml" | ||
BiancaStoecker marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| shell: | ||
| "curl https://zenodo.org/records/7072866/files/revel-v1.3_all_chromosomes.zip -o {output} &> {log}" | ||
BiancaStoecker marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
|
|
||
| rule process_revel_scores: | ||
| input: | ||
| "resources/revel_scores.zip", | ||
| output: | ||
| "resources/revel_scores.tsv.gz", | ||
| params: | ||
| build=get_reference_genome_build(), | ||
| log: | ||
| "logs/vep_plugins/process_revel_scores.log", | ||
| conda: | ||
| "../envs/htslib.yaml" | ||
BiancaStoecker marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| shell: | ||
| """ | ||
| tmpfile=$(mktemp {resources.tmpdir}/revel_scores.XXXXXX) | ||
| unzip -p {input} | tr "," "\t" | sed '1s/.*/#&/' | bgzip -c > $tmpfile | ||
| if [ "{params.build}" == "GRCh38" ] ; then | ||
| zgrep -h -v ^#chr $tmpfile | awk '$3 != "." ' | sort -k1,1 -k3,3n - | cat <(zcat $tmpfile | head -n1) - | bgzip -c > {output} | ||
| elif [ "{params.build}" == "GRCh37" ] ; then | ||
| cat $tmpfile > {output} | ||
| else | ||
| echo "Annotation of REVEL scores only supported for GRCh37 or GRCh38" > {log} | ||
| exit 125 | ||
| fi | ||
| """ | ||
famosab marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
|
|
||
| rule tabix_revel_scores: | ||
| input: | ||
| "resources/revel_scores.tsv.gz", | ||
| output: | ||
| "resources/revel_scores.tsv.gz.tbi", | ||
| params: | ||
| get_tabix_revel_params(), | ||
| log: | ||
| "logs/tabix/revel.log", | ||
| wrapper: | ||
| "v8.0.2/bio/tabix/index" | ||
BiancaStoecker marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
|
|
||
| rule annotate_shared_fn: | ||
| input: | ||
| calls="results/fp-fn/vcf/{benchmark}/{benchmark}.shared_fn.sorted.vcf.gz", | ||
| cache=access.random("resources/vep/cache"), | ||
| plugins=access.random("resources/vep/plugins"), | ||
| revel=lambda wc: get_plugin_aux("REVEL"), | ||
| revel_tbi=lambda wc: get_plugin_aux("REVEL", True), | ||
| fasta=access.random("resources/reference/genome.fasta"), | ||
| fai="resources/reference/genome.fasta.fai", | ||
| output: | ||
| calls="results/fp-fn/annotated_vcf/{benchmark}/{benchmark}.shared_fn.annotated.vcf.gz", | ||
| stats="results/fp-fn/annotated_vcf/{benchmark}/{benchmark}.shared_fn.stats.html", | ||
| params: | ||
| # Pass a list of plugins to use, see https://www.ensembl.org/info/docs/tools/vep/script/vep_plugins.html | ||
| # Plugin args can be added as well, e.g. via an entry "MyPlugin,1,FOO", see docs. | ||
| plugins=["REVEL"], | ||
| extra="--everything --check_existing --vcf_info_field ANN --hgvsg --sift b --polyphen b ", | ||
| log: | ||
| "logs/vep/fp-fn/{benchmark}/{benchmark}.shared_fn.annotate.log", | ||
| threads: 4 | ||
| group: | ||
| "annotation" | ||
| wrapper: | ||
| "v8.0.2/bio/vep/annotate" | ||
BiancaStoecker marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
|
|
||
| rule annotate_unique_fp_fn: | ||
| input: | ||
| calls="results/fp-fn/vcf/{benchmark}/{callset}.unique_{classification}.sorted.vcf.gz", | ||
| cache=access.random("resources/vep/cache"), | ||
| plugins=access.random("resources/vep/plugins"), | ||
| revel=lambda wc: get_plugin_aux("REVEL"), | ||
| revel_tbi=lambda wc: get_plugin_aux("REVEL", True), | ||
| fasta=access.random("resources/reference/genome.fasta"), | ||
| fai="resources/reference/genome.fasta.fai", | ||
| output: | ||
| calls="results/fp-fn/annotated_vcf/{benchmark}/{callset}.unique_{classification}.annotated.vcf.gz", | ||
| stats="results/fp-fn/annotated_vcf/{benchmark}/{callset}.unique_{classification}.stats.html", | ||
| params: | ||
| # Pass a list of plugins to use, see https://www.ensembl.org/info/docs/tools/vep/script/vep_plugins.html | ||
| # Plugin args can be added as well, e.g. via an entry "MyPlugin,1,FOO", see docs. | ||
| plugins=["REVEL"], | ||
| extra="--everything --check_existing --vcf_info_field ANN --hgvsg", | ||
| log: | ||
| "logs/vep/fp-fn/{benchmark}/{callset}.unique_{classification}.annotate.log", | ||
| threads: 4 | ||
| group: | ||
| "annotation" | ||
| wrapper: | ||
| "v8.0.2/bio/vep/annotate" | ||
coderabbitai[bot] marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
BiancaStoecker marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.