Debian Codegraph @

examples/jf_count_dump/README

raw
1 What is it?
2 ===========
3
4 This program is an example on how to count k-mers with Jellyfish and
5 then use the resulting hash of mers. The program counts all the k-mers
6 in the files passed on the command line. Then it generate some random
7 k-mer and displays its count in the hash (by default, k=25 and with
8 good likely hood this value will be zero). Then, it dumps the content
9 of the entire database on stdout.
10
11 It is equivalent to using 'jellyfish count', 'jellyfish query' and
12 'jellyfish dump'.
13
14 Some details
15 ============
16
17 Many of the parameters that are switches to 'jellyfish count' are hard
18 coded constant in this program. They are:
19
20 jellyfish::mer_dna::k(25);
21
22 The length k of the mers. Here set to 25.
23
24 const uint64_t hash_size = 10000000;
25
26 The initial size of the hash. Here set to 10 million. Ideally, this
27 will be set close to the actual number of mers that will be inserted
28 in the hash, so as to limit the number of size doubling of the hash.
29
30 const uint32_t num_reprobes = 126;
31
32 The maximum number of reprobes in the hash. The larger this number,
33 the higher the load of the hash table before a size doubling is
34 necessary, at the expense of some computation time.
35
36 const uint32_t num_threads = 16;
37
38 Number of threads used for parsing the input files and counting the mers.
39
40 const uint32_t counter_len = 7;
41
42 Minimum length of the counting field. Mers that have a count that does
43 not fit in this field will take up the space of 2 mers in the hash
44 table.
45
46 const bool canonical = true;
47
48 A mer and its reverse complement are considered to be one and the same
49 mer. The canonical representation is whichever of a mer or its reverse
50 complement that comes first in lexicographic order. This is usually
51 set when counting mers in sequencing reads.
52