Git Product home page Git Product logo

paired_fastq_split's Introduction

Paired end FASTQ splitting/demultiplexing with specific barcode positions

Description

This script is used for demultiplexing paired end FASTQ files based on a list of known barcodes and known barcode coordinates. This was designed to work with the CEL-seq2 single cell protocol read structure.

This script may not work on macOS due to a limit in how many files can be open. If you encounter this problem try using iTerm2 or increasing the opened files limit.

Installation

To install these scripts, clone this repository and link the scripts to a location in the system PATH.

git clone https://github.com/Shians/paired_fastq_split.git
cd paired_fastq_split
ln -s paired_fastq_split.py /usr/local/bin/ # Change /usr/local/bin as required

Do not delete or move scripts after linking.

Usage

Help documentation can be found using

paired_fastq_split.py -h

which returns the call signature

usage: paired_fastq_split.py [-h] -file1 FILE1 -file2 FILE2 -barcodes BARCODES
                      [-bc_pos BC_POS BC_POS] -prefix PREFIX [-r2bc]

A basic call looks like

paired_fastq_split.py -file1 exp_R1.fastq.gz -file2 exp_R2.fastq.gz -barcodes barcodes.txt -prefix exp

by default we assume that the barcodes are on read 1 in positions 7 to 16 (length 8). The output will be a pair of files for each barcode with the filename {prefix}_{barcode}_R(1/2).fastq along with a pair of files for reads that did not have an exact match to any barcode.

The barcode file should be plaintext with a unique barcode on each line

GTAGCTCA
TAGACCAC
GGTCTATG
GTCCGAAT
...

paired_fastq_split's People

Contributors

shians avatar

Stargazers

 avatar

Watchers

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