annotate vcfcheck.xml @ 0:d7d4d88ae84d draft

Uploaded
author devteam
date Thu, 19 Mar 2015 13:34:33 -0400
parents
children 40a339e4692e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
1 <tool id="vcfcheck" name="VCFcheck:" version="0.0.3">
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
2 <description>Verify that the reference allele matches the reference genome</description>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
3 <macros>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
4 <import>macros.xml</import>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
5 </macros>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
6 <expand macro="requirements"></expand>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
7 <command>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
8 #set $reference_fasta_filename = "localref.fa"
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
9 #if str( $reference_source.reference_source_selector ) == "history":
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
10 ln -s "${reference_source.ref_file}" "${reference_fasta_filename}" &amp;&amp;
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
11 #else:
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
12 #set $reference_fasta_filename = str( $reference_source.ref_file.fields.path )
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
13 #end if
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
14 vcfcheck $failure_selector -f "${reference_fasta_filename}" "${input_vcf}" > "${out_file1}"</command>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
15 <inputs>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
16 <conditional name="reference_source">
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
17 <param name="reference_source_selector" type="select" label="Choose the source for the reference genome">
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
18 <option value="cached">Locally cached</option>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
19 <option value="history">History</option>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
20 </param>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
21 <when value="cached">
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
22 <param name="ref_file" type="select" label="Select reference genome">
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
23 <options from_data_table="fasta_indexes">
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
24 <!--<filter type="data_meta" key="dbkey" ref="input_bam" column="value"/>-->
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
25 </options>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
26 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
27 </param>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
28 <param name="input_vcf" type="data" format="vcf" label="Select VCF dataset">
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
29 <!-- Validators are commented to allow users apply too to any build. May need to be revised in the future
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
30 <validator type="unspecified_build" />
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
31 <validator type="dataset_metadata_in_data_table" table_name="fasta_indexes" metadata_name="dbkey" metadata_column="1" message="Sequences are not currently available for the specified build." />
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
32 -->
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
33 </param>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
34 </when>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
35 <when value="history"> <!-- FIX ME!!!! -->
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
36 <param name="ref_file" type="data" format="fasta" label="Using reference file" />
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
37 <param name="input_vcf" type="data" format="vcf" label="Select VCF dataset" />
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
38 </when>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
39 </conditional>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
40 <param name="failure_selector" type="select" display="radio" label="Exclude or include failed sites">
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
41 <option value="-x">Exculde failures (-x option)</option>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
42 <option value="-k">Keep failures (-k option)</option>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
43 </param>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
44 </inputs>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
45 <outputs>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
46 <data format="vcf" name="out_file1" />
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
47 </outputs>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
48 <stdio>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
49 <regex match="index file" source="stderr" level="warning"/>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
50 </stdio>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
51 <tests>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
52 <test>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
53 <param name="reference_source_selector" value="history" />
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
54 <param name="failure_selection" value="-x" />
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
55 <param name="input_vcf" value="vcflib-phix.vcf"/>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
56 <param name="ref_file" value="vcflib-test-genome-phix.fa" />
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
57 <output name="out_file1" file="vcfcheck-test1.vcf"/>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
58 </test>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
59 </tests>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
60 <help>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
61
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
62 Verifies that the VCF REF field matches the reference as described.
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
63
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
64 The options are::
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
65
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
66 -x, --exclude-failures If a record fails, don't print it. Otherwise do.
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
67 -k, --keep-failures Print if the record fails, otherwise not.
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
68
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
69 ----
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
70
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
71 Vcfcheck @IS_PART_OF_VCFLIB@
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
72 </help>
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
73 <expand macro="citations" />
d7d4d88ae84d Uploaded
devteam
parents:
diff changeset
74 </tool>