annotate tools/maf/vcf_to_maf_customtrack.xml @ 0:9071e359b9a3

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:37:19 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
1 <tool id="vcf_to_maf_customtrack1" name="VCF to MAF Custom Track">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <description>for display at UCSC</description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <command interpreter="python">vcf_to_maf_customtrack.py '$out_file1'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 #if $vcf_source_type.vcf_file
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 '${vcf_source_type.vcf_file[0].vcf_input.dbkey}'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 #else
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 '?'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 ${vcf_source_type.vcf_source} -n '$track_name'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 #for $vcf_repeat in $vcf_source_type.vcf_file
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 '${vcf_repeat.vcf_input}'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 #if $vcf_source_type.vcf_source == '-p'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 '${vcf_repeat.population_name}'
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 #end for
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 -g
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 </command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 <param name="track_name" type="text" label="Custom Track Name" value="Galaxy Custom Track" size="30" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 <conditional name="vcf_source_type">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 <param name="vcf_source" type="select" label="VCF Source Source Type">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 <option value="-p" selected="true">Per Population (file)</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 <option value="-s">Per Sample</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25 <when value="-p">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 <repeat name="vcf_file" title="VCF population file" min="1">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27 <param format="tabular" name="vcf_input" type="data" label="VCF file"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 <param name="population_name" type="text" label="Name for this population" value=""/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29 </repeat>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 <when value="-s">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 <repeat name="vcf_file" title="VCF sample file" min="1">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33 <param format="tabular" name="vcf_input" type="data" label="VCF file"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34 <!-- add column count validator >= 8? -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35 </repeat>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37 </conditional>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40 <data format="mafcustomtrack" name="out_file1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42 <!-- <tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44 <param name="track_name" value="Galaxy Custom Track"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
45 <param name="vcf_source" value="Per Population"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
46 <param name="vcf_input" value="vcf_to_maf_in.vcf" ftype="tabular"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
47 <param name="population_name" value=""/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
48 <output name="out_file1" file="vcf_to_maf_population_out.mafcustomtrack"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
49 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
50 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
51 <param name="track_name" value="Galaxy Custom Track"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
52 <param name="vcf_source" value="Per Sample"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
53 <param name="vcf_input" value="vcf_to_maf_in.vcf" ftype="tabular"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
54 <output name="out_file1" file="vcf_to_maf_sample_out.mafcustomtrack"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
55 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
56 </tests> -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
57 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
58 **What it does**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
59
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
60 This tool converts a Variant Call Format (VCF) file into a Multiple Alignment Format (MAF) custom track file suitable for display at genome browsers.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
61
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
62 This file should be used for display purposes only (e.g as a UCSC Custom Track). Performing an analysis using the output created by this tool as input is not recommended; the source VCF file should be used when performing an analysis.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
63
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
64 *Unknown nucleotides* are represented as '*' as required to allow the display to draw properly; these include e.g. reference bases which appear before a deletion and are not available without querying the original reference sequence.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
65
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
66 **Example**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
67
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
68 Starting with a VCF::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
69
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
70 ##fileformat=VCFv3.3
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
71 ##fileDate=20090805
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
72 ##source=myImputationProgramV3.1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
73 ##reference=1000GenomesPilot-NCBI36
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
74 ##phasing=partial
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
75 ##INFO=NS,1,Integer,"Number of Samples With Data"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
76 ##INFO=DP,1,Integer,"Total Depth"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
77 ##INFO=AF,-1,Float,"Allele Frequency"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
78 ##INFO=AA,1,String,"Ancestral Allele"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
79 ##INFO=DB,0,Flag,"dbSNP membership, build 129"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
80 ##INFO=H2,0,Flag,"HapMap2 membership"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
81 ##FILTER=q10,"Quality below 10"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
82 ##FILTER=s50,"Less than 50% of samples have data"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
83 ##FORMAT=GT,1,String,"Genotype"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
84 ##FORMAT=GQ,1,Integer,"Genotype Quality"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
85 ##FORMAT=DP,1,Integer,"Read Depth"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
86 ##FORMAT=HQ,2,Integer,"Haplotype Quality"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
87 #CHROM POS ID REF ALT QUAL FILTER INFO FORMAT NA00001 NA00002 NA00003
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
88 20 14370 rs6054257 G A 29 0 NS=3;DP=14;AF=0.5;DB;H2 GT:GQ:DP:HQ 0|0:48:1:51,51 1|0:48:8:51,51 1/1:43:5:-1,-1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
89 20 17330 . T A 3 q10 NS=3;DP=11;AF=0.017 GT:GQ:DP:HQ 0|0:49:3:58,50 0|1:3:5:65,3 0/0:41:3:-1,-1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
90 20 1110696 rs6040355 A G,T 67 0 NS=2;DP=10;AF=0.333,0.667;AA=T;DB GT:GQ:DP:HQ 1|2:21:6:23,27 2|1:2:0:18,2 2/2:35:4:-1,-1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
91 20 1230237 . T . 47 0 NS=3;DP=13;AA=T GT:GQ:DP:HQ 0|0:54:7:56,60 0|0:48:4:51,51 0/0:61:2:-1,-1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
92 20 1234567 microsat1 G D4,IGA 50 0 NS=3;DP=9;AA=G GT:GQ:DP 0/1:35:4 0/2:17:2 1/1:40:3
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
93
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
94
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
95
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
96
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
97 Under the following conditions: **VCF Source type:** *Per Population (file)*, **Name for this population:** *CHB+JPT*
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
98 Results in the following MAF custom track::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
99
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
100 track name="Galaxy Custom Track" visibility=pack
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
101 ##maf version=1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
102 a score=0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
103 s hg18.chr20 14369 1 + 14370 G
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
104 s CHB+JPT_1.1 0 1 + 1 A
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
105
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
106 a score=0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
107 s hg18.chr20 17329 1 + 17330 T
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
108 s CHB+JPT_1.2 0 1 + 1 A
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
109
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
110 a score=0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
111 s hg18.chr20 1110695 1 + 1110696 A
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
112 s CHB+JPT_1.3 0 1 + 1 G
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
113 s CHB+JPT_2.3 0 1 + 1 T
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
114
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
115 a score=0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
116 s hg18.chr20 1230236 1 + 1230237 T
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
117 s CHB+JPT_1.4 0 1 + 1 .
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
118
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
119 a score=0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
120 s hg18.chr20 1234565 5 + 1234572 *G--***
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
121 s CHB+JPT_1.5 0 1 + 1 *------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
122 s CHB+JPT_2.5 0 7 + 7 *GGA***
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
123
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
124
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
125 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
126 </tool>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
127