Mercurial > repos > geert-vandeweyer > vcf_to_variantdb
annotate VCF_to_VariantDB.xml @ 11:fb815517e918 draft default tip
Added support for 23andMe VCF files generated by ArrogantRobot
author | geert-vandeweyer |
---|---|
date | Fri, 20 Feb 2015 05:49:54 -0500 |
parents | d5040a542e9d |
children |
rev | line source |
---|---|
9
3b27cae9b359
New Version. VariantDB checks for Genome Build matching using the Galaxy dbkey variable.
geert-vandeweyer
parents:
8
diff
changeset
|
1 <tool id="VCF_to_DB_rev" name="VCF to VariantDB" version="0.1.3"> |
2
d03a63a57e82
New version, better following configuration guidelines
geert-vandeweyer
parents:
0
diff
changeset
|
2 <description></description> |
d03a63a57e82
New version, better following configuration guidelines
geert-vandeweyer
parents:
0
diff
changeset
|
3 <expand macro="requirements" /> |
d03a63a57e82
New version, better following configuration guidelines
geert-vandeweyer
parents:
0
diff
changeset
|
4 <macros> |
d03a63a57e82
New version, better following configuration guidelines
geert-vandeweyer
parents:
0
diff
changeset
|
5 <import>VCF_to_VariantDB_macros.xml</import> |
d03a63a57e82
New version, better following configuration guidelines
geert-vandeweyer
parents:
0
diff
changeset
|
6 </macros> |
0 | 7 <command interpreter="perl"> |
4 | 8 VCF_to_VariantDB.pl |
8 | 9 -H "@URL@" |
0 | 10 -R $__root_dir__ |
11 ## input file | |
12 -v $input1 | |
13 -V $__app__.security.encode_id( '%s' % $input1.id ) | |
2
d03a63a57e82
New version, better following configuration guidelines
geert-vandeweyer
parents:
0
diff
changeset
|
14 ## user email, for identification in DataBase |
0 | 15 -u $__user_email__ |
9
3b27cae9b359
New Version. VariantDB checks for Genome Build matching using the Galaxy dbkey variable.
geert-vandeweyer
parents:
8
diff
changeset
|
16 ## source file dbkey ( match against variantdb genome build) |
3b27cae9b359
New Version. VariantDB checks for Genome Build matching using the Galaxy dbkey variable.
geert-vandeweyer
parents:
8
diff
changeset
|
17 -G ${input1.dbkey} |
0 | 18 ## OUTPUT FILE |
19 -o $output1 | |
20 | |
21 ## SAMPLE GENDER | |
22 #if $samplegender != "undef": | |
23 -g $samplegender | |
24 #end if | |
25 | |
26 ## SAMPLE NAME | |
27 #if $namefromselect.namesource == "typed" : | |
28 #if $namefromselect.typedname != "": | |
29 -n "${namefromselect.typedname}" | |
30 #end if | |
31 #elif $namefromselect.namesource == "other": | |
32 -n "${namefromselect.namefile.display_name}" | |
33 #elif $namefromselect.namesource == "vcf": | |
34 -n "${input1.display_name}" | |
35 #end if | |
36 | |
37 ## DATA FILES | |
38 #if $sendData.store == "true": | |
39 -b $bamfile | |
40 -B ${bamfile.metadata.bam_index} | |
41 -c $__app__.security.encode_id( '%s' % $bamfile.id ) | |
42 #end if | |
43 | |
44 ## The server to send results to | |
45 -S $server | |
7
04e3bba317f4
Added selection to differentiate in VCF format
geert-vandeweyer
parents:
4
diff
changeset
|
46 ## The input file format |
04e3bba317f4
Added selection to differentiate in VCF format
geert-vandeweyer
parents:
4
diff
changeset
|
47 -F $format |
0 | 48 |
49 </command> | |
50 <requirements> | |
51 <requirement type="package">tabix</requirement> | |
52 </requirements> | |
53 <inputs> | |
7
04e3bba317f4
Added selection to differentiate in VCF format
geert-vandeweyer
parents:
4
diff
changeset
|
54 <param name="input1" type="data" format="vcf" label="VCF file" help="Select variant file to import" /> |
04e3bba317f4
Added selection to differentiate in VCF format
geert-vandeweyer
parents:
4
diff
changeset
|
55 <param name="format" type="select" label="VCF Source Application" help="Supported formats are VCF from UnifiedGenotyper, HaplotypeCaller, Mutect and VarScan"> |
04e3bba317f4
Added selection to differentiate in VCF format
geert-vandeweyer
parents:
4
diff
changeset
|
56 <option value="UG">GATK Unified Genotyper</option> |
04e3bba317f4
Added selection to differentiate in VCF format
geert-vandeweyer
parents:
4
diff
changeset
|
57 <option value="HC">GATK Haplotype Caller</option> |
04e3bba317f4
Added selection to differentiate in VCF format
geert-vandeweyer
parents:
4
diff
changeset
|
58 <option value="MT">GATK MuTect</option> |
04e3bba317f4
Added selection to differentiate in VCF format
geert-vandeweyer
parents:
4
diff
changeset
|
59 <option value="VS">Samtools VarScan</option> |
11
fb815517e918
Added support for 23andMe VCF files generated by ArrogantRobot
geert-vandeweyer
parents:
10
diff
changeset
|
60 <option vlaue="23">23andMe (by ArrogantRobot)</option> |
7
04e3bba317f4
Added selection to differentiate in VCF format
geert-vandeweyer
parents:
4
diff
changeset
|
61 </param> |
0 | 62 <conditional name="sendData"> |
63 <param name="store" type="select" label="Store VCF and BAM Files:" help="This option allows you to send the BAM and VCF files to our storage server for dynamic loading into IGV. If you store them there, please delete them here." > | |
64 <option value="false">No</option> | |
65 <option value="true">Yes</option> | |
66 </param> | |
67 <when value="true"> | |
68 <param name="bamfile" type="data" format="bam" label="BAM File." /> | |
69 </when> | |
7
04e3bba317f4
Added selection to differentiate in VCF format
geert-vandeweyer
parents:
4
diff
changeset
|
70 <when value="false" /> |
0 | 71 </conditional> |
72 | |
73 <conditional name="namefromselect"> | |
74 <param name="namesource" type="select" label="Provide a Sample Name :" help="If no name is specified, a new sample will be created, and you will be notified of the name" > | |
75 <option value="typed">Type the samplename</option> | |
76 <option value="vcf">Use the VCF File name</option> | |
77 <option value="other">Select a file to base the name on</option> | |
78 </param> | |
79 <when value="typed"> | |
2
d03a63a57e82
New version, better following configuration guidelines
geert-vandeweyer
parents:
0
diff
changeset
|
80 <param name="typedname" type="text" size="25" label="Sample Name." /> |
0 | 81 </when> |
82 <when value="other"> | |
83 <param name="namefile" type="data" format="sam,bam,fastq,fasta,bed,fastqsanger,fastqillumina,txt,vcf" label="Select a file from the history to base the sample name upon" /> | |
84 </when> | |
7
04e3bba317f4
Added selection to differentiate in VCF format
geert-vandeweyer
parents:
4
diff
changeset
|
85 <when value="vcf"/> |
0 | 86 </conditional> |
87 <param name="samplegender" type="select" label="Sample Gender: " help="This can be set from the database frontend as well."> | |
88 <option value="undef">Unspecified</option> | |
89 <option value="Male">Male</option> | |
90 <option value="Female">Female</option> | |
91 </param> | |
92 <param name="server" type="select" label="VariantDB-Server: " help="Specify the VariantDB server you wish to send the data to. You MUST have a valid account on the target server, identical to your account here."> | |
93 <option value="http://143.169.238.104/variantdb/">Main Server @ University of Antwerp</option> | |
94 </param> | |
95 </inputs> | |
96 <outputs> | |
97 <data format="txt" name="output1" label="${tool.name} on ${on_string}: Result"/> | |
98 </outputs> | |
99 <help> | |
100 | |
101 **What it does** | |
102 | |
7
04e3bba317f4
Added selection to differentiate in VCF format
geert-vandeweyer
parents:
4
diff
changeset
|
103 This tools sends VCF files with results from the GATK unified genotyper, HaploType Caller, Mutect or samtools VarScan to a VariantDB server. From there, variants can be compared between samples, filtered on various annotations etc. To add servers, specify them in the tool configuration XML file. |
0 | 104 |
105 ------ | |
106 | |
107 | |
108 **Input file** | |
109 | |
2
d03a63a57e82
New version, better following configuration guidelines
geert-vandeweyer
parents:
0
diff
changeset
|
110 VCF file from the GATK Unified Genotyper. |
0 | 111 |
112 ------ | |
113 | |
114 **Outputs** | |
115 | |
116 Text file with some results from the vcf-parser. | |
117 | |
118 </help> | |
10 | 119 <citations> |
120 <citation type="doi">10.1186/s13073-014-0074-6</citation> | |
121 </citations> | |
0 | 122 </tool> |
123 | |
124 |