Coder Social home page Coder Social logo

mattheww95 / viquf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from borjaf696/viquf

0.0 0.0 0.0 302.09 MB

Shell 0.03% JavaScript 2.35% C++ 34.76% Python 54.74% C 0.23% CSS 0.62% TeX 0.11% Makefile 1.65% HTML 3.98% PostScript 0.77% CMake 0.73% Dockerfile 0.02%

viquf's Introduction

ViQUF

New algorithm for full viral haplotype reconstruction and abundance estimation. It is an alternative approach for the first developed approach viaDBG which was based entirely on de Bruijn graphs. ViQUF is based on flow networks which allows us to do a proper and successful estimation of the strains frequencies.

The overall workflow is as follows:

  • Building assembly graph (BCALM)
  • Polishing the assembly graph by:
    • Classifying edges as weak and strong, and removing the weak ones called as filigree edges.
    • Removing isolated nodes.
    • Removing short tips.
  • Paired-end association.
  • Paired-end polishing removing as many wrong associations as possible.
  • Core algorithm:
    • For every pair of adjacent nodes A -> B, we built a DAG from their paired-end information.
    • DAG is translated into a flow network and a min-cost flow is solved.
    • The flow is translated into paths via a "greedy" path heuristic.
  • Final strains are build following two rules:
    • Standard contig traversion (deprecated)
    • Min-cost flow over the Approximate Paired de Bruijn Graph built from the core algorithm.

Depedencies

Updates (20/10/2021)

  • Amplicons - new approach to deal with amplicons (On progress).
  • Third Generation Sequencing - new approaches to deal with this type of data. Right now, we are able to infer a valid flow from the data (all test over simlord high depth simulated data).
    • TODO: Apply Flow decomposition with subpath constraints.

Dockerfile

Exists a Dockerfile which automatizes the installation procedure. To use it just run:

  • sudo docker rm [your_decision_docker_name]
  • sudo docker build -t [your_decision_docker_name] . --no-cache
  • sudo docker run -d --name [your_decision_docker_name] [your_decision_docker_name]

Command line standard:

The file execution-script contains an example about how to execute the code.

  • python scripts/testBcalm.py $1 $2 10 ngs $3 $4 --no-meta
    • $1 - folder with NGS reads
    • $2 - kmer size
    • $3 - --correct/--no-correct to perform correction or not respectively
    • $4 - --joined, has pear been executed? If so --joined otherwise --no-join
  • ./bin/output.out tmp $2 tmp/unitigs.graph tmp/unitigs.unitigs.fa tmp/unitigs-viadbg.fa tmp/Ownlatest/append.fasta $5 $6 --virus
    • $5 - complete set of reads (it is not mandatory but recommended)
    • $6 - --debug or not.
  • python scripts/post-process.py
    • Linear programming algorithm to adjust contigs frequencies, there is not mandatory but suggested.

viquf's People

Contributors

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