comparison varscan_vaf.xml @ 0:0b6ec297a6bc draft default tip

planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/varscan_vaf commit ff9426700b78da43ad64bf4905d358ee4986127b
author artbio
date Mon, 28 Nov 2022 21:59:34 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:0b6ec297a6bc
1 <tool id="varscan_vaf" name="Compute VAFs from varscan VCFs" version="0.1">
2 <description />
3 <requirements>
4 <requirement type="package" version="3.7.6">python</requirement>
5 </requirements>
6 <command detect_errors="exit_code"><![CDATA[
7 python $__tool_directory__/varscan_vaf.py
8 --input '$input'
9 --output '$output'
10 ]]></command>
11 <inputs>
12 <param format="vcf" label="VCF file" name="input" type="data"
13 help="a VCF file generated by somatic varscan (normal and tumor genotype),
14 or having a compatible FORMAT column (9th column)"/>
15 </inputs>
16 <outputs>
17 <data format="vcf" name="output" label="VCF with computed VAFs" />
18 </outputs>
19 <tests>
20 <test>
21 <param ftype="vcf" name="input" value="vcf_1.vcf" />
22 <output file="computed_VAFs_1.vcf" name="output" />
23 </test>
24 <test>
25 <param ftype="vcf" name="input" value="vcf_2.vcf" />
26 <output file="computed_VAFs_2.vcf" name="output" />
27 </test>
28 </tests>
29 <help>
30
31 **What it does**
32
33 + Computes VAFs in normal and tumor samples.
34 + Uses AD field of genotypes (##FORMAT ID=AD), composed of REF and ALT Read depths, separated by a comma.
35 + A new genotype field 'VAF" (##FORMAT IF=VAF) is generated
36 + VAF = AD(ALT) / (AD(ALT) + AD(REF))
37
38 -------
39
40 **Inputs**
41
42 1. A somatic varscan VCF with AD field in third position.
43 2. The AD field must be composed of two integers separated by a comma.
44
45 -------
46
47 **Output**
48
49 + A VCF file
50 + A line '##FORMAT=&lt;ID=VAF,Number=R,Type=float,Description="Variant Allele Frequency"&gt;' is added in the header
51 + The VAF value is added in both normal and tumor genotype column, as a last field
52
53 </help>
54 <citations />
55 </tool>