|
2
|
1 <tool id="fourgamete" name="Four Gamete Test" version="0.1">
|
|
|
2 <requirements>
|
|
|
3 <requirement type="package">pysam</requirement>
|
|
4
|
4 <requirement type="package">py-popgen</requirement>
|
|
2
|
5 </requirements>
|
|
|
6 <stdio>
|
|
|
7 <exit_code range="1:" level="fatal" />
|
|
|
8 </stdio>
|
|
|
9 <description>Tests a VCF file for a subregion that passes four gamete test</description>
|
|
|
10 <command>
|
|
|
11 <![CDATA[
|
|
8
|
12 four_gamete.py
|
|
2
|
13 --vcfs $input
|
|
|
14 --out $output
|
|
|
15 --4gcompat
|
|
|
16 --reti
|
|
|
17 #if str($select_arg) == 'left':
|
|
|
18 --left
|
|
|
19 #elif str($select_arg) == 'right':
|
|
|
20 --right
|
|
|
21 #elif str($select_arg) == 'randomi':
|
|
|
22 --rani
|
|
|
23 #elif str($select_arg) == 'maxlen':
|
|
|
24 --maxlen
|
|
|
25 #else:
|
|
|
26 --ranb
|
|
|
27 #end if
|
|
|
28 --numinf $infsites
|
|
|
29 #if $input.is_of_type('vcf_bgzip')
|
|
|
30 --tbi $input.metadata.tabix_index
|
|
|
31 #end if
|
|
|
32 $ovlps
|
|
|
33 $ovlpi
|
|
|
34
|
|
|
35 ]]>
|
|
|
36
|
|
|
37 </command>
|
|
|
38 <inputs>
|
|
|
39 <param format="vcf,vcf_bgzip,bcf" name="input" type="data" label="VCF input" />
|
|
|
40 <param type="integer" name="infsites" label="Number of informative sites required in subregion" value="2" min="0" />
|
|
|
41 <param name="select_arg" type="select" label="Subregion to Select">
|
|
|
42 <option value="left">Left-most</option>
|
|
|
43 <option value="right" selected="True">Right-most</option>
|
|
|
44 <option value="randomi">Random (equal probability per region)</option>
|
|
|
45 <option value="randomb">Random (probability equal to size)</option>
|
|
|
46 <option value="maxlen">Longest Subregion</option>
|
|
|
47 </param>
|
|
|
48 <param type="boolean" name="ovlps" truevalue="--ovlps" falsevalue="" label="Include non-informative variants between edge of region and variant that breaks region" />
|
|
|
49 <param type="boolean" name="ovlpi" truevalue="--ovlpi" falsevalue="" label="Include informative variants from overlapping regions" />
|
|
|
50 </inputs>
|
|
|
51 <outputs>
|
|
|
52 <data format="vcf" name="output"/>
|
|
|
53 </outputs>
|
|
|
54 <help>
|
|
|
55 <![CDATA[
|
|
|
56
|
|
|
57 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.
|
|
|
58
|
|
|
59 ]]>
|
|
|
60
|
|
|
61 </help>
|
|
|
62 </tool>
|