ea-utils icon indicating copy to clipboard operation
ea-utils copied to clipboard

Giant FASTQ support in stats

Open GoogleCodeExporter opened this issue 11 years ago • 3 comments

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

GoogleCodeExporter avatar Aug 03 '15 20:08 GoogleCodeExporter

Original comment by [email protected] on 9 Jul 2014 at 2:27

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

GoogleCodeExporter avatar Aug 03 '15 20:08 GoogleCodeExporter

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

GoogleCodeExporter avatar Aug 03 '15 20:08 GoogleCodeExporter

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

GoogleCodeExporter avatar Aug 03 '15 20:08 GoogleCodeExporter