Giter Site home page Giter Site logo

longreadsmapping's Introduction

Long Read Mapping Algorithms

Output:

  • Simulated Data
  • Min Hash algorithm implemented in C++
  • Containment Hash algorithm implemented in C++
  • Mapper function

Files:

  • Generate Simulated Data: generate_data.py
  • Min Hash and Containment Hash algorithms: hash.cpp, hash.h
  • Comparing both approaches: main.cpp
  • Plotting graphs: draw_graphs.py
  • Mapper function: mapper.cpp
  • Scripts: run.sh, query.sh

Applications in real life:

  • Taxonomic classification
  • To detect presence or absence of genome in metagenomics sample
  • To detect the presence of very small, low abundance microorganisms in a metagenomic data set

Instructions:

  1. Estimate Jaccard Index by running Min Hash and Containment Min Hash.
./run.sh <file1> <file2> <kmer_size> <hash_functions>
 <false_positive_rate> <number_appended_to_results_files> <order_of_len_A> <order_of_len_B>
./run.sh data/file3.txt data/file4.txt 20 200 0.01 2 150 1000

./run.sh data/file1.txt data/file2.txt 18 1000 0.02 3 15 1000

Sample output:

output1

  1. Compare both approaches. Reproduce the graphs in the report.
./run.sh data/filex3.txt data/filex4.txt 20 150 0.04 3

./run.sh data/filex1.txt data/filex2.txt 25 1000 0.01 4

Sample output:

output2

output3

  1. Mapping long reads: Script generates reference genome and long reads and then maps long reads to reference genome if they have similarity higher than threshold.
./query.sh <long_reads_file> <reference_genome_file> <threshold>
 <kmer_size> <hash_functions> <false_positive_rate> <number_of_long_reads_to_generate>
./query.sh data/reference.txt data/longreads.txt 0.05 18 100 0.01 5

./query.sh data/reference.txt data/longreads.txt 0.05 20 200 0.02 10

Sample output:

output4

output5

References:

longreadsmapping's People

Contributors

pponakala 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.