Mercurial > repos > geert-vandeweyer > vcf_to_variantdb
annotate VCF_to_VariantDB.xml @ 6:775372e00f55 draft
Uploaded
author | geert-vandeweyer |
---|---|
date | Fri, 21 Feb 2014 07:17:28 -0500 |
parents | 7ebc71784e9f |
children | 04e3bba317f4 |
rev | line source |
---|---|
2
d03a63a57e82
New version, better following configuration guidelines
geert-vandeweyer
parents:
0
diff
changeset
|
1 <tool id="VCF_to_DB_rev" name="VCF to VariantDB" version="0.1.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 |
2
d03a63a57e82
New version, better following configuration guidelines
geert-vandeweyer
parents:
0
diff
changeset
|
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__ |
16 | |
17 ## OUTPUT FILE | |
18 -o $output1 | |
19 | |
20 ## SAMPLE GENDER | |
21 #if $samplegender != "undef": | |
22 -g $samplegender | |
23 #end if | |
24 | |
25 ## SAMPLE NAME | |
26 #if $namefromselect.namesource == "typed" : | |
27 #if $namefromselect.typedname != "": | |
28 -n "${namefromselect.typedname}" | |
29 #end if | |
30 #elif $namefromselect.namesource == "other": | |
31 -n "${namefromselect.namefile.display_name}" | |
32 #elif $namefromselect.namesource == "vcf": | |
33 -n "${input1.display_name}" | |
34 #end if | |
35 | |
36 ## DATA FILES | |
37 #if $sendData.store == "true": | |
38 -b $bamfile | |
39 -B ${bamfile.metadata.bam_index} | |
40 -c $__app__.security.encode_id( '%s' % $bamfile.id ) | |
41 #end if | |
42 | |
43 ## The server to send results to | |
44 -S $server | |
45 | |
46 | |
47 </command> | |
48 <requirements> | |
49 <requirement type="package">tabix</requirement> | |
50 </requirements> | |
51 <inputs> | |
52 <param name="input1" type="data" format="vcf" label="VCF file" help="Unified Genotyper VCF File" /> | |
53 <conditional name="sendData"> | |
54 <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." > | |
55 <option value="false">No</option> | |
56 <option value="true">Yes</option> | |
57 </param> | |
58 <when value="true"> | |
59 <param name="bamfile" type="data" format="bam" label="BAM File." /> | |
60 </when> | |
61 </conditional> | |
62 | |
63 <conditional name="namefromselect"> | |
64 <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" > | |
65 <option value="typed">Type the samplename</option> | |
66 <option value="vcf">Use the VCF File name</option> | |
67 <option value="other">Select a file to base the name on</option> | |
68 </param> | |
69 <when value="typed"> | |
2
d03a63a57e82
New version, better following configuration guidelines
geert-vandeweyer
parents:
0
diff
changeset
|
70 <param name="typedname" type="text" size="25" label="Sample Name." /> |
0 | 71 </when> |
72 <when value="other"> | |
73 <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" /> | |
74 </when> | |
75 </conditional> | |
76 <param name="samplegender" type="select" label="Sample Gender: " help="This can be set from the database frontend as well."> | |
77 <option value="undef">Unspecified</option> | |
78 <option value="Male">Male</option> | |
79 <option value="Female">Female</option> | |
80 </param> | |
81 <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."> | |
82 <option value="http://143.169.238.104/variantdb/">Main Server @ University of Antwerp</option> | |
83 </param> | |
84 </inputs> | |
85 <outputs> | |
86 <data format="txt" name="output1" label="${tool.name} on ${on_string}: Result"/> | |
87 </outputs> | |
88 <help> | |
89 | |
90 **What it does** | |
91 | |
2
d03a63a57e82
New version, better following configuration guidelines
geert-vandeweyer
parents:
0
diff
changeset
|
92 This tools sends the results from the GATK unified genotyper 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 | 93 |
94 ------ | |
95 | |
96 | |
97 **Input file** | |
98 | |
2
d03a63a57e82
New version, better following configuration guidelines
geert-vandeweyer
parents:
0
diff
changeset
|
99 VCF file from the GATK Unified Genotyper. |
0 | 100 |
101 ------ | |
102 | |
103 **Outputs** | |
104 | |
105 Text file with some results from the vcf-parser. | |
106 | |
107 </help> | |
108 </tool> | |
109 | |
110 |