annotate vcfgeno2haplo.xml @ 0:2bdb74ab3270 draft

Uploaded
author devteam
date Thu, 19 Mar 2015 14:32:31 -0400
parents
children 401f29f278f0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
1 <tool id="vcfgeno2haplo" name="VCFgenotype-to-haplotype:" version="0.0.3">
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
2 <description>Convert genotype-based phased alleles into haplotype alleles</description>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
3 <macros>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
4 <import>macros.xml</import>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
5 </macros>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
6 <expand macro="requirements"></expand>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
7 <expand macro="stdio"></expand>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
8 <command>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
9 #set $reference_fasta_filename = "localref.fa"
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
10 #if str( $reference_source.reference_source_selector ) == "history":
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
11 ln -s "${reference_source.ref_file}" "${reference_fasta_filename}" &amp;&amp;
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
12 #else:
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
13 #set $reference_fasta_filename = str( $reference_source.ref_file.fields.path )
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
14 #end if
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
15 vcfgeno2haplo ${output_option} -w ${window_size} -r "${reference_fasta_filename}" "${input_vcf}" > "${out_file1}"</command>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
16 <inputs>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
17 <conditional name="reference_source">
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
18 <param name="reference_source_selector" type="select" label="Choose the source for the reference genome">
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
19 <option value="cached">Locally cached</option>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
20 <option value="history">History</option>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
21 </param>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
22 <when value="cached">
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
23 <param name="ref_file" type="select" label="Select reference genome">
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
24 <options from_data_table="fasta_indexes">
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
25 <!--<filter type="data_meta" key="dbkey" ref="input_bam" column="value"/>-->
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
26 </options>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
27 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
28 </param>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
29 <param name="input_vcf" type="data" format="vcf" label="Select VCF dataset">
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
30 <!-- Validators are commented to allow users apply too to any build. May need to be revised in the future
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
31 <validator type="unspecified_build" />
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
32 <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." />
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
33 -->
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
34 </param>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
35 </when>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
36 <when value="history"> <!-- FIX ME!!!! -->
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
37 <param name="ref_file" type="data" format="fasta" label="Using reference file" />
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
38 <param name="input_vcf" type="data" format="vcf" label="Select VCF dataset" />
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
39 </when>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
40 </conditional>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
41 <param name="window_size" type="text" size="4" value="30" label="compare records up to this many bp away" help="--window-size option (default = 30)" />
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
42 <param name="output_option" type="boolean" truevalue="-o" falsevalue="" label="What to report?" help="--only-variants option" />
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
43 <!-- <option value=" ">Output entire haplotype</option>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
44 <option value="-o">Don't output the entire haplotype, just concatenate REF/ALT strings (delimited by &quot;:&quot;)</option>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
45 </param> -->
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
46 </inputs>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
47 <outputs>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
48 <data format="vcf" name="out_file1" />
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
49 </outputs>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
50 <tests>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
51 <test>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
52 <param name="reference_source_selector" value="history" />
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
53 <param name="output_option" value="true" />
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
54 <param name="window_size" value="5000" />
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
55 <param name="input_vcf" value="vcflib-phix.vcf"/>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
56 <param name="ref_file" value="vcflib-test-genome-phix.fa" />
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
57 <output name="out_file1" file="vcfgeno2haplo-test1.vcf"/>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
58 </test>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
59 </tests>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
60 <help>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
61
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
62 Convert genotype-based phased alleles within a window size specified by -w option into haplotype alleles. Will break haplotype construction when encountering non-phased genotypes on input.
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
63
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
64 The options are::
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
65
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
66 -w, --window-size N Merge variants at most this many bp apart (default 30)
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
67 -o, --only-variants Don't output the entire haplotype, just concatenate
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
68 REF/ALT strings (delimited by ":")
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
69
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
70 ----
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
71
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
72 Vcfgeno2haplo @IS_PART_OF_VCFLIB@
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
73 </help>
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
74 <expand macro="citations" />
2bdb74ab3270 Uploaded
devteam
parents:
diff changeset
75 </tool>