Coder Social home page Coder Social logo

wltrimbl / idemp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yhwu/idemp

0.0 2.0 0.0 52 KB

Barcode demultiplex for Illumina I1, R1, R2 fastq.gz files

License: GNU General Public License v2.0

Makefile 0.64% R 5.20% C++ 76.96% C 17.20%

idemp's Introduction

idemp

Work needs to be done: trim R1 reads to get rid of barcodes in case R1 reads into barcode when template is short.

Barcode demultiplex for Illumina I1, R1, R2 fastq.gz files.

Only for typical Illumina runs, where the barcode sequence reads are saved in the I1_*.fastq.gz files, and the first fields of the sequence names are exactly same for I1, R1, and/or R2 fastq.gz files. This little program works as follows:

  1. compare sequence names in the I1, R1, R2 read files;
  2. read in barcode sequence from the I1 file;
  3. read in barcode and sample id table;
  4. calculate minimum edit distance among the designed barcodes, nEd;
  5. find exact match for each barcode sequence read;
  6. for reads not fully matched, calculate the minimum edit distance with the designed barcodes;
  7. assign a barcode sequence if the edit distance is smaller than a cutoff;
  8. by default, the cutoff=min(n, nEd), n(n=1) can be set by user.

Functions to be added

  1. Trim R1 reads to get rid of barcode ends.

Compile and test

  1. git clone https://github.com/yhwu/idemp
  2. cd idemp
  3. make
  4. make test

Usage

Usage:
   idemp -b code -I1 I1 -R1 R1 -R2 R2 -m n -o folder

Options:
   code    barcode file, each line contains barcode\tid
   I1      barcode fastq file, text or gzipped
   R1      read1 fastq file, text or gzipped
   R2      read2 fastq file, text or gzipped, optional
   n       allowed base mismatches, optional, default=1
   folder  output folder, optional, default=.

Output:
   folder/R1.id.fastq.gz   #reads assigned to ids
   folder/R2.id.fastq.gz   #reads assigned to ids
   folder/I1.id            #read name to id
   folder/I1.id.stat       #barcode base error stat

idemp's People

Contributors

yhwu avatar

Watchers

James Cloos avatar  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.