annotate vcfselectsamples.xml @ 3:acad111c2466 draft default tip

Uploaded
author anton
date Mon, 15 Sep 2014 14:53:50 -0400
parents ca345cfe7119
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
ca345cfe7119 Updated tool version to 0.0.2
Anton Nekrutenko <anton@bx.psu.edu>
parents: 1
diff changeset
1 <tool id="vcfselectsamples" name="VCFselectsamples:" version="0.0.2">
0
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
2 <requirements>
3
acad111c2466 Uploaded
anton
parents: 2
diff changeset
3 <requirement type="package" version="8a5602bf07">vcflib</requirement>
0
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
4 </requirements>
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
5 <description>Select samples from a VCF dataset</description>
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
6 <command>vcfkeepsamples "${input1}" ${ ' '.join( map( lambda x:'"%s"' % ( x ), str($vcf_samples ).split(",") ) ) } > "${out_file1}"</command>
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
7 <inputs>
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
8 <param format="vcf" name="input1" type="data" label="Select VCF dataset" />
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
9 <param name="vcf_samples" type="select" label="Check to keep samples; Uncheck to remove" display="checkboxes" multiple="true">
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
10 <options>
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
11 <filter type="data_meta" ref="input1" key="sample_names" />
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
12 </options>
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
13 </param>
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
14 </inputs>
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
15 <outputs>
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
16 <data format="vcf" name="out_file1" />
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
17 </outputs>
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
18 <tests>
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
19 <test>
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
20 <param name="vcf_samples" value="NA00001,NA00003"/>
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
21 <param name="input1" value="vcflib.vcf"/>
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
22 <output name="out_file1" file="vcfselectsamples-test1.vcf"/>
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
23 </test>
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
24 </tests>
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
25 <help>
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
26
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
27 Allows to keep or remove samples from a VCF file.
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
28
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
29 -----
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
30
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
31 .. class:: infomark
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
32
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
33
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
34 **Example**:
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
35
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
36 Selecting *NA00001* and *NA00003* from the following VCF line::
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
37
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
38 #CHROM POS ID REF ALT QUAL FILTER INFO FORMAT NA00001 NA00002 NA00003
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
39 20 1110696 rs6040355 A G,T 67 PASS NS=2;DP=10;AF=0.333,0.667;AA=T;DB GT:GQ:DP:HQ 1|2:21:6:23,27 2|1:2:0:18,2 2/2:35:4:.,.
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
40
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
41 will, obviously, remove *NA00002*::
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
42
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
43 #CHROM POS ID REF ALT QUAL FILTER INFO FORMAT NA00001 NA00003
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
44 20 1110696 rs6040355 A G,T 67 PASS NS=2;DP=10;AF=0.333,0.667;AA=T;DB GT:GQ:DP:HQ 1|2:21:6:23,27 2/2:35:4:.,.
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
45
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
46 ----
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
47
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
48 Vcfselectsamples is based on vcfkeepsamples/vcfremovesamples utilities from **VCFlib** toolkit developed by Erik Garrison (https://github.com/ekg/vcflib).
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
49
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
50
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
51
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
52
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
53 </help>
41f097b3d55a Imported from capsule None
anton
parents:
diff changeset
54 </tool>