annotate vcfselectsamples.xml @ 0:88fd8ef7e4af draft

Uploaded
author devteam
date Thu, 19 Mar 2015 14:45:17 -0400
parents
children 43cecdfe7107
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
1 <tool id="vcfselectsamples" name="VCFselectsamples:" version="0.0.3">
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
2 <description>Select samples from a VCF dataset</description>
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
3 <macros>
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
4 <import>macros.xml</import>
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
5 </macros>
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
6 <expand macro="requirements"></expand>
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
7 <expand macro="stdio" />
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
8 <command>vcfkeepsamples "${input1}" ${ ' '.join( map( lambda x:'"%s"' % ( x ), str($vcf_samples ).split(",") ) ) } > "${out_file1}"</command>
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
9 <inputs>
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
10 <param format="vcf" name="input1" type="data" label="Select VCF dataset" />
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
11 <param name="vcf_samples" type="select" label="Check to keep samples; Uncheck to remove" display="checkboxes" multiple="true">
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
12 <options>
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
13 <filter type="data_meta" ref="input1" key="sample_names" />
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
14 </options>
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
15 </param>
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
16 </inputs>
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
17 <outputs>
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
18 <data format="vcf" name="out_file1" />
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
19 </outputs>
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
20 <tests>
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
21 <test>
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
22 <param name="vcf_samples" value="NA00001,NA00003"/>
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
23 <param name="input1" value="vcflib.vcf"/>
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
24 <output name="out_file1" file="vcfselectsamples-test1.vcf"/>
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
25 </test>
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
26 </tests>
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
27 <help>
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
28
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
29 Allows to keep or remove samples from a VCF file.
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
30
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
31 -----
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
32
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
33 .. class:: infomark
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
34
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
35
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
36 **Example**:
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
37
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
38 Selecting *NA00001* and *NA00003* from the following VCF line::
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
39
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
40 #CHROM POS ID REF ALT QUAL FILTER INFO FORMAT NA00001 NA00002 NA00003
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
41 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:.,.
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
42
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
43 will, obviously, remove *NA00002*::
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
44
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
45 #CHROM POS ID REF ALT QUAL FILTER INFO FORMAT NA00001 NA00003
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
46 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:.,.
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
47
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
48 ----
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
49
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
50 Vcfselectsamples is based on vcfkeepsamples/vcfremovesamples utilities from **VCFlib** toolkit developed by Erik Garrison (https://github.com/ekg/vcflib).
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
51 </help>
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
52 <expand macro="citations" />
88fd8ef7e4af Uploaded
devteam
parents:
diff changeset
53 </tool>