|
0
|
1 <tool id="fourgamete" name="Four Gamete Test" version="0.1">
|
|
|
2 <requirements>
|
|
|
3 <requirement type="package">pysam</requirement>
|
|
|
4 </requirements>
|
|
|
5 <stdio>
|
|
|
6 <exit_code range="1:" level="fatal" />
|
|
|
7 </stdio>
|
|
|
8 <description>Tests a VCF file for a subregion that passes four gamete test</description>
|
|
|
9 <command>
|
|
|
10 <![CDATA[
|
|
|
11 python $__tool_directory__/four_gamete_pysam.py
|
|
|
12 --vcfname $input
|
|
|
13 --out $output
|
|
|
14 --4gcompat
|
|
|
15 --reti
|
|
|
16 #if str($select_arg) == 'left':
|
|
|
17 --left
|
|
|
18 #elif str($select_arg) == 'right':
|
|
|
19 --right
|
|
|
20 #elif str($select_arg) == 'randomi':
|
|
|
21 --rani
|
|
|
22 #else:
|
|
|
23 --ranb
|
|
|
24 #end if
|
|
|
25 --numinf $infsites
|
|
|
26 #if $input.is_of_type('vcf_bgzip')
|
|
|
27 --tbi $input.metadata.tabix_index
|
|
|
28 #end if
|
|
|
29
|
|
|
30 ]]>
|
|
|
31
|
|
|
32 </command>
|
|
|
33 <inputs>
|
|
|
34 <param format="vcf,vcf_bgzip,bcf" name="input" type="data" label="VCF input" />
|
|
|
35 <param type="integer" name="infsites" label="Number of informative sites required in subregion" value="2" min="0" />
|
|
|
36 <param name="select_arg" type="select" label="Subregion to Select">
|
|
|
37 <option value="left">Left-most</option>
|
|
|
38 <option value="right" selected="True">Right-most</option>
|
|
|
39 <option value="randomi">Random (equal probability per region)</option>
|
|
|
40 <option value="randomb">Random (probability equal to size)</option>
|
|
|
41 </param>
|
|
|
42 </inputs>
|
|
|
43 <outputs>
|
|
|
44 <data format="vcf" name="output"/>
|
|
|
45 </outputs>
|
|
|
46 <help>
|
|
|
47 <![CDATA[
|
|
|
48
|
|
|
49 Input VCF will be examined for regions that pass the four-gamete test, which indicates there have been no recombination in this region for this sample. For most cases, a failure of the four-gamete test occurs when two SNPs have four gametes between them. (00,01,10,11) Using selection criteria, a region with the target number of informative SNPs that passes the four-gamete criteria will be output to a VCF file.
|
|
|
50
|
|
|
51 ]]>
|
|
|
52
|
|
|
53 </help>
|
|
|
54 </tool>
|