7
|
1 <tool id="vcf_snp" name="vcf to snp" version="0.5">
|
1
|
2 <description>vcf to snp for fasta</description>
|
|
3 <requirements>
|
|
4 <!-- Should just use the filter snp that's installed in the path -->
|
|
5
|
|
6 </requirements>
|
|
7
|
|
8 ## The command is a Cheetah template which allows some Python based syntax.
|
|
9 ## Lines starting hash hash are comments. Galaxy will turn newlines into spaces
|
|
10 ## ! We only have a simple single command here.
|
7
|
11 <command interpreter="python">
|
1
|
12 vcf_snp.py
|
|
13 -s ${vcf}
|
7
|
14 -p ${pos}
|
|
15 -o output.txt;
|
|
16 echo ${vcf.name} > name.txt;
|
|
17 cut -f2 output.txt >seq.txt;
|
|
18 paste name.txt seq.txt> output2.txt
|
1
|
19
|
|
20 </command>
|
|
21
|
|
22 <inputs>
|
|
23 <param name="vcf" type="data" label="vcf" help=""/>
|
7
|
24 <param name="pos" type="data" label="positions" help=""/>
|
1
|
25
|
|
26 </inputs>
|
|
27
|
|
28 <outputs>
|
7
|
29 <data format="tabular" name="output_file" label="${vcf}" from_work_dir="output2.txt">
|
1
|
30 </data>
|
|
31 </outputs>
|
|
32
|
|
33 <tests>
|
|
34 <!-- Empty -->
|
|
35 </tests>
|
|
36
|
|
37 <help>
|
|
38
|
|
39 .. class:: infomark
|
|
40
|
|
41 **What it does**
|
|
42
|
3
|
43 Transforms a vcf into a snp tab file. Has to take the nucleotide from the reference column when identical.
|
1
|
44
|
|
45 -------------
|
|
46
|
|
47 .. class:: infomark
|
|
48
|
|
49 **Tool Author**
|
|
50
|
|
51 Brigida Rusconi
|
|
52
|
|
53
|
|
54 </help>
|
|
55 </tool> |