Giter Site home page Giter Site logo

bloom-filter-trie-reddit's Introduction

Table of Contents

  1. Overview
  2. Instructions
  3. Input

Overview

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.

Instructions

  • 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 query directory, run ./run_bft.sh
  • Datasets of varying sizes are stored in the db directory, and sample queries are stored in the query directory
    • To run the programs on a different dataset, update the BASH script by changing ./db/test-xsmall and ./query/test-1 to your liking

Input

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-med is a 2.5MB dataset of Reddit comment data from January 1st, 2015
  • db/test-small is a 170kB dataset of Reddit comment data from January 1st, 2015 (~300 comments)
  • db/test-xsmall is a 6kB dataset of Reddit comment data from January 1st, 2015 (10 comments)

bloom-filter-trie-reddit's People

Contributors

anuvedverma avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.