Skip to main content

A utility to split multiple sequence files using multiple sets of barcodes

Project description

A utility to split multiple sequence files using multiple sets of barcodes.

Copyright 2016 Lance Parsons <lparsons@princeton.edu>, Robert Leach <rleach@princeton.edu>

BSD 2-Clause License - See LICENSE.txt

Installation

  1. Install Barcode Splitter:

    pip install barcode_splitter

barcode_splitter

Split multiple fastq files by matching barcodes in one or more of the sequence files. Barcodes in the tab-delimited barcodes.txt file are matched against the beginning (or end) of the specified index read(s). By default, barcodes must match exactly, but --mistmatches can be set higher if desired. Compressed input is read (from all files) if the first input file name ends in .gz. Reading of compressed input can be forced with the gzipin option.

Examples

Split an Illumina paired-end run where the index read are in the second read file (read 2), the forward read is the first read file (read 1), and the reverse reads are in the third read file (read 3):

barcode_splitter --bcfile barcodes.txt read1.fastq read2_index.fastq read3.fastq --idxread 2 --suffix .fastq

UTF-8

Sample names containing UTF-8 characters are allowed, however, outputting those characters to STDOUT and piping to a file can be problematic. Ensure python uses the proper encoding for STDOUT by setting PYTHONIOENCODING='utf-8'.:

PYTHONIOENCODING='utf-8' barcode_splitter --bcfile barcodes_utf8.txt read1.fastq read2_index.fastq read3.fastq --idxread 2 --suffix .fastq

Citation

Please use the following BibTeX entry:

@misc{leach_bcs_2016,
    address = {Princeton, {NJ}, {USA}},
    title = {Barcode Splitter, version 0.18.0 [Software]},
    url = {https://bitbucket.org/princeton_genomics/barcode_splitter},
    author = {Leach, Robert and
              Parsons, Lance},
    year = {2017}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

barcode_splitter-0.18.0-py2.py3-none-any.whl (16.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file barcode_splitter-0.18.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for barcode_splitter-0.18.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7700449490cfc661932232cf334cc4d1ae18251afa58ae4ed8ca16da1b4c7974
MD5 20404f8972ab6f33ffaf431f4d03768a
BLAKE2b-256 4dd07b8c0679bcd105cd5b6de78196562a2f9957bbda1be23b775769db4df2d4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page