Code Monkey home page Code Monkey logo

dehomopolymerate's Introduction

Build Status License: GPL v3 Language: C99

dehomopolymerate

Collapse sequence homopolymers to a single character

Quick Start

% cat test/test.fq

@SRR2288572.2 /1
GAATTTCCCC
+
"!!"!"!!!!
@SRR2288572.2 /1
TCGTGTTTTCTTTTTCTTTT
+
"!!"!"!!!!!!!!!!!!!!

% dehomopolymerate test/test.fq

@SRR2288572.2
GATC
+
"!"!
@SRR2288572.2
TCGTGTCTCT
+
"!!"!"!!!!

INPUT  : seqs=2 bp=30 avglen=15
OUTPUT : seqs=2 bp=14 avglen=7

Installation

Homebrew

brew install brewsci/bio/dehomopolymerate

Conda

brew install -c bioconda dehomopolymerate

From source

dehomopolymerate is written in C to the C99 standard and only depends on gcc and libz.

git clone https://github.com/tseemann/dehomopolymerate.git
cd dehomopolymerate
make 
make install PREFIX=$HOME/bin

Options

-h (help)

% dehomopolymerate -h

SYNOPSIS
  Collapse sequence homopolymers to a single character
USAGE
  dehomopolymerate [options] reads.fast{aq}[.gz] > nohomop.fq
OPTIONS
  -h      Show this help
  -v      Print version and exit
  -q      Quiet mode; not non-error output
  -f      Output FASTA not FASTQ
  -w      Output RAW one line per sequence
  -l LEN  Discard output sequences shorter then L bp
URL
  https://github.com/tseemann/dehomopolymerate (Torsten Seemann)

-v (version)

Prints the name and version separated by a space in standard Unix fashion.

% dehomopolymerate -v
dehomopolymerate 0.3

-q (quiet)

Don't print informational messages, only errors.

-f (FASTA output)

% dehomopolymerate -f test/test.fq.gz
>SRR2288572.2
GATC
>SRR2288572.2
TCGTGTCTCT

-w (raw sequence output, one per line)

% dehomopolymerate -w test/test.fq.gz
GATC
TCGTGTCTCT

-l MINLEN (minimum length of output sequences)

% dehomopolymerate -l 6 -f test/test.fq.gz
>SRR2288572.2
TCGTGTCTCT

Issues

File concerns at the Issue Tracker

License

GPLv3

Author

  • Torsten Seemann

dehomopolymerate's People

Contributors

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