1
|
1 <tool id="khmer_load_into_counting" name="Load Into Counting" version="1.0.5">
|
0
|
2 <description>Creates k-mer countgraph using reads</description>
|
|
3 <requirements>
|
|
4 <requirement type="package" version="2.1.2">khmer</requirement>
|
|
5 </requirements>
|
|
6 <command detect_errors="exit_code"><![CDATA[
|
|
7 load-into-counting.py
|
|
8 $advanced.b
|
|
9 $advanced.small
|
1
|
10 -k $kmer
|
0
|
11 -U $advanced.ukmer
|
|
12 #if str( $advanced.max_mem ) != "0"
|
|
13 -M $advanced.max_mem
|
|
14 #end if
|
|
15 #if str( $advanced.fp_rate ) != "0"
|
|
16 --fp-rate $advanced.fp_rate
|
|
17 #end if
|
1
|
18 -N $advanced.num_table
|
|
19 -x $advanced.table_size
|
0
|
20 hash.ct.gz
|
|
21 #if str( $data_input.data_selector ) == "paired"
|
|
22 $data_input.input1.forward $data_input.input1.reverse
|
|
23 #end if
|
|
24 #if str( $data_input.data_selector ) == "single"
|
|
25 $data_input.input2
|
|
26 #end if
|
|
27 ]]></command>
|
|
28 <inputs>
|
|
29 <conditional name="data_input">
|
|
30 <param name="data_selector" type="select" label="Single or Paired-end Data" help="Select between paired and single end data to add name to dataset">
|
|
31 <option value="paired">Paired</option>
|
|
32 <option value="single">Single</option>
|
|
33 </param>
|
|
34 <when value="paired">
|
|
35 <param name="input1" format="data" type="data_collection" collection_type="paired" label="Select a paired collection" help="a paired data"/>
|
|
36 </when>
|
|
37 <when value="single">
|
|
38 <param name="input2" format="data" type="data" label="input" help="Specify dataset with single reads"/>
|
|
39 </when>
|
|
40 </conditional>
|
1
|
41 <param name="kmer" type="integer" value="32" label="K-mer" help="K-mer size to use (default: 32)" />
|
0
|
42 <section name="advanced" title="Advanced options" expanded="false">
|
|
43 <param type="boolean" argument="--small" label="Small count" checked="false" truevalue="--small-count" falsevalue="" help="Reduce memory usage by using a smaller counter for individual kmers. (default: False)"/>
|
|
44 <param type="boolean" argument="-b" label="big count" checked="True" truevalue="-b" falsevalue="--no-bigcount" help="Reduce memory usage by using a smaller counter for individual kmers. (default: True)"/>
|
|
45 <param name="thread" type="integer" value="1" label="Threads" help="Number of simultaneous threads to execute (default: 1)" />
|
1
|
46
|
0
|
47 <param name="ukmer" type="integer" value="0" label="Unique K-mer" help="approximate number of unique kmers in the input set (default: 0)" />
|
1
|
48 <param name="num_table" type="integer" value="1" label="Number of tables" help="number of tables to use (default: False)" />
|
|
49 <param name="table_size" type="integer" value="1000000000" label="Maximum size of table" help="maximum size of tables to use (default: False)" />
|
0
|
50 <param name="max_mem" type="integer" value="0" label="Maximum Memory" help="number of tables to use (default: False)" />
|
|
51 <param name="fp_rate" type="integer" value="0" label="FP rate override" help="Override the automatic FP rate setting for the current script" />
|
|
52 </section>
|
|
53 </inputs>
|
|
54 <outputs>
|
|
55 <data name="hash_output" label="Hash output" format="data" from_work_dir="hash.ct.gz"/>
|
|
56 </outputs>
|
|
57 <help><![CDATA[
|
|
58 || This is the script load-into-counting.py in khmer.
|
|
59 || You are running khmer version 2.1.2
|
|
60 || You are also using screed version 1.0
|
|
61 ||
|
|
62 || If you use this script in a publication, please cite EACH of the following:
|
|
63 ||
|
|
64 || * MR Crusoe et al., 2015. http://dx.doi.org/10.12688/f1000research.6924.1
|
|
65 || * Q Zhang et al., http://dx.doi.org/10.1371/journal.pone.0101271
|
|
66 || * A. Döring et al. http://dx.doi.org:80/10.1186/1471-2105-9-11
|
|
67 ||
|
|
68 || Please see http://khmer.readthedocs.io/en/latest/citations.html for details.
|
|
69
|
|
70 usage: load-into-counting.py [--version] [--info] [-h] [-k KSIZE]
|
|
71 [-U UNIQUE_KMERS] [--fp-rate FP_RATE]
|
|
72 [-M MAX_MEMORY_USAGE] [--small-count]
|
|
73 [-T THREADS] [-b] [-s FORMAT] [-f] [-q]
|
|
74 output_countgraph_filename
|
|
75 input_sequence_filename
|
|
76 [input_sequence_filename ...]
|
|
77
|
|
78 Build a k-mer countgraph from the given sequences.
|
|
79
|
|
80 positional arguments:
|
|
81 output_countgraph_filename
|
|
82 The name of the file to write the k-mer countgraph to.
|
|
83 input_sequence_filename
|
|
84 The names of one or more FAST[AQ] input sequence
|
|
85 files.
|
|
86
|
|
87 optional arguments:
|
|
88 --version show program's version number and exit
|
|
89 --info print citation information
|
|
90 -h, --help show this help message and exit
|
|
91 -k KSIZE, --ksize KSIZE
|
|
92 k-mer size to use (default: 32)
|
|
93 -U UNIQUE_KMERS, --unique-kmers UNIQUE_KMERS
|
|
94 approximate number of unique kmers in the input set
|
|
95 (default: 0)
|
|
96 --fp-rate FP_RATE Override the automatic FP rate setting for the current
|
|
97 script (default: None)
|
|
98 -M MAX_MEMORY_USAGE, --max-memory-usage MAX_MEMORY_USAGE
|
|
99 maximum amount of memory to use for data structure
|
|
100 (default: None)
|
|
101 --small-count Reduce memory usage by using a smaller counter for
|
|
102 individual kmers. (default: False)
|
|
103 -T THREADS, --threads THREADS
|
|
104 Number of simultaneous threads to execute (default: 1)
|
|
105 -b, --no-bigcount The default behaviour is to count past 255 using
|
|
106 bigcount. This flag turns bigcount off, limiting
|
|
107 counts to 255. (default: True)
|
|
108 -s FORMAT, --summary-info FORMAT
|
|
109 What format should the machine readable run summary be
|
|
110 in? (`json` or `tsv`, disabled by default) (default:
|
|
111 None)
|
|
112 -f, --force Overwrite output file if it exists (default: False)
|
|
113 -q, --quiet
|
|
114
|
|
115 Note: with `-b`/`--no-bigcount` the output will be the exact size of the k-mer
|
|
116 countgraph and this script will use a constant amount of memory. In exchange
|
|
117 k-mer counts will stop at 255. The memory usage of this script with `-b` will
|
|
118 be about 1.15x the product of the `-x` and `-N` numbers.
|
|
119
|
|
120 Example:
|
|
121
|
|
122 load-into-counting.py -k 20 -x 5e7 out data/100k-filtered.fa
|
|
123
|
|
124 Multiple threads can be used to accelerate the process, if you have extra cores
|
|
125 to spare.
|
|
126
|
|
127 Example:
|
|
128
|
|
129 load-into-counting.py -k 20 -x 5e7 -T 4 out data/100k-filtered.fa
|
|
130
|
|
131
|
|
132 ]]></help>
|
|
133 <citations>
|
|
134 <citation type="bibtex">
|
|
135 @misc{githubkhmer,
|
|
136 author = {Crusoe, Michael},
|
|
137 year = {2015},
|
|
138 title = {khmer},
|
|
139 publisher = {GitHub},
|
|
140 journal = {GitHub repository},
|
|
141 url = {https://github.com/dib-lab/khmer},
|
|
142 }</citation>
|
|
143 </citations>
|
|
144 </tool>
|