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

Biopiece: shuffle_seq

Description

shuffle_seq shuffles the residue order within each sequence in the stream. The shuffling is completely random and there is no need for additional piping of the stream through shuffle_seq.

Usage

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

Consider the following FASTA entry in the file test.fna:

>test
ACGACGCATNNNNNNactgatcga

To shuffle the sequence do:

read_fasta -i test.fna | shuffle_seq

SEQ: NcNNCAgaCNANGATattNgCGac
SEQ_NAME: test
SEQ_LEN: 24
---

See also

read_fasta

random_records

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

shuffle_seq is part of the Biopieces framework.

http://www.biopieces.org

Clone this wiki locally