annotate seqtk_sample.xml @ 8:3da72230c066 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 690c73637e3b8be3a52fe3afc8ba6436c4bab46f"
author iuc
date Thu, 14 Oct 2021 09:22:39 +0000
parents 288f7f69fe25
children 4b494533146a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
1 <?xml version="1.0"?>
6
288f7f69fe25 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 50a0bd6d783a69e7303363a31130134767493e66"
iuc
parents: 5
diff changeset
2 <tool id="seqtk_sample" name="seqtk_sample" version="@TOOL_VERSION@.2">
1
61718851f199 Uploaded
iuc
parents: 0
diff changeset
3 <description>random subsample of fasta or fastq sequences</description>
8
3da72230c066 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 690c73637e3b8be3a52fe3afc8ba6436c4bab46f"
iuc
parents: 6
diff changeset
4 <expand macro="bio_tools"/>
3
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
5 <macros>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
6 <import>macros.xml</import>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
7 </macros>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
8 <expand macro="requirements"/>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
9 <expand macro="stdio"/>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
10 <command><![CDATA[
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
11 seqtk sample
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
12 -s $s
6
288f7f69fe25 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 50a0bd6d783a69e7303363a31130134767493e66"
iuc
parents: 5
diff changeset
13 $advanced.single_pass_mode
3
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
14 '$in_file'
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
15 $subsample_size
4
ecf1c30da3a2 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit ad43df79dca3dc7c3511c6eb2ccf8589d2804eb2
iuc
parents: 3
diff changeset
16 @CONDITIONAL_GZIP_OUT@
3
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
17 ]]></command>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
18 <inputs>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
19 <expand macro="in_faq" />
6
288f7f69fe25 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 50a0bd6d783a69e7303363a31130134767493e66"
iuc
parents: 5
diff changeset
20 <param argument="-s" type="integer" value="4" label="RNG seed" help="The seed used for the random number generator. Manually specifying a number here is useful for reproducing the same subsampling in different runs (e.g. read 1 and read 2)" />
288f7f69fe25 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 50a0bd6d783a69e7303363a31130134767493e66"
iuc
parents: 5
diff changeset
21 <param name="subsample_size" type="float" value="100" label="Subsample (decimal fraction or number)" help="Use an integer > 1 to select a specific number of reads. Use a decimal (e.g. 0.5) to select a fraction of reads"/>
288f7f69fe25 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 50a0bd6d783a69e7303363a31130134767493e66"
iuc
parents: 5
diff changeset
22 <section name="advanced" title="Advanced options" expanded="false">
288f7f69fe25 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 50a0bd6d783a69e7303363a31130134767493e66"
iuc
parents: 5
diff changeset
23 <param name="single_pass_mode" type="boolean" truevalue="" falsevalue="-2" checked="false" label="Enable 1-pass mode" help="Use this if the number of reads you want to sample is small enough to fit into memory. If you're not sure, don't use this."/>
288f7f69fe25 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 50a0bd6d783a69e7303363a31130134767493e66"
iuc
parents: 5
diff changeset
24 </section>
3
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
25 </inputs>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
26 <outputs>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
27 <data name="default" format_source="in_file" label="Subsample of reads from $in_file.name"/>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
28 </outputs>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
29 <tests>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
30 <test>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
31 <param name="in_file" value="seqtk_sample.fa"/>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
32 <param name="subsample_size" value="4"/>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
33 <param name="s" value="4"/>
6
288f7f69fe25 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 50a0bd6d783a69e7303363a31130134767493e66"
iuc
parents: 5
diff changeset
34 <param name="advanced|single_pass_mode" value="True"/>
3
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
35 <output name="default" file="seqtk_sample.out" ftype="fasta"/>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
36 </test>
4
ecf1c30da3a2 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit ad43df79dca3dc7c3511c6eb2ccf8589d2804eb2
iuc
parents: 3
diff changeset
37 <test>
ecf1c30da3a2 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit ad43df79dca3dc7c3511c6eb2ccf8589d2804eb2
iuc
parents: 3
diff changeset
38 <param name="in_file" value="seqtk_sample.fa.gz" ftype="fasta.gz"/>
ecf1c30da3a2 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit ad43df79dca3dc7c3511c6eb2ccf8589d2804eb2
iuc
parents: 3
diff changeset
39 <param name="subsample_size" value="4"/>
ecf1c30da3a2 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit ad43df79dca3dc7c3511c6eb2ccf8589d2804eb2
iuc
parents: 3
diff changeset
40 <param name="s" value="4"/>
6
288f7f69fe25 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 50a0bd6d783a69e7303363a31130134767493e66"
iuc
parents: 5
diff changeset
41 <param name="advanced|single_pass_mode" value='True'/>
4
ecf1c30da3a2 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit ad43df79dca3dc7c3511c6eb2ccf8589d2804eb2
iuc
parents: 3
diff changeset
42 <output name="default" file="seqtk_sample.out.gz" ftype="fasta.gz"/>
ecf1c30da3a2 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit ad43df79dca3dc7c3511c6eb2ccf8589d2804eb2
iuc
parents: 3
diff changeset
43 </test>
6
288f7f69fe25 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 50a0bd6d783a69e7303363a31130134767493e66"
iuc
parents: 5
diff changeset
44 <test>
288f7f69fe25 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 50a0bd6d783a69e7303363a31130134767493e66"
iuc
parents: 5
diff changeset
45 <param name="in_file" value="seqtk_sample.fa.gz" ftype="fasta.gz"/>
288f7f69fe25 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 50a0bd6d783a69e7303363a31130134767493e66"
iuc
parents: 5
diff changeset
46 <param name="subsample_size" value="4"/>
288f7f69fe25 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 50a0bd6d783a69e7303363a31130134767493e66"
iuc
parents: 5
diff changeset
47 <param name="s" value="4"/>
288f7f69fe25 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 50a0bd6d783a69e7303363a31130134767493e66"
iuc
parents: 5
diff changeset
48 <param name="advanced|single_pass_mode" value='False'/>
288f7f69fe25 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 50a0bd6d783a69e7303363a31130134767493e66"
iuc
parents: 5
diff changeset
49 <output name="default" file="seqtk_sample.lowmem.gz" ftype="fasta.gz"/>
288f7f69fe25 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 50a0bd6d783a69e7303363a31130134767493e66"
iuc
parents: 5
diff changeset
50 </test>
3
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
51 </tests>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
52 <help><![CDATA[
0
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
53 **What it does**
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
54
3
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
55 Takes a random subsample of FASTA or FASTQ sequences. The RNG is seedable to allow for reproducible results, and defaults to `4 <http://xkcd.com/221/>`__.
0
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
56
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
57 The subsample size can be a decimal fraction <=1, where 1 implies 100% of the reads should be used. If a number >1 is provided, that many reads will be taken from the dataset.
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
58
6
288f7f69fe25 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 50a0bd6d783a69e7303363a31130134767493e66"
iuc
parents: 5
diff changeset
59 Two pass sampling mode reads the input file once to build a list of reads to output then again to output the reads. It is twice as slow, but uses much less RAM. It is only in effect when an integer number of reads (not a fraction) is specified as subsample size.
288f7f69fe25 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 50a0bd6d783a69e7303363a31130134767493e66"
iuc
parents: 5
diff changeset
60
0
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
61 @ATTRIBUTION@
3
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
62 ]]></help>
bc7d99f46a5d planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/seqtk commit 7379d9f8823d3c639c8119b116e141d0a736ca1d
iuc
parents: 2
diff changeset
63 <expand macro="citation" />
0
e0a0fd938de4 Uploaded
iuc
parents:
diff changeset
64 </tool>