Giter Site home page Giter Site logo

bloomfilter's Introduction

C++ Bloom Filter implementation.

Has been made for an internship application.

Requirements:

  • boost library
    (installation example : sudo apt install libboost-all-dev)
  • c++ compiler
  • FASTA file

ARGS:

  • --help: produces help message
  • --file: fasta file to map into the bloom filter
  • --k: size of kmers <= 31
  • --n: size of bloom filter in bits <= 2^34 (bits)
  • --nf: number of applied hash functions <= 64
  • --r: number of random is_present() tests

Use examples:

  • Compilation:

g++ bf.cpp -lboost_program_options -o bf

  • Execution:
    • ./bf --help
    • ./bf --file cov.fasta --k 10 --n 1048576 --nf 5 --r 100000
    • ./bf --file cov.fasta --k 31 --n 17179869184 --nf 64 --r 200 (max values for k, n, and nf)

Note:

It is possible to test a specific DNA Sequence in the main() by using the
compute_specific_requests(bf, string kmer); function.
There is already an example of size k=10 in bf.cpp at line 80.

(note 2 : ~ 9mins to build the filter with 752MB FASTA file)

bloomfilter's People

Contributors

vicleva avatar

Watchers

 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.