-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move to annovar because of to many snpEff bugs...
- Loading branch information
Showing
4 changed files
with
85 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Annovar SNPs annotation | ||
# | ||
# This module annotate SNPs from Varscan | ||
# on a gene model basis | ||
# | ||
# Input: | ||
# - sample_varscan.avinput | ||
# | ||
# Output: | ||
# - sample_varscan_anno.avoutput | ||
# | ||
# Parameters: | ||
# None... | ||
|
||
rule annovar : | ||
input: | ||
inav = config["VAR"] + "{samples}/{samples}_varscan.avinput" | ||
output: | ||
all_vars = config["VAR"] + "{samples}/{samples}_varscan.avinput.variant_function", | ||
exonic_vars = config["VAR"] + "{samples}/{samples}_varscan.avinput.exonic_variant_function" | ||
params: | ||
bind = config["BIND"], | ||
cont = config["CONT"] | ||
message: "Annotating {input.inav} with Annovar \n" | ||
shell: | ||
""" | ||
singularity exec -B {params.bind} {params.cont} \ | ||
/opt/annovar/annotate_variation.pl \ | ||
-geneanno \ | ||
-dbtype refGene \ | ||
-buildver AV \ | ||
{input.inav} \ | ||
avdb/ \ | ||
""" |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Annovar format converter | ||
# | ||
# This module convert vcf4 format files from Varscan | ||
# to annovar input format | ||
# | ||
# Input: | ||
# - sample(vcf4)_varscan.vcf | ||
# | ||
# Output: | ||
# - sample_varscan.avinput | ||
# | ||
# Parameters: | ||
# None... | ||
|
||
rule vcf4_to_avinput: | ||
input: | ||
vcf = config["VAR"] + "{samples}/{samples}_varscan.vcf" | ||
output: | ||
annovar = config["VAR"] + "{samples}/{samples}_varscan.avinput" | ||
params: | ||
bind = config["BIND"], | ||
cont = config["CONT"] | ||
message: "Converting {input.vcf} to avinput format \n" | ||
shell: | ||
""" | ||
singularity exec -B {params.bind} {params.cont} \ | ||
/opt/annovar/convert2annovar.pl \ | ||
-format vcf4 \ | ||
-includeinfo \ | ||
-outfile {output.annovar} \ | ||
{input.vcf} | ||
""" |
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