The goal of this project was to implement and adapt a novel data structure, the Bloom Filter Trie, to compress and query Reddit comment data. The Bloom Filter Trie was originally designed for applications in Bioinformatics. This project aimed to extend it's applications to work with regular English text data.
As sequencing technology improves, genomic datasets are now larger than ever before. To extract valuable information from this data, it is crucial to be able to store and query it efficiently. This is especially true of pan-genomes, which are a redundant collection of similar sequencing reads, often extracted from members of the same species. Since most of the base pairs in these sequences are identical, pan-genomes are a prime candidate for compression. One method, proposed by Holley et al [1] uses a data structure called the Bloom Filter Trie (BFT) to compress, store, and query pan-genomes. The BFT essentially represents and compresses a Colored De Bruijn Graph (C-DBG), using Bloom Filters and Burst Tries to store k-mers from pan-genomic sequences.
This repository is my implementation of the Bloom Filter Trie, as described by Holley et al. (2016), adapted to store, compress, and query Reddit comment data.
- This project uses Maven to build and run
- To install the project, run
./install.sh - To run a basic benchmarking of BFT against HashMap and ArrayList, run
./run_benchmarks.sh - To run the BFT algorithm on all the queries stored in the
querydirectory, run./run_bft.sh - Datasets of varying sizes are stored in the
dbdirectory, and sample queries are stored in thequerydirectory- To run the programs on a different dataset, update the BASH script by changing
./db/test-xsmalland./query/test-1to your liking
- To run the programs on a different dataset, update the BASH script by changing
The data provided in the db directory are Reddit comment data taken from the following link: https://www.reddit.com/r/datasets/comments/3bxlg7/i_have_every_publicly_available_reddit_comment/
db/test-medis a 2.5MB dataset of Reddit comment data from January 1st, 2015db/test-smallis a 170kB dataset of Reddit comment data from January 1st, 2015 (~300 comments)db/test-xsmallis a 6kB dataset of Reddit comment data from January 1st, 2015 (10 comments)