Giter VIP home page Giter VIP logo

davos's Introduction

Introduction

On Monday the 22th of January, my colleague Sander Wuyts won the Davos Bitcoin Challenge issued by EMBL scientist Nick Goldman (see here for his story). The scripts he used to get from raw sequencing reads to the files encoded in the DNA are available here; this repository was cloned from there. Sander did an amazing job decoding the files hidden in the DNA, but some of his scripts are rather slow because they were written in R. In this forked repository, I added a small python tool that can perform assembly of the derandomized reads using a number of different strategies.

Assembly strategies

In the simplest case, assembler.py can assemble the reads using a consensus per position strategy. This means that for each position in the assembly, all reads that overlap with this position are considered, the nucleotides corresponding to this position are extracted from the reads, their frequencies are multiplied by the frequencies of the reads they come from and a consensus nucleotide is determined by majority vote.

./assembler.py \
  --fin_sequences seqs.tsv \
  --dout_assemblies assemblies_new

To make it more interesting, a dynamic programming strategy is also possible. In this case, the optimal read for each index will first be deteremined, after which assembly is performed by consensus per position. "Optimal" in this case means leading to the set of reads with the least number of total nucleotide conflicts between overlapping reads.

./assembler.py \
  --fin_sequences seqs.tsv \
  --dout_assemblies assemblies_new \
  --dynamic_programming

If there are some indices with a very large number of unique reads, the dynamic programming approach might get slow. To speed up the process, it is also possible to first select the n most frequent reads per position:

./assembler.py \
  --fin_sequences seqs.tsv \
  --dout_assemblies assemblies_new \
  --max_sequences_per_index 10 \
  --dynamic_programming

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.