ea-utils
ea-utils copied to clipboard
Giant FASTQ support in stats
Some stats programs have things like kmer (with -K) reports and probe-id
counting (with -D).
These programs can consume a lot of RAM (>10GB), even with the highly efficient
sparsehash library on very large files (> 200 mil reads).
The use of a disk-backed key-value store, like levelDB could see decent
performance, like a hash, but would also allow growth past available RAM with
decent performance. I'm thinking that the code should switch to a DB-backed
store at the 200 mil record level. This would slow things down by about 3x
(from 1 mil writes/sec to 300k writes/sec), but would also allow infinte
growth. Enabling a large LRU cache could it perform so similarly that the
sparse hash can be abandoned, especially if the db remains an insigificant
fraction of the stats collection process.
Original issue reported on code.google.com by [email protected] on 9 Jul 2014 at 2:26
Original comment by [email protected] on 9 Jul 2014 at 2:27
- Added labels: Type-Enhancement
- Removed labels: Type-Defect
LevelDB was 50x slower. So sad. Some optimizations were done to reduce
memory use. Need to look at more options.
Original comment by [email protected] on 20 Aug 2014 at 5:09
Going to do this by a) allowing detection of a pre-sorting by probe-id when run
with -D ... if detected... RAM is freed and duplication detection proceeds
without the need for a hash. Other hashes (like kmers) can bw switched to
some sort of counting bloom filter
Original comment by [email protected] on 8 Sep 2014 at 8:16