Giter Site home page Giter Site logo

abi2fastq's Introduction

Build Status PyPI Versions PyPI License codecov

abi2fastq

abi2fastq is a small utility to convert Sanger sequencing reads in .abi (applied biosystems) format to FASTQ

Installation

With pip

Using pip, you can grab the latest version of abi2fastq from the Python Package Index.

pip install abi2fastq

Bleeding edge version (for advanced users)

To install this code, clone this github repository and use pip to install

git clone https://github.com/olgabot/abi2fastq.git
cd abi2fastq
conda env create --file environment.yml
source activate abi2fastq-env

Usage

Here is the help output for abi2fastq:

$ abi2fastq --help
Usage: abi2fastq [OPTIONS] FILENAME

  Convert Sanger sequencing format (.ab1) to FASTQ, writes to stdout

  Trimming is performed using the Mott algorithm -
  http://www.phrap.org/phredphrap/phred.html

Options:
  --verbose                  Show progress messages
  --no-trim                  Don't trim nucleotides with error probability
                             >0.05 for 20 or more nucleotides in a row
  --min-trim-length INTEGER  Minimum length of "bad" sequencing scores in a
                             segment
  --max-error-prob FLOAT     Bases with error rates higher than this are
                             likely to be trimmed
  --help                     Show this message and exit.

Example

Here is an example conversion using an .ab1 file included with this repository. Notice that is written to standard out.

$ abi2fastq abi2fastq/test/data/ZN-1_ZNif1__2017-06-07_B01.ab1 
@ZN-1_ZNif1_
ATGCGAAAAACTTTCTGATCAGTTCCTGTTGATTCCCAAGGTATGCATATGGTAGCCGGGCACGACGCCAATGATGCTGTCATAAGCAATAGCGTTGCGCAAGCGCGATTTTCAGGGCTTCTGATCGTGAAAACAGTTCTCGATCATATTCTGCAAAAGACAGAACGCGGCGTCCGATTGCATCCTCTCGCACGGACGGCTAAGGTGAAAAATGAGGTCAACTCTTTCAAGGCCGCACTGAGCTCTCTGGCAAAACACGGGGAATATGCCCCATTCGCGAGACTGCTTAATTTGTCTGGAGTCAACAATCTGGAGCATGGGCTTTTTCCGCAACTTAGTGCGATTGCCCTGGGGGTAGCTACAGCACACGGTAGCACTTTGGCCGGCGTTAACGTCGGTGAGCAATATCAACAACTGCGAGAAGCAGCGACGGAGGCAGAGAAACAACTGCAACAGTATGCCG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IUFVVIG4UV5VM0NQ9VV<LMEZHZZO@ZBOVNMZBD0=DJG?P??HC:MQ@MAC<OTMP:CI??N?>::OEHI:LO<>E>@48QCT?E0?<>>>>>@:>G;TTPP;5OBE?<EJ4LL=>=>>O98?DA>C9O5D>>A8L18J;;8B31J6;>><L>=>L>=>>8DO;>DG;8H>>TOH-E0562>4TA>;5=JJE40>=:+=D08558E>371;==-=7G==5A74G>C@=A1.8K>524?=9::64>B'G+BT6?8

To save the output as a file, use > to redirect the output:

$ abi2fastq abi2fastq/test/data/ZN-1_ZNif1__2017-06-07_B01.ab1 > ZN-1_ZNif1__2017-06-07_B01.fastq

abi2fastq's People

Contributors

olgabot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.