annotate vcfallelicprimitives.xml @ 3:260173250dd2 draft default tip

Uploaded
author anton
date Mon, 15 Sep 2014 14:48:10 -0400
parents 971da09d28aa
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
260173250dd2 Uploaded
anton
parents: 2
diff changeset
1 <?xml version="1.0" encoding="utf-8"?>
2
971da09d28aa Updated tool version to 0.0.2
Anton Nekrutenko <anton@bx.psu.edu>
parents: 1
diff changeset
2 <tool id="vcfallelicprimitives" name="VcfAllelicPrimitives:" version="0.0.2">
3
260173250dd2 Uploaded
anton
parents: 2
diff changeset
3 <description>Split alleleic primitives (gaps or mismatches) into multiple VCF lines</description>
260173250dd2 Uploaded
anton
parents: 2
diff changeset
4 <requirements>
260173250dd2 Uploaded
anton
parents: 2
diff changeset
5 <requirement type="package" version="8a5602bf07">vcflib</requirement>
260173250dd2 Uploaded
anton
parents: 2
diff changeset
6 </requirements>
260173250dd2 Uploaded
anton
parents: 2
diff changeset
7 <command>
260173250dd2 Uploaded
anton
parents: 2
diff changeset
8 cat "${input}" | vcfallelicprimitives
260173250dd2 Uploaded
anton
parents: 2
diff changeset
9 ${m_option}
260173250dd2 Uploaded
anton
parents: 2
diff changeset
10 -t "${t_option}"
260173250dd2 Uploaded
anton
parents: 2
diff changeset
11 -L "${max_length}"
260173250dd2 Uploaded
anton
parents: 2
diff changeset
12 $keep_info
260173250dd2 Uploaded
anton
parents: 2
diff changeset
13 $keep_geno > "${out_file1}"
260173250dd2 Uploaded
anton
parents: 2
diff changeset
14 </command>
260173250dd2 Uploaded
anton
parents: 2
diff changeset
15 <inputs>
260173250dd2 Uploaded
anton
parents: 2
diff changeset
16 <param format="vcf" name="input" type="data" label="Select VCF dataset"/>
260173250dd2 Uploaded
anton
parents: 2
diff changeset
17 <param name="m_option" type="boolean" checked="false" truevalue="--use-mnps" falsevalue="" label="Retain MNPs as separate events" help="--use-mnps option"/>
260173250dd2 Uploaded
anton
parents: 2
diff changeset
18 <param name="t_option" size="20" type="text" value="Split primitives" label="Tag records which are split apart of a complex allele with this flag. " help="--tag-parsed option"/>
260173250dd2 Uploaded
anton
parents: 2
diff changeset
19 <param name="max_length" type="integer" size="4" value="200" label="Do not manipulate records in which either the ALT or REF is longer than (bp)" help="--max-length option"/>
260173250dd2 Uploaded
anton
parents: 2
diff changeset
20 <param name="keep_info" type="boolean" truevalue="--keep-info" falsevalue="" checked="False"
260173250dd2 Uploaded
anton
parents: 2
diff changeset
21 label="Maintain site and allele-level annotations when decomposing"
260173250dd2 Uploaded
anton
parents: 2
diff changeset
22 help="Note that in many cases, such as multisample VCFs, these won't be valid post-decomposition. For biallelic loci in single-sample VCFs, they should be usable with caution. (--keep-info)"/>
260173250dd2 Uploaded
anton
parents: 2
diff changeset
23 <param name="keep_geno" type="boolean" truevalue="--keep-geno" falsevalue="" checked="False"
260173250dd2 Uploaded
anton
parents: 2
diff changeset
24 label="Maintain genotype-level annotations when decomposing"
260173250dd2 Uploaded
anton
parents: 2
diff changeset
25 help="Similar caution should be used for this as for --keep-info. (--keep-geno)"/>
260173250dd2 Uploaded
anton
parents: 2
diff changeset
26 </inputs>
260173250dd2 Uploaded
anton
parents: 2
diff changeset
27 <outputs>
260173250dd2 Uploaded
anton
parents: 2
diff changeset
28 <data format="vcf" name="out_file1" label="${tool.name} on ${on_string}" />
260173250dd2 Uploaded
anton
parents: 2
diff changeset
29 </outputs>
260173250dd2 Uploaded
anton
parents: 2
diff changeset
30 <tests>
260173250dd2 Uploaded
anton
parents: 2
diff changeset
31 <test>
260173250dd2 Uploaded
anton
parents: 2
diff changeset
32 <param name="input" value="vcflib.vcf"/>
260173250dd2 Uploaded
anton
parents: 2
diff changeset
33 <output name="out_file1" file="vcfallelicprimitives-test1.vcf"/>
260173250dd2 Uploaded
anton
parents: 2
diff changeset
34 </test>
0
239da20770dc Imported from capsule None
anton
parents:
diff changeset
35 </tests>
3
260173250dd2 Uploaded
anton
parents: 2
diff changeset
36 <help>
0
239da20770dc Imported from capsule None
anton
parents:
diff changeset
37
3
260173250dd2 Uploaded
anton
parents: 2
diff changeset
38 If multiple alleleic primitives (gaps or mismatches) are specified in a single VCF record, this tools splits the record into multiple lines, but drops all INFO fields.
260173250dd2 Uploaded
anton
parents: 2
diff changeset
39 "Pure" MNPs are split into multiple SNPs unless the -m flag is provided.
260173250dd2 Uploaded
anton
parents: 2
diff changeset
40 Genotypes are phased where complex alleles have been decomposed, provided genotypes in the input.
0
239da20770dc Imported from capsule None
anton
parents:
diff changeset
41
239da20770dc Imported from capsule None
anton
parents:
diff changeset
42 The options are::
3
260173250dd2 Uploaded
anton
parents: 2
diff changeset
43
260173250dd2 Uploaded
anton
parents: 2
diff changeset
44 -m, --use-mnps Retain MNPs as separate events (default: false).
260173250dd2 Uploaded
anton
parents: 2
diff changeset
45 -t, --tag-parsed FLAG Tag records which are split apart of a complex allele with this flag.
260173250dd2 Uploaded
anton
parents: 2
diff changeset
46 -L, --max-length LEN Do not manipulate records in which either the ALT or
260173250dd2 Uploaded
anton
parents: 2
diff changeset
47 REF is longer than LEN (default: 200).
260173250dd2 Uploaded
anton
parents: 2
diff changeset
48 -k, --keep-info Maintain site and allele-level annotations when decomposing.
260173250dd2 Uploaded
anton
parents: 2
diff changeset
49 Note that in many cases, such as multisample VCFs, these won't
260173250dd2 Uploaded
anton
parents: 2
diff changeset
50 be valid post-decomposition. For biallelic loci in single-sample
260173250dd2 Uploaded
anton
parents: 2
diff changeset
51 VCFs, they should be usable with caution.
260173250dd2 Uploaded
anton
parents: 2
diff changeset
52 -g, --keep-geno Maintain genotype-level annotations when decomposing. Similar
260173250dd2 Uploaded
anton
parents: 2
diff changeset
53 caution should be used for this as for --keep-info.
0
239da20770dc Imported from capsule None
anton
parents:
diff changeset
54
239da20770dc Imported from capsule None
anton
parents:
diff changeset
55 ----
239da20770dc Imported from capsule None
anton
parents:
diff changeset
56
3
260173250dd2 Uploaded
anton
parents: 2
diff changeset
57 Vcfallelicprimitives is a part of VCFlib toolkit developed by Erik Garrison (https://github.com/ekg/vcflib).
0
239da20770dc Imported from capsule None
anton
parents:
diff changeset
58
3
260173250dd2 Uploaded
anton
parents: 2
diff changeset
59 </help>
0
239da20770dc Imported from capsule None
anton
parents:
diff changeset
60 </tool>
3
260173250dd2 Uploaded
anton
parents: 2
diff changeset
61