Skip to content
Martin Asser Hansen edited this page Oct 2, 2015 · 6 revisions

Biopiece: reverse_seq

Description

reverse_seq reverses sequences in the stream which is useful for extracting subsequences extract_seq also reverses quality scores if a SCORES key is found.

Usage

... | reverse_seq [options]

Options

[-?         | --help]               #  Print full usage description.
[-I <file!> | --stream_in=<file!>]  #  Read input from stream file   -  Default=STDIN
[-O <file>  | --stream_out=<file>]  #  Write output to stream file   -  Default=STDOUT
[-v         | --verbose]            #  Verbose output.

Examples

To reverse sequences simply pipe the stream through reverse_seq:

... | reverse_seq

To reverse complement sequence first reverse the sequence with reverse_seq and then complement it using complement_seq (or visa versa):

... | reverse_seq | complement_seq

To obtain the last e.g. five residues from all sequences, first use reverse_seq, and then re-reverse with reverse_seq:

... | reverse_seq | extract_seq -l 5 | reverse_seq

See also

complement_seq

extract_seq

Author

Martin Asser Hansen - Copyright (C) - All rights reserved.

mail@maasha.dk

August 2007

License

GNU General Public License version 2

http://www.gnu.org/copyleft/gpl.html

Help

reverse_seq is part of the Biopieces framework.

http://www.biopieces.org

Clone this wiki locally