annotate extract.xml @ 0:76ad0b7865b9 draft default tip

Imported from capsule None
author devteam
date Mon, 27 Jan 2014 09:26:27 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
1 <tool id="vcf_extract" name="Extract" version="1.0.0">
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
2 <description>reads from a specified region</description>
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
3 <command interpreter="python">
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
4 vcfPytools.py
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
5 extract
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
6 --in=$input1
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
7 --out=$output1
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
8 #if $reference_sequence.value.strip()
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
9 --reference-sequence=$reference_sequence
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
10 #end if
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
11 #if $region.value.strip()
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
12 --region=$region
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
13 #end if
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
14 #if $keep_quality.value.strip()
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
15 --keep-quality=$keep_quality
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
16 #end if
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
17 #if $keep_info.value.strip()
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
18 --keep-info=$keep_info
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
19 #end if
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
20 #if $discard_info.value.strip()
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
21 --discard-info=$discard_info
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
22 #end if
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
23 $pass_filter
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
24 </command>
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
25 <inputs>
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
26 <param name="input1" label="VCF file" type="data" format="vcf" />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
27 <param name="reference_sequence" label="Extract records from this reference sequence" type="text" value='' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
28 <param name="region" label="Extract records from this region" type="text" value='' help="The format of the region is ref:start..end, where the start and end coordinates are 1-based"/>
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
29 <param name="keep_quality" label="Keep records containing this quality" type="text" value='' help="This requires two arguments: the quality value and a logical operator (eq - equals, le - less than or equal to, lt - less than, ge - greater than or equal to , gt - greater than) to determine which records to keep. For example: '90 ge' will retain all records that have a quality of 90 or greater"/>
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
30 <param name="keep_info" label="Keep records containing this info field" type="text" value='' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
31 <param name="discard_info" label="Discard records containing this info field" type="text" value='' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
32 <param name="pass_filter" label="Discard records whose filter field is not PASS" type="boolean" truevalue="--pass-filter" falsevalue="" checked="False"/>
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
33 </inputs>
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
34 <tests>
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
35 <test>
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
36 <param name="input1" value="test_filter_quality_9_DP_2000_lt.vcf" ftype="vcf" />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
37 <param name="reference_sequence" value='' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
38 <param name="region" value='' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
39 <param name="keep_quality" value='' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
40 <param name="keep_info" value='' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
41 <param name="discard_info" value='' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
42 <param name="pass_filter" value='true' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
43 <output name="output" file="test_extract_pass_filter_quality_9_DP_2000_lt.vcf" lines_diff="6" ftype="vcf" />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
44 </test>
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
45 <test>
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
46 <param name="input1" value="test.small.vcf" ftype="vcf" />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
47 <param name="reference_sequence" value='' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
48 <param name="region" value='20:80000..100000' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
49 <param name="keep_quality" value='' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
50 <param name="keep_info" value='' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
51 <param name="discard_info" value='' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
52 <param name="pass_filter" value='false' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
53 <output name="output" file="test_extract_region_80000_100000.vcf" ftype="vcf" />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
54 </test>
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
55 <test>
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
56 <param name="input1" value="test.small.vcf" ftype="vcf" />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
57 <param name="reference_sequence" value='' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
58 <param name="region" value='' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
59 <param name="keep_quality" value='90 ge' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
60 <param name="keep_info" value='' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
61 <param name="discard_info" value='' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
62 <param name="pass_filter" value='false' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
63 <output name="output" file="test_extract_quality_90_ge.vcf" ftype="vcf" />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
64 </test>
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
65 <test>
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
66 <param name="input1" value="test.small.vcf" ftype="vcf" />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
67 <param name="reference_sequence" value='' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
68 <param name="region" value='' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
69 <param name="keep_quality" value='' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
70 <param name="keep_info" value='TV' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
71 <param name="discard_info" value='' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
72 <param name="pass_filter" value='false' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
73 <output name="output" file="test_extract_keep_info_TV.vcf" ftype="vcf" />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
74 </test>
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
75 <test>
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
76 <param name="input1" value="test.small.vcf" ftype="vcf" />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
77 <param name="reference_sequence" value='' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
78 <param name="region" value='' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
79 <param name="keep_quality" value='' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
80 <param name="keep_info" value='' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
81 <param name="discard_info" value='TV' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
82 <param name="pass_filter" value='false' />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
83 <output name="output" file="test_extract_discard_info_TV.vcf" ftype="vcf" />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
84 </test>
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
85 </tests>
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
86 <outputs>
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
87 <data format="vcf" name="output1" label="${tool.name} from ${on_string}" />
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
88 </outputs>
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
89 <help>
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
90
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
91 **What it does**
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
92
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
93 This tool uses vcfPytools_' extract command to extract reads from a specified region of a VCF file
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
94
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
95 .. _vcfPytools: https://github.com/AlistairNWard/vcfPytools
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
96
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
97 Option **Extract records from this reference sequence** outputs all records from the specified reference sequence from the input vcf file into the output vcf file.
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
98
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
99 Option **Extract records from this region** outputs all records from the specified region from the input vcf file into the output vcf file. The format of the region is ref:start..end, where the start and end coordinates are 1-based.
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
100
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
101 Option **Keep records containing this quality** allows only records with specified quality values to be retained. This requires two arguments: the quality value and a logical operator (eq - equals, le - less than or equal to, lt - less than, ge - greater than or equal to , gt - greater than) to determine which records to keep. For example: **90 ge** will retain all records that have a quality of 90 or greater.
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
102
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
103 Option **Keep records containing this info field** allows all records to be removed unless they contain this value in the info field.
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
104
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
105 Option **Discard records containing this info field** ensures that all records containing this value in the info field will not be included in the output file. This cannot be used in conjunction with Keep info field to avoid conflict.
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
106
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
107 Option **Discard records whose filter field is not PASS** will only output records that have the filter field populated with PASS. All filtered records or records that haven't undergone filtering will be discarded.
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
108
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
109
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
110 </help>
76ad0b7865b9 Imported from capsule None
devteam
parents:
diff changeset
111 </tool>